/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #1F5E86;
    --primary-dark: #164a68;
    --primary-light: #2980b9;
    --secondary-color: #FFFFFF;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --info-color: #3498DB;
    --white: #FFFFFF;
    --gray: #95A5A6;
    --gray-light: #BDC3C7;
    --gray-dark: #7F8C8D;
    --background: #F5F7FA;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--background);
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* ==================== LAYOUT ==================== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 30px 25px;
    background: rgba(0,0,0,0.15);
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    font-size: 25px;
    font-weight: 700;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.sidebar-header p {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
}

.menu-item {
    margin: 4px 12px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.menu-link:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    transform: translateX(5px);
}

.menu-link.active {
    background: rgba(255,255,255,0.2);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.sidebar-user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.sidebar-user-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--border-radius-sm);
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-logout:hover {
    background: var(--danger-color);
    color: var(--white);
    border-color: var(--danger-color);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    background: var(--background);
    transition: var(--transition);
}

/* ==================== HEADER ==================== */
.top-header {
    background: var(--white);
    padding: 20px 35px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h2 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(31, 94, 134, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.user-role {
    font-size: 12px !important;
    color: var(--gray) !important;
    font-weight: 500 !important;
    text-transform: capitalize;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    background: var(--background);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ==================== CONTENT ==================== */
.content {
    padding: 35px;
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-info h3 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -1px;
}

.stat-info p {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stat-icon.blue { 
    background: linear-gradient(135deg, #1F5E86 100%); 
}

.stat-icon.green { 
    background: linear-gradient(135deg, #1F5E86 100%); 
}

.stat-icon.yellow { 
    background: linear-gradient(135deg, #1F5E86 100%); 
}

.stat-icon.red { 
    background: linear-gradient(135deg, #1F5E86 100%); 
}

.stat-icon.purple {
    background: linear-gradient(135deg, #1F5E86 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #1F5E86 100%);
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
}

.card-header h3 {
    color: var(--dark-color);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h3 i {
    color: var(--primary-color);
    font-size: 22px;
}

.card-body {
    padding: 30px;
}

/* ==================== TABLE ==================== */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input,
.search-input {
    padding: 12px 18px;
    border: 2px solid var(--light-color);
    border-radius: 50px;
    width: 320px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.search-box input:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(31, 94, 134, 0.1);
}

.filter-box select,
.filter-select {
    padding: 12px 20px;
    border: 2px solid var(--light-color);
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    min-width: 180px;
}

.filter-box select:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(31, 94, 134, 0.1);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table thead th:first-child {
    border-radius: var(--border-radius-sm) 0 0 0;
}

table thead th:last-child {
    border-radius: 0 var(--border-radius-sm) 0 0;
}

table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: var(--transition);
}

table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: #4a5568;
    vertical-align: middle;
}

table tbody td strong {
    color: var(--dark-color);
    font-weight: 600;
}

table tbody td code {
    background: #f1f3f4;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-color);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8daff;
}

.badge-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-primary {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
    border: 1px solid #b8daff;
}

.badge-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 1px solid #ffeeba;
}

.badge-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge-secondary {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(31, 94, 134, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 94, 134, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #219a52 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2980b9 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-sm i {
    font-size: 12px;
}

/* Action Buttons Group */
td .btn-sm {
    margin: 2px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius-sm);
    color: var(--dark-color);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(31, 94, 134, 0.3);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(31, 94, 134, 0.1);
}

.form-control:hover {
    border-color: var(--gray-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

input[type="file"].form-control {
    padding: 12px;
}

/* Checkbox styling */
.form-group label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafbfc;
}

/* Detail Group in Modal */
.detail-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.detail-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-group p {
    font-size: 15px;
    color: var(--dark-color);
    font-weight: 500;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 18px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 22px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border-left: 5px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 5px solid var(--info-color);
}

/* ==================== SYNC STATUS ==================== */
.sync-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-radius: var(--border-radius-sm);
    color: #856404;
    font-weight: 500;
}

.sync-status i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== PROFILE PAGE ==================== */
.profile-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px;
    text-align: center;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 35px;
    border-bottom: 1px solid var(--light-color);
}

.profile-stat {
    text-align: center;
}

.profile-stat h4 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.profile-stat p {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

/* Profile Form */
.card-body form hr {
    margin: 35px 0;
    border: none;
    border-top: 2px solid var(--light-color);
}

.card-body form h4 {
    color: var(--dark-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ==================== GOOGLE DRIVE ==================== */
.gdrive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.gdrive-item {
    background: var(--white);
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.gdrive-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.gdrive-item i {
    font-size: 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.gdrive-item-name {
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-word;
    color: var(--dark-color);
}

.gdrive-item-date {
    font-size: 12px;
    color: var(--gray);
}

.storage-info {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--light-color) 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.storage-bar {
    width: 100%;
    height: 12px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transition: var(--transition);
    border-radius: 10px;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.login-box {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 420px;
    padding: 50px 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    color: var(--gray);
    font-size: 14px;
}

/* ==================== LOGIN PAGE MODERN ==================== */
body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: var(--background);
}

body.login-page::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.particles div {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.login-container-modern {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.login-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-left .icon {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-left h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.login-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.login-right {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 700;
}

.login-right > p {
    color: var(--gray);
    margin-bottom: 35px;
    font-size: 15px;
}

.input-group {
    position: relative;
    margin-bottom: 0;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
    z-index: 1;
}

.input-group .form-control {
    padding-left: 50px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(31, 94, 134, 0.4);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(31, 94, 134, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.login-info {
    margin-top: 25px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
}

.footer-login {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-size: 14px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.footer-login p {
    margin: 0;
    opacity: 0.9;
}

.login-right .alert {
    margin-bottom: 25px;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.hidden { display: none; }

/* Text Colors */
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--gray); }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--gray-light);
    margin-bottom: 25px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: var(--gray);
    font-weight: 500;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .content {
        padding: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-box input,
    .search-input {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 15px 20px;
    }
    
    .header-left h2 {
        font-size: 20px;
    }
    
    .user-info {
        padding: 8px 12px;
    }
    
    .user-details {
        display: none;
    }
    
    .content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-info h3 {
        font-size: 28px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .card-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box,
    .search-box form {
        width: 100%;
    }
    
    .search-box input,
    .search-input {
        width: 100%;
    }
    
    .filter-box,
    .filter-box form {
        width: 100%;
    }
    
    .filter-box select,
    .filter-select {
        width: 100%;
    }
    
    table thead th,
    table tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .login-container-modern {
        grid-template-columns: 1fr;
    }
    
    .login-left {
        padding: 40px;
        text-align: center;
    }
    
    .login-left h1 {
        font-size: 1.8rem;
    }
    
    .login-right {
        padding: 40px;
    }
    
    .login-right h2 {
        font-size: 1.5rem;
    }
    
    .footer-login {
        position: relative;
        margin-top: 20px;
        background: transparent;
        backdrop-filter: none;
        color: var(--white);
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 12px 15px;
    }
    
    .header-left h2 {
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .content {
        padding: 15px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .login-left {
        padding: 30px 20px;
    }
    
    .login-left .icon {
        font-size: 4rem;
    }
    
    .login-left h1 {
        font-size: 1.5rem;
    }
    
    .login-right {
        padding: 30px 20px;
    }
}

/* ==================== SIDEBAR OVERLAY ==================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .sidebar,
    .top-header,
    .mobile-menu-toggle,
    .btn,
    .pagination,
    .table-controls {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}