* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    position: relative;
}

/* ===== BRAND / LOGO ===== */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.brand-icon {
    font-size: 36px;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

.brand-text h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-text {
    white-space: nowrap;
}

/* ===== MOBILE OVERLAY ===== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: white;
    margin: 20px auto;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-height: calc(100vh - 220px);
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.page-header h1 {
    color: #667eea;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* ===== STATISTICS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    opacity: 0.95;
    font-weight: 600;
}

.stat-card .number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.stat-card .label {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 400;
}

/* ===== FORM CONTAINER ===== */
.form-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 207, 102, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    color: #333;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 154, 240, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background: #f8f9fa;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d3f9d8;
    color: #2b8a3e;
}

.badge-danger {
    background: #ffe3e3;
    color: #c92a2a;
}

.badge-warning {
    background: #fff3bf;
    color: #e67700;
}

.badge-info {
    background: #d0ebff;
    color: #1864ab;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d3f9d8;
    color: #2b8a3e;
    border-left: 4px solid #51cf66;
}

.alert-error {
    background: #ffe3e3;
    color: #c92a2a;
    border-left: 4px solid #ff6b6b;
}

.alert-info {
    background: #d0ebff;
    color: #1864ab;
    border-left: 4px solid #339af0;
}

.alert-warning {
    background: #fff3bf;
    color: #e67700;
    border-left: 4px solid #ffd43b;
}

/* ===== SEARCH BOX ===== */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 100%;
    max-width: 400px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== ACTIONS ===== */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.98);
    color: #666;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #666;
}

.empty-state p {
    font-size: 15px;
}

/* ===== DETAIL INFO BOX ===== */
.detail-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 15px;
    color: #333;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and Mobile - 768px and below */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Show Hamburger Button */
    .hamburger {
        display: flex;
    }

    /* Show Overlay */
    .nav-overlay {
        display: block;
    }

    /* Navbar Mobile */
    .navbar-container {
        padding: 12px 15px;
    }

    /* Brand Adjustments */
    .brand-icon {
        font-size: 32px;
    }
    
    .brand-text h2 {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 11px;
    }
    
    /* Mobile Menu Styling */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.35s; }

    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        width: 100%;
        padding: 18px 25px;
        border-radius: 0;
        justify-content: flex-start;
        font-size: 16px;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        border-left: 4px solid white;
    }

    .nav-icon {
        font-size: 20px;
        width: 24px;
    }

    /* Main Content */
    .main-content {
        margin: 15px auto;
        padding: 20px 15px;
        border-radius: 10px;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 24px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card .number {
        font-size: 28px;
    }

    /* Forms */
    .form-container {
        padding: 20px 15px;
    }

    .form-container h2 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Tables */
    .table-container {
        margin-top: 15px;
    }

    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
    }

    table th {
        font-size: 12px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Search Box */
    .search-box input {
        max-width: 100%;
    }

    /* Actions */
    .actions {
        gap: 8px;
    }

    .actions .btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}
    
    .page-header h1 {
        font-size: 28px;
    }
    
    table {
        font-size: 13px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn-sm {
        width: 100%;
    }

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 15px;
        margin: 15px auto;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .number {
        font-size: 32px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
    }
    
    .navbar,
    .btn,
    .search-box,
    .form-container form,
    .footer,
    .actions {
        display: none !important;
    }
    
    .main-content {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    .page-header {
        border-bottom: 2px solid #333;
    }
    
    table {
        border: 1px solid #333;
    }
    
    table th {
        background: #333 !important;
        color: white !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tr:hover {
    background: #f8f9fa;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}