* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    min-height: 100vh;
    color: #333;
}

body.cms-edit-drawer-open {
    padding-top: 70px;
}

body.cms-edit-drawer-open .top-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1060;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    margin-top: 30px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content:space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(104, 52, 173, 0.4);
}

.logo-text h1 {
    font-size: 24px;
    color: #6834ad;
    font-weight: 700;
    margin-bottom: 2px;
	text-align: center;
}

.logo-text p {
    font-size: 13px;
    color: #666;
    font-weight: 500;
	text-align: center;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.user-role {
    font-size: 13px;
    color: #666;
}

.logout-btn {
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(104, 52, 173, 0.4);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 52, 173, 0.5);
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

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

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(104, 52, 173, 0.5);
}

.login-logo h1 {
    color: #6834ad;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-logo p {
    color: #666;
    font-size: 14px;
}

/* Dashboard */
.dashboard-welcome {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.welcome-text p {
    font-size: 16px;
    color: #666;
}

.welcome-stats {
    display: flex;
    gap: 30px;
}

.welcome-stat {
    text-align: center;
}

.welcome-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #6834ad;
    display: block;
}

.welcome-stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
}

.modules-section {
    flex: 3;
    min-width: 0;
}

.action-required-section {
    flex: 1;
    min-width: 0;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 24px;
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-header h3 i {
    margin-right: 10px;
}

.section-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: calc(100vh - 250px);
    padding-right: 10px;
}

.modules-grid::-webkit-scrollbar {
    width: 8px;
}

.modules-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modules-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.modules-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.module-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(104, 52, 173, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(104, 52, 173, 0.25);
    border-color: rgba(104, 52, 173, 0.2);
}

.module-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.module-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(104, 52, 173, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.module-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(104, 52, 173, 0.4);
}

.module-card:hover .module-icon::before {
    left: 100%;
}

.module-icon i {
    font-size: 38px;
    color: white;
    position: relative;
    z-index: 1;
}

.module-title-section {
    width: 100%;
}

.module-card h4 {
    color: #1a1a1a;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.3;
}

.module-card p {
    display: none;
}

.module-footer {
    display: none;
}

.module-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6834ad;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.module-card:hover .module-badge {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    transform: scale(1.05);
}

.module-arrow {
    color: #6834ad;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(104, 52, 173, 0.1);
}

.module-card:hover .module-arrow {
    transform: translateX(8px) scale(1.2);
    background: rgba(104, 52, 173, 0.15);
    color: #8b5cf6;
}

/* Action Required Section */
.action-required-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
}

.action-items-container {
    overflow-y: auto;
    padding: 20px;
}

.action-items-container::-webkit-scrollbar {
    width: 8px;
}

.action-items-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.action-items-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.action-items-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-item:last-child {
    margin-bottom: 0;
}

.action-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.action-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.action-item-content {
    flex: 1;
    min-width: 0;
}

.action-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.action-item-content p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.action-item-badge {
    flex-shrink: 0;
}

