/* assets/css/style.css */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif; }

/* ===== LOGIN ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 { color: #1a2b4c; font-size: 28px; }
.login-header p { color: #6b7a8f; font-size: 14px; }

.login-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #6b7a8f;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 250px;
    background: #1a2b4c;
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.sidebar-brand h2 { font-size: 22px; font-weight: 700; }

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #667eea;
}

.sidebar-nav .logout {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #e74c3c;
}

.sidebar-nav .logout:hover { background: rgba(231,76,60,0.1); }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 250px;
    padding: 25px 30px;
    min-height: 100vh;
    background: #f0f4f8;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

header h1 { color: #1a2b4c; font-size: 24px; }

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background: #2d6a9f;
    color: white;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon { font-size: 32px; }

.stat-info h3 { font-size: 14px; color: #6b7a8f; margin-bottom: 4px; }
.stat-info p { font-size: 28px; font-weight: 700; color: #1a2b4c; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th {
    background: #e8edf5;
    color: #1a2b4c;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.table tr:hover td { background: #f8faff; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a2b4c;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #dce2ea;
    font-size: 14px;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2d6a9f;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-horizontal {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary { background: #2d6a9f; color: white; }
.btn-primary:hover { background: #1a4a7a; }

.btn-success { background: #27ae60; color: white; }
.btn-success:hover { background: #1e8449; }

.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }

.btn-warning { background: #f39c12; color: white; }
.btn-warning:hover { background: #d68910; }

.btn-info { background: #3498db; color: white; }
.btn-info:hover { background: #2980b9; }

.btn-secondary { background: #95a5a6; color: white; }
.btn-secondary:hover { background: #7f8c8d; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== FILTER ===== */
.filter-section {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #dce2ea;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        padding: 20px 15px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
    .main-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .filter-form {
        flex-direction: column;
    }
}