<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Navitrends - Management Platform</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="app">
        <div class="sidebar">
            <div class="sidebar-header">
                <h2>Navitrends</h2>
                <p>Management Platform</p>
            </div>
            <div class="nav-menu">
                <div class="nav-item active" data-page="dashboard">
                    <i class="fas fa-chart-line nav-icon"></i>
                    <span>Dashboard</span>
                </div>
                <div class="nav-item" data-page="restore">
                    <i class="fas fa-rotate-right nav-icon"></i>
                    <span>Restore Actions</span>
                </div>
                <div class="nav-item" data-page="backups">
                    <i class="fas fa-database nav-icon"></i>
                    <span>Backups</span>
                </div>
                <div class="nav-item" data-page="settings">
                    <i class="fas fa-sliders-h nav-icon"></i>
                    <span>Settings</span>
                </div>
            </div>
        </div>

        <div class="main-content">
            <div class="top-bar">
                <h3 id="page-title">Dashboard Overview</h3>
                <div class="server-status">
                    <div class="status-indicator">
                        <span class="status-dot" id="server-status-dot"></span>
                        <span id="server-status-text">Checking...</span>
                    </div>
                    <button class="btn btn-secondary" onclick="refreshStatus()">
                        <i class="fas fa-sync-alt"></i> Refresh
                    </button>
                    <a href="/logout">
                        <button class="btn btn-secondary">
                            <i class="fas fa-sign-out-alt"></i> Logout
                        </button>
                    </a>
                </div>
            </div>

            {% block content %}{% endblock %}

            <div class="footer">
                <i class="fas fa-shield-alt"></i> Navitrends Management Platform
            </div>
        </div>
    </div>

    <script src="{{ url_for('static', filename='js/main.js') }}"></script>
</body>
</html>
