/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fc;
    color: #1a2a3a;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b2b4a 0%, #1a4a6a 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #0b2b4a;
    font-size: 32px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-credit {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-credit a {
    color: #0b2b4a;
    font-weight: 600;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #0b2b4a;
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffd966;
}

.sidebar-brand small {
    font-size: 12px;
    opacity: 0.7;
    display: block;
}

.sidebar-menu {
    flex: 1;
    padding: 15px 0;
}

.menu-item {
    padding: 8px 20px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #ffd966;
}

.menu-item a {
    color: #c8dbe8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
}

.menu-item a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.submenu {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu .menu-item {
    padding: 5px 15px;
}

.submenu .menu-item a {
    font-size: 13px;
    font-weight: 400;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #8aaec9;
}

.sidebar-footer .helpline {
    margin-bottom: 8px;
}

.sidebar-footer a {
    color: #ffd966;
    text-decoration: none;
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 0;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: #0b2b4a;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.topbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a2a3a;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.datetime {
    font-weight: 500;
    color: #0b2b4a;
}

.content {
    padding: 25px 30px;
}

/* Dashboard */
.dashboard h2 {
    margin-bottom: 25px;
    color: #1a2a3a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0b2b4a;
}

.stat-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a3a;
}

.stat-info p {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.quick-actions {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: #1a2a3a;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #0b2b4a;
    color: #fff;
}

.btn-primary:hover {
    background: #1a3a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 43, 74, 0.3);
}

.btn-success {
    background: #0f7b3a;
    color: #fff;
}

.btn-success:hover {
    background: #0d6a32;
    transform: translateY(-2px);
}

.btn-danger {
    background: #b91c1c;
    color: #fff;
}

.btn-danger:hover {
    background: #a01818;
}

.btn-info {
    background: #0d6efd;
    color: #fff;
}

.btn-info:hover {
    background: #0b5ed7;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0b2b4a;
    box-shadow: 0 0 0 3px rgba(11, 43, 74, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: #f4f7fc;
    color: #1a2a3a;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e8ecf1;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e8ecf1;
}

tr:hover {
    background: #f8f9fa;
}

/* Search Box */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 10px 18px;
    border: 1px solid #dce3ec;
    border-radius: 30px;
    font-size: 14px;
    background: #fff;
}

.search-box input:focus {
    outline: none;
    border-color: #0b2b4a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    max-width: 550px;
    width: 90%;
    border-radius: 24px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.modal-close:hover {
    color: #333;
}

/* Alerts */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-error {
    background: #fde7e7;
    color: #b91c1c;
    border: 1px solid #f5c6c6;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.page-header h3 {
    font-size: 20px;
    color: #1a2a3a;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: #fde7e7;
    color: #b91c1c;
}

.badge-paid {
    background: #d4edda;
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .hamburger {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 12px 15px;
    }
    
    .content {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .login-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar-right {
        font-size: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .page-title {
        font-size: 17px;
    }
}