/* Stats Section */
.stats-section {
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.stat-primary::before {
    background: linear-gradient(90deg, #6834ad 0%, #8b5cf6 100%);
}

.stat-card.stat-success::before {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.stat-card.stat-warning::before {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.stat-card.stat-info::before {
    background: linear-gradient(90deg, #0369a1 0%, #0ea5e9 100%);
}

.stat-card.stat-danger::before {
    background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-primary .stat-icon-wrapper {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.stat-success .stat-icon-wrapper {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.stat-warning .stat-icon-wrapper {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.stat-info .stat-icon-wrapper {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.stat-danger .stat-icon-wrapper {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: #dc2626;
}

/* Activity Section */
.activity-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.activity-header h3 {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
}

.view-all-btn {
    color: #6834ad;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: #8b5cf6;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.activity-description {
    font-size: 13px;
    color: #666;
}

.activity-time {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(104, 52, 173, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 52, 173, 0.5);
}

.btn-primary:disabled{
	background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="week"],
input[type="time"],
input[type="month"],
input[type="checkbox"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
select:focus {
    outline: none;
    border-color: #6834ad;
    box-shadow: 0 0 0 4px rgba(104, 52, 173, 0.1);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

/* Module Page Styles */
.module-header {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.module-header h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.module-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.module-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: white;
    color: #6834ad;
    border: 2px solid #6834ad;
}

.btn-secondary:hover {
    background: #6834ad;
    color: white;
}

.btn-secondary:disabled{
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table thead {
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
}

table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

table tbody tr:hover {
    background: #f9fafb;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Styles */
.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: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0369a1;
}

.badge-primary {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6834ad;
}

.badge-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

/* Priority Badges */
.priority-critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.priority-high {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #ea580c;
}

.priority-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.priority-low {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0369a1;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f3f4f6;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    top: 2px;
}

.tab:hover {
    color: #6834ad;
}

.tab.active {
    color: #6834ad;
    border-bottom-color: #6834ad;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #6834ad 0%, #8b5cf6 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6834ad;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #6834ad;
}

.timeline-date {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.timeline-content {
    background: #f9fafb;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 3px solid #6834ad;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 13px;
    color: #666;
}

/* Leave Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.calendar-day-header {
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day.on-leave {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #6834ad;
    color: #6834ad;
}

.calendar-day.weekend {
    background: #e5e7eb;
    color: #9ca3af;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
	padding-bottom: 7px;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f3f4f6;
}

/* Textarea Styles */
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: #6834ad;
    box-shadow: 0 0 0 4px rgba(104, 52, 173, 0.1);
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    background: #f9fafb;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #6834ad;
    background: #f3f4f6;
}

.upload-buttons {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Image Preview Container */
.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.image-preview-item:hover {
    border-color: #6834ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 52, 173, 0.2);
}

.image-preview-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-name {
    padding: 8px 10px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .modules-section,
    .action-required-section {
        flex: 1;
        width: 100%;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        max-height: none;
        overflow-y: visible;
    }
    
    .action-required-card {
        max-height: 500px;
    }
    
    .welcome-stats {
        gap: 20px;
    }
    
    .modal-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 0 20px;
    }
    
    .logo-section {
        flex-direction: column;
    }
    
    .user-section {
        flex-direction: column;
        width: 100%;
    }
    
    .user-info {
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
        justify-content: center;
    }
    
    .welcome-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .welcome-stats {
        justify-content: center;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: visible;
    }
    
    .action-required-card {
        max-height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-welcome {
        padding: 30px 20px;
    }
    
    .activity-section {
        padding: 30px 20px;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    .image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 40px 30px;
    }
    
    .welcome-text h2 {
        font-size: 24px;
    }
    
    .section-header h3 {
        font-size: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .close {
        width: 30px;
        height: 30px;
        font-size: 28px;
    }
    
    .upload-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upload-buttons span {
        margin-left: 0 !important;
        margin-top: 10px;
        text-align: center;
    }
}

/* Settings Dropdown Styles */
.settings-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.settings-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6834ad;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* FontAwesome Icon Adjustments */
.module-header h1 i {
    margin-right: 10px;
    color: #6834ad;
}

.btn i {
    font-size: 14px;
}

.stat-icon {
    font-size: 24px !important;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 200px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Toggle Switch Styles */
.toggle-switch 
{
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input 
{
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider 
{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc2626;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before 
{
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

        input:checked + .toggle-slider {
            background-color: #16a34a;
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .toggle-slider:hover {
            opacity: 0.9;
        }

        .status-row {
            display: flex;
            align-items: center;
            justify-content: space-between; /* 左右分开 */
            gap: 20px;
        }

        .status-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .status-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #statusLabel {
            font-weight: 500;
            font-size: 14px;
            margin-bottom: 10px;
        }

/* ============================================
   MOBILE NAVIGATION (HAMBURGER MENU)
   ============================================ */

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #f9fafb;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #6834ad;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.mobile-menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

/* 菜单打开时的动画 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* 移动端侧边菜单 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-sidebar.active {
    left: 0;
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单头部 */
.mobile-menu-header {
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    padding: 25px 20px;
    color: white;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mobile-menu-brand img {
    width: 56px;
    height: auto;
}

.mobile-menu-brand-text h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 700;
}

.mobile-menu-brand-text p {
    font-size: 11px;
    margin: 2px 0 0 0;
    opacity: 0.9;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mobile-menu-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mobile-menu-user-info {
    flex: 1;
    min-width: 0;
}

.mobile-menu-user-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-user-role {
    font-size: 12px;
    margin: 2px 0 0 0;
    opacity: 0.9;
}

/* 移动端菜单导航列表 */
.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-item.active {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6834ad;
    border-left: 4px solid #6834ad;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-link:active {
    background: #f9fafb;
}

.mobile-menu-link.active {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6834ad;
    border-left: 4px solid #6834ad;
}

.mobile-menu-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mobile-menu-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-menu-arrow {
    font-size: 14px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.mobile-menu-item.expanded .mobile-menu-arrow {
    transform: rotate(180deg);
}

/* 移动端子菜单 */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: #f9fafb;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.expanded {
    max-height: 3000px;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 56px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item:active {
    background: #f3f4f6;
}

.mobile-submenu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #9ca3af;
}

/* 移动端菜单底部操作 */
.mobile-menu-footer {
    padding: 20px;
    border-top: 2px solid #f3f4f6;
}

.mobile-menu-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6834ad 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(104, 52, 173, 0.3);
}

.mobile-menu-footer-btn:active {
    transform: scale(0.97);
}

.mobile-menu-footer-btn i {
    font-size: 18px;
}

/* 在手机端显示汉堡菜单按钮,隐藏桌面导航 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none !important;
    }
    
    /* 调整导航栏布局 */
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-actions {
        margin-left: auto;
    }
}

/* 防止菜单打开时页面滚动 */
body.mobile-menu-open {
    overflow: hidden;
}

/* 平滑滚动 */
.mobile-sidebar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: #f9fafb;
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Medical Conditions Section UI Design Start*/
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.checkbox-item:hover {
    background: #f3f4f6;
    border-color: #4F46E5;
}
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4F46E5;
}
.checkbox-item label {
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    color: #374151;
    user-select: none;
}
.checkbox-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f3f4f6;
}
.other-input-container {
    margin-top: 15px;
    display: none;
}
.other-input-container.show {
    display: block;
}
.checkbox-inline {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    transition: all 0.2s;
}
.checkbox-inline:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
.checkbox-inline input[type="checkbox"] {
    accent-color: #4F46E5;
    cursor: pointer;
}
.checkbox-inline label {
    color: #1e40af;
    font-size: 13px;
    margin: 0;
}

/* Balance grid */
.bal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.bal-card {
    position: relative;
    min-height: 156px;
    padding: 16px 15px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: box-shadow .18s, border-color .18s, transform .18s;
}
.bal-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.bal-card-oor {
    opacity: .65;
}
.bal-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}
.bal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.bal-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    min-width: 0;
}
.bal-card-code {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid;
    white-space: nowrap;
}
.bal-card-oor-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.bal-card-value {
    margin-bottom: 6px;
}
.bal-card-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}
.bal-card-unit {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 10px;
    min-height: 16px;
}
.bal-card-bar-track {
    height: 5px;
    border-radius: 99px;
    background: #eef2f7;
    overflow: hidden;
}
.bal-card-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .6s ease;
}
.bal-card-entitlement {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: #6b7280;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px dashed #e5e7eb;
}
.bal-card-modern {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    background:
        linear-gradient(180deg, var(--bal-soft, #f8fafc) 10%, rgba(255,255,255,0) 42%),
        #fff;
    overflow: visible;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.bal-card-modern:hover {
    border-color: #d7dce5;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
.bal-card-modern .bal-card-header {
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0;
}
.bal-card-modern .bal-card-caption {
    font-size: 11px;
    color: #8b94a3;
    margin-top: 2px;
}
.bal-card-modern .bal-card-value-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.bal-card-modern .bal-card-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 0;
}
.bal-card-modern .bal-card-number {
    color: var(--bal-color, #6834ad);
    font-size: 32px;
}
.bal-card-modern .bal-card-number-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
}
.bal-card-modern .bal-card-percent {
    font-size: 11px;
    font-weight: 800;
    color: var(--bal-color, #6834ad);
    background: var(--bal-soft, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--bal-color, #6834ad) 18%, #e5e7eb);
    border-radius: 6px;
    padding: 3px 7px;
}
.bal-card-modern .bal-card-bar-track {
    height: 6px;
    background: #eef2f7;
}
.bal-card-modern .bal-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bal-card-modern .bal-card-stats div {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.bal-card-modern .bal-card-stats span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #8b94a3;
    text-transform: uppercase;
}
.bal-card-modern .bal-card-stats strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #1f2937;
}
.bal-card-modern .bal-card-entitlement {
    margin-top: 0;
    padding: 9px 10px;
    border-top: 0;
    border-radius: 8px;
    background: #fbf8ff;
    border: 1px solid #ede9fe;
    color: #6b7280;
}
.bal-card-modern .bal-card-entitlement strong {
    color: #4b5563;
    font-weight: 700;
}
.deduction-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.deduction-group-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.deduction-group-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
}
.deduction-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.deduction-group-eyebrow {
    font-size: 10px;
    font-weight: 800;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 3px;
}
.deduction-group-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}
.deduction-group-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 9px;
    white-space: nowrap;
}
.deduction-history-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
}
.deduction-sequence {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ede9fe;
    color: #6834ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.deduction-main {
    min-width: 0;
}
.deduction-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.deduction-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}
.deduction-code {
    font-size: 10px;
    font-weight: 800;
    color: #6834ad;
    background: #ede9fe;
    border-radius: 5px;
    padding: 2px 7px;
}
.deduction-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
}
.deduction-amount {
    text-align: right;
    min-width: 62px;
}
.deduction-days {
    font-size: 18px;
    font-weight: 800;
    color: #6834ad;
    line-height: 1;
}
.deduction-days-label {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}
.deduction-status {
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.approval-flow-steps .timeline-step {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 18px;
}
.approval-flow-steps .timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}
.approval-flow-steps .timeline-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    z-index: 1;
}
.approval-flow-steps .timeline-content {
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 0;
    border-left: 0;
}
.approval-flow-steps .timeline-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}
.approval-flow-steps .timeline-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 1px;
}
.approval-flow-steps .timeline-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
    margin-bottom: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.view-balance-card-scroll {
    max-height: 352px;
    overflow-y: auto;
    padding-right: 4px;
}
.view-balance-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-auto-rows: minmax(160px, auto);
}
.view-balance-card {
    min-height: 160px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

@media (max-width: 1000px) { .bal-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
    .bal-grid { grid-template-columns: 1fr; }
    .view-balance-card-grid { grid-template-columns: 1fr; }
    .view-balance-card-scroll { max-height: 520px; }
}

/* Add Leave Type Settings Part*/
.setting-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.setting-item:hover {
    background: #f5f0ff;
    border-color: #c4b5fd;
}

/* Active state — whole label turns purple when checkbox is checked */
.setting-item:has(input:checked) {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #6834ad;
}

.setting-item:has(input:checked) .setting-icon {
    background: #6834ad;
    color: white;
}

.setting-item:has(input:checked) .setting-title {
    color: #4c1d95;
}

.setting-item:has(input:checked) .setting-desc {
    color: #6834ad;
}

.setting-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #ede9fe;
    color: #6834ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.setting-text {
    flex: 1;
    line-height: 1.4;
}

.setting-title {
    display: block;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.setting-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.setting-item input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #6834ad;
}

/*Medical Conditio UI Design End*/
