:root { --color-primary: #0d0b57; --color-primary-light: #2b8efc; --color-secondary: #6366f1; --color-success: #10b981; --color-warning: #f59e0b; --color-danger: #ef4444; --color-gray-50: #f9fafb; --color-gray-100: #f3f4f6; --color-gray-200: #e5e7eb; --color-gray-300: #d1d5db; --color-gray-400: #9ca3af; --color-gray-500: #6b7280; --color-gray-600: #4b5563; --color-gray-700: #374151; --color-gray-800: #1f2937; --color-gray-900: #111827; --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-card: #ffffff; --text-primary: #1f2937; --text-secondary: #6b7280; --text-muted: #9ca3af; --border-color: #e5e7eb; --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } [data-theme="dark"] { --bg-primary: #121212; --bg-secondary: #1e1e1e; --bg-card: #1e1e1e; --text-primary: #f5f5f5; --text-secondary: #d1d5db; --text-muted: #9ca3af; --border-color: #374151; --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); transition: background-color 0.3s ease, color 0.3s ease; } .dashboard-body { overflow: hidden; } /* Header Styles */ .dashboard-header { position: sticky; top: 0; z-index: 40; width: 100%; height: 4rem; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(16px); background-color: rgba(255, 255, 255, 0.7); border-bottom: 1px solid var(--border-color); } [data-theme="dark"] .dashboard-header { background-color: rgba(30, 30, 30, 0.7); } .header-content { display: flex; padding: 0 1.5rem; gap: 1rem; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; position: relative; flex-wrap: nowrap; } .header-logo { display: flex; flex-basis: 0; flex-grow: 1; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: center; background: transparent; text-decoration: none; color: inherit; white-space: nowrap; box-sizing: border-box; } .header-nav { display: flex; height: 100%; flex-direction: row; flex-wrap: nowrap; gap: 0.5rem; align-items: center; justify-content: flex-end; } .nav-list { display: flex; list-style: none; gap: 0.5rem; } .nav-button { padding: 0.5rem 1rem; border-radius: 0.5rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; transition: all 0.2s; font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); background: none; border: none; cursor: pointer; text-decoration: none; } .nav-button:hover { background-color: var(--color-gray-100); color: var(--color-primary-light); } [data-theme="dark"] .nav-button:hover { background-color: var(--color-gray-800); } .nav-button.active { color: var(--color-primary-light); border-bottom: 2px solid var(--color-primary-light); } .user-avatar { width: 2rem; height: 2rem; background-color: var(--color-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; cursor: pointer; } .mobile-menu-button { display: none; width: 2rem; height: 2rem; align-items: center; justify-content: center; color: var(--text-secondary); background: none; border: none; cursor: pointer; } /* Container Layout */ .dashboard-container { display: flex; height: calc(100vh - 4rem); } /* Sidebar Styles */ .dashboard-sidebar { width: 16rem; background-color: var(--bg-card); border-right: 1px solid var(--border-color); /* display: none; */ } .dashboard-sidebar.active { display: block; } @media (min-width: 768px) { .dashboard-sidebar { display: block; } } @media (max-width: 768px) { .dashboard-sidebar { position: absolute; left: 0; bottom: 0; z-index: 99; top: 0; transform: translateX(-100%); transition: .3s ease; } .dashboard-sidebar.active { transform: translateX(0); } } .sidebar-header { padding: 1.5rem; } .sidebar-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); } .sidebar-nav { margin-top: 1.5rem; } .sidebar-list { list-style: none; padding: 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; } .sidebar-item { margin-bottom: 0.5rem; } .sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; border-radius: 0.5rem; transition: all 0.2s; } .sidebar-link:hover { background-color: var(--color-gray-100); color: var(--text-primary); } [data-theme="dark"] .sidebar-link:hover { background-color: var(--color-gray-800); } .sidebar-link.active { background-color: rgba(59, 130, 246, 0.1); color: var(--color-primary-light); } .sidebar-icon { width: 1.25rem; text-align: center; } /* Main Content */ .dashboard-main { flex: 1; overflow: auto; padding: 1.5rem; background-color: var(--bg-secondary); } .dashboard-content { max-width: 80rem; margin: 0 auto; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; } @media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } } .section-title { margin-bottom: 20px; } .stat-card { background-color: var(--bg-card); border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border-color); transition: box-shadow 0.2s; } .stat-card:hover { box-shadow: var(--shadow-lg); } .stat-content { display: flex; align-items: center; justify-content: space-between; } .stat-info h3 { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.25rem; font-weight: 500; } .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); } .stat-icon { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .stat-icon.blue { background-color: rgba(59, 130, 246, 0.1); color: var(--color-primary-light); } .stat-icon.green { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); } .stat-icon.red { background-color: rgba(239, 68, 68, 0.1); color: var(--color-danger); } .stat-icon.yellow { background-color: rgba(245, 158, 11, 0.1); color: var(--color-warning); } /* Content Grid */ .content-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; } .status-indicator:has(>.active) { text-align: center; padding: 4px; background-color: rgba(51, 255, 0, 0.24); border-radius: 20px; } @media (min-width: 1024px) { .content-grid { grid-template-columns: repeat(2, 1fr); } } .content-card { background-color: var(--bg-card); border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border-color); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .card-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); } .card-link { font-size: 0.875rem; color: var(--color-primary-light); text-decoration: none; } .card-link:hover { text-decoration: underline; } /* Activity Items */ .activity-list { display: flex; flex-direction: column; gap: 0.75rem; } .activity-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background-color: var(--color-gray-50); border-radius: 0.5rem; } [data-theme="dark"] .activity-item { background-color: var(--color-gray-800); } .activity-info h4 { font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem; } .activity-info p { font-size: 0.875rem; color: var(--text-secondary); } .activity-meta { text-align: right; } .activity-meta .value { font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; } .activity-meta .date { font-size: 0.875rem; color: var(--text-secondary); } .status-badge { display: inline-block; padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 9999px; font-weight: 600; } .status-paid { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); } .status-unpaid { background-color: rgba(239, 68, 68, 0.1); color: var(--color-danger); } /* Page Header */ .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .page-title { font-size: 1.5rem; font-weight: 300; color: var(--text-primary); } .action-button { padding: 0.5rem 1rem; background-color: rgba(59, 130, 246, 0.1); color: var(--color-primary-light); border-radius: 0.5rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.2s; } .action-button:hover { background-color: rgba(59, 130, 246, 0.2); } /* Table Styles */ .table-container { background-color: var(--bg-card); border-radius: 0.5rem; box-shadow: var(--shadow); border: 1px solid var(--border-color); overflow: hidden; } .table-wrapper { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; } .data-table thead { background-color: var(--color-gray-50); } [data-theme="dark"] .data-table thead { background-color: var(--color-gray-800); } .data-table th { padding: 0.75rem 1.5rem; text-align: left; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); } .data-table tbody tr { border-bottom: 1px solid var(--border-color); transition: background-color 0.2s; cursor: pointer; } .data-table tbody tr:hover { background-color: var(--color-gray-50); } [data-theme="dark"] .data-table tbody tr:hover { background-color: var(--color-gray-800); } .data-table td { padding: 1rem 1.5rem; font-size: 0.875rem; color: var(--text-primary); } .data-table .status-active { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); } .data-table .status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; } .hours-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; } .hours-default { background-color: rgba(107, 114, 128, 0.1); color: var(--color-gray-600); } .hours-primary { background-color: rgba(59, 130, 246, 0.1); color: var(--color-primary-light); } .hours-secondary { background-color: rgba(99, 102, 241, 0.1); color: var(--color-secondary); } .hours-warning { background-color: rgba(245, 158, 11, 0.1); color: var(--color-warning); } .amount-positive { color: var(--color-success); } .amount-tips { color: var(--color-warning); } /* Empty State */ .empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--text-secondary); } /* Responsive */ @media (max-width: 768px) { .dashboard-main { padding: 1rem; } .mobile-menu-button { display: flex; } .nav-list { display: none; } .stats-grid { grid-template-columns: 1fr; } .content-grid { grid-template-columns: 1fr; } .data-table { font-size: 0.75rem; } .data-table th, .data-table td { padding: 0.5rem 0.75rem; } } /* Popup Styles */ .popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(5px); } .popup-content { background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; animation: popupFadeIn 0.3s ease-out; } @keyframes popupFadeIn { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } } .popup-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid #e5e7eb; } .popup-header h3 { margin: 0; color: #1f2937; font-size: 1.25rem; font-weight: 600; } .popup-close { background: none; border: none; font-size: 1.25rem; color: #6b7280; cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: all 0.2s; } .popup-close:hover { background: #f3f4f6; color: #374151; } .popup-body { padding: 1.5rem; } .va-details-grid { display: grid; gap: 1rem; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; } .detail-item:last-child { border-bottom: none; } .detail-item label { font-weight: 600; color: #374151; font-size: 0.875rem; } .detail-item span { color: #6b7280; text-align: right; } .status-active { color: #059669; font-weight: 600; } .status-inactive { color: #dc2626; font-weight: 600; } .popup-footer { display: flex; gap: 1rem; padding: 1.5rem; border-top: 1px solid #e5e7eb; justify-content: flex-end; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; font-size: 0.875rem; } .btn-primary { background: #3b82f6; color: white; } .btn-primary:hover { background: #2563eb; } .btn-secondary { background: #6b7280; color: white; } .btn-secondary:hover { background: #4b5563; } /* Make table rows clickable */ tr[data-vaid] { cursor: pointer; transition: background-color 0.2s; } tr[data-vaid]:hover { background-color: #f8fafc !important; } /* Ensure view link doesn't trigger row click */ .view-link { cursor: pointer; z-index: 10; position: relative; } /* Project Details Styles in Popup */ .projects-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; } .projects-title { font-size: 1rem; font-weight: 600; color: #1f2937; margin: 0 0 1rem 0; } .projects-list { display: flex; flex-direction: column; gap: 0.75rem; } .project-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; transition: all 0.2s; margin-top: 12px; } .project-item:hover { background: #f1f5f9; border-color: #cbd5e1; } .project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .project-name { font-weight: 600; color: #1f2937; font-size: 0.9rem; } .project-time { background: #3b82f6; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; } .project-id { font-size: 0.75rem; color: #6b7280; font-family: monospace; } .no-projects { text-align: center; color: #6b7280; font-style: italic; padding: 1rem; background: #f8fafc; border-radius: 6px; border: 1px dashed #d1d5db; } /* Adjust basic info layout */ .va-basic-info { display: grid; gap: 1rem; margin-bottom: 1rem; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; } .detail-item:last-child { border-bottom: none; } .detail-item label { font-weight: 600; color: #374151; font-size: 0.875rem; } .detail-item span { color: #6b7280; text-align: right; } .status-active { color: #059669; font-weight: 600; } .status-inactive { color: #dc2626; font-weight: 600; } /* Popup responsive adjustments */ @media (max-width: 480px) { .project-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .project-time { align-self: flex-start; } .detail-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; } .detail-item span { text-align: left; } } /* Modal Styles */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; } .modal-content { background: white; border-radius: 8px; padding: 20px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .modal-header { display: flex; justify-content: between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #e5e7eb; padding-bottom: 10px; } .modal-title { font-size: 1.25rem; font-weight: 600; margin: 0; } .close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; } .close-modal:hover { color: #374151; } .va-list { display: flex; flex-direction: column; gap: 10px; } .va-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; } .va-info-modal { display: flex; flex-direction: column; } .va-name-modal { font-weight: 600; color: #374151; } .va-email-modal { font-size: 0.875rem; color: #6b7280; } .va-status { padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; } .status-active { background: #dcfce7; color: #166534; } .status-inactive { background: #f3f4f6; color: #6b7280; } /* Project row hover effect */ .project-row { cursor: pointer; transition: background-color 0.2s ease; } .project-row:hover { background-color: #f8fafc; } /* Logout button styles */ .logout-button { background: none; border: none; color: #ef4444; cursor: pointer; padding: 10px; border-radius: 6px; transition: background-color 0.2s ease; text-align: left; width: 100%; } .logout-button:hover { background-color: #fef2f2; } .logout-container { margin-top: auto; padding: 20px; border-top: 1px solid #e5e7eb; }