﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

/* NAVBAR */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 20px;
    font-weight: bold;
}

.nav-links a,
.nav-links .nav-logout,
.nav-links .nav-user {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

    .nav-links a:hover {
        text-decoration: underline;
    }

/* MAIN CONTENT AREA */
.main-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* CARD / PANEL */
.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

    .card h2 {
        margin-bottom: 20px;
        color: #2c3e50;
        font-size: 22px;
    }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background-color: #2980b9;
    color: white;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn:hover {
    opacity: 0.85;
}

/* FORMS */
.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    table th {
        background-color: #2c3e50;
        color: white;
        padding: 12px;
        text-align: left;
    }

    table td {
        padding: 10px 12px;
        border-bottom: 1px solid #eee;
    }

    table tr:hover {
        background-color: #f9f9f9;
    }

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #999;
    margin-top: 40px;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 120px);
}

.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    flex-shrink: 0;
}

    .admin-sidebar h3 {
        color: #ecf0f1;
        margin-bottom: 20px;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .admin-sidebar ul {
        list-style: none;
        padding: 0;
    }

        .admin-sidebar ul li {
            margin-bottom: 8px;
        }

            .admin-sidebar ul li a {
                color: #bdc3c7;
                text-decoration: none;
                display: block;
                padding: 8px 12px;
                border-radius: 5px;
                transition: background 0.2s;
            }

                .admin-sidebar ul li a:hover {
                    background: #34495e;
                    color: white;
                }

.admin-content {
    flex: 1;
    padding: 30px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dash-card {
    background: white;
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    text-align: center;
}

    .dash-card h3 {
        font-size: 13px;
        color: #777;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

.dash-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

/* Grid */
.grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

    .grid th {
        background: #2c3e50;
        color: white;
        padding: 12px 15px;
        text-align: left;
        font-size: 13px;
    }

    .grid td {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        font-size: 13px;
    }

    .grid tr:last-child td {
        border-bottom: none;
    }

    .grid tr:hover td {
        background: #f9f9f9;
    }

/* Tab Buttons */
.tab-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}