2206 lines
42 KiB
CSS
2206 lines
42 KiB
CSS
: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;
|
|
}
|
|
|
|
[data-theme="dark"] .mobile-menu-button {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* 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);
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* ===== FIX DUPLICATE SELECT ICON ISSUE ===== */
|
|
select,
|
|
.select-field {
|
|
appearance: none !important;
|
|
-webkit-appearance: none !important;
|
|
-moz-appearance: none !important;
|
|
|
|
background-image: none !important;
|
|
background-repeat: no-repeat !important;
|
|
background-position: unset !important;
|
|
}
|
|
|
|
/* Custom select wrapper */
|
|
.select-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.void-btn-a {
|
|
background: tomato;
|
|
text-decoration: none;
|
|
color: #ffffff !important;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Add spacing for icon */
|
|
.select-wrapper select {
|
|
width: 100%;
|
|
padding-right: 44px;
|
|
}
|
|
|
|
/* Single dropdown icon */
|
|
.select-icon {
|
|
position: absolute;
|
|
right: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
pointer-events: none;
|
|
color: #aaa;
|
|
font-size: 14px;
|
|
}
|
|
|
|
[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);
|
|
}
|
|
|
|
[data-theme="dark"] .sidebar-link.active {
|
|
background-color: rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.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;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
[data-theme="dark"] .status-indicator:has(>.active) {
|
|
background-color: rgba(51, 255, 0, 0.15);
|
|
}
|
|
|
|
@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);
|
|
}
|
|
|
|
[data-theme="dark"] .action-button {
|
|
background-color: rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
[data-theme="dark"] .action-button:hover {
|
|
background-color: rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
/* 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);
|
|
}
|
|
|
|
[data-theme="dark"] .hours-default {
|
|
background-color: rgba(107, 114, 128, 0.2);
|
|
color: var(--color-gray-400);
|
|
}
|
|
|
|
.hours-primary {
|
|
background-color: rgba(59, 130, 246, 0.1);
|
|
color: var(--color-primary-light);
|
|
}
|
|
|
|
[data-theme="dark"] .hours-primary {
|
|
background-color: rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.hours-secondary {
|
|
background-color: rgba(99, 102, 241, 0.1);
|
|
color: var(--color-secondary);
|
|
}
|
|
|
|
[data-theme="dark"] .hours-secondary {
|
|
background-color: rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.hours-warning {
|
|
background-color: rgba(245, 158, 11, 0.1);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
[data-theme="dark"] .hours-warning {
|
|
background-color: rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* 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: var(--bg-card);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow-lg);
|
|
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 var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.popup-header h3 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.popup-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.25rem;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 0.25rem;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.popup-close:hover {
|
|
background: var(--color-gray-100);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .popup-close:hover {
|
|
background: var(--color-gray-700);
|
|
}
|
|
|
|
.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 var(--border-color);
|
|
}
|
|
|
|
.detail-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.detail-item label {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.detail-item span {
|
|
color: var(--text-secondary);
|
|
text-align: right;
|
|
}
|
|
|
|
.status-active {
|
|
color: var(--color-success);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-inactive {
|
|
color: var(--color-danger);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.popup-footer {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
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: var(--color-primary-light);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #2563eb;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--color-gray-500);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--color-gray-600);
|
|
}
|
|
|
|
/* Make table rows clickable */
|
|
tr[data-vaid] {
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
tr[data-vaid]:hover {
|
|
background-color: var(--color-gray-50) !important;
|
|
}
|
|
|
|
[data-theme="dark"] tr[data-vaid]:hover {
|
|
background-color: var(--color-gray-800) !important;
|
|
}
|
|
|
|
/* Ensure view link doesn't trigger row click */
|
|
.view-link {
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
position: relative;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Project Details Styles in Popup */
|
|
.projects-section {
|
|
margin-top: 1.5rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.projects-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
.projects-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.project-item {
|
|
background: var(--color-gray-50);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
transition: all 0.2s;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
[data-theme="dark"] .project-item {
|
|
background: var(--color-gray-800);
|
|
}
|
|
|
|
.project-item:hover {
|
|
background: var(--color-gray-100);
|
|
border-color: var(--color-gray-300);
|
|
}
|
|
|
|
[data-theme="dark"] .project-item:hover {
|
|
background: var(--color-gray-700);
|
|
border-color: var(--color-gray-600);
|
|
}
|
|
|
|
.project-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.project-name {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.project-time {
|
|
background: var(--color-primary-light);
|
|
color: white;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.project-id {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
font-family: monospace;
|
|
}
|
|
|
|
.no-projects {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
padding: 1rem;
|
|
background: var(--color-gray-50);
|
|
border-radius: 6px;
|
|
border: 1px dashed var(--border-color);
|
|
}
|
|
|
|
[data-theme="dark"] .no-projects {
|
|
background: var(--color-gray-800);
|
|
}
|
|
|
|
/* Adjust basic info layout */
|
|
.va-basic-info {
|
|
display: grid;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* 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-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.modal-content {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: var(--bg-card);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow-lg);
|
|
width: 90%;
|
|
max-width: 800px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
display: flex;
|
|
justify-content: between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--text-primary);
|
|
background: var(--color-gray-100);
|
|
}
|
|
|
|
[data-theme="dark"] .modal-close:hover {
|
|
background: var(--color-gray-700);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.project-info-section {
|
|
margin-bottom: 24px;
|
|
padding: 16px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
border-left: 4px solid var(--color-primary-light);
|
|
}
|
|
|
|
.project-info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.project-info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.project-info-label {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.project-info-value {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.va-section-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.va-count-badge {
|
|
background: var(--color-primary-light);
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.va-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--bg-card);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.va-table th {
|
|
background: var(--bg-secondary);
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.va-table td {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.va-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.va-table tr:hover {
|
|
background: var(--color-gray-50);
|
|
}
|
|
|
|
[data-theme="dark"] .va-table tr:hover {
|
|
background: var(--color-gray-800);
|
|
}
|
|
|
|
.va-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.va-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--color-primary-light);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.va-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.va-fullname {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.va-email {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-badge.active {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.status-badge.inactive {
|
|
background: var(--color-gray-100);
|
|
color: var(--color-gray-600);
|
|
}
|
|
|
|
[data-theme="dark"] .status-badge.inactive {
|
|
background: var(--color-gray-700);
|
|
color: var(--color-gray-400);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-dot.active {
|
|
background: var(--color-success);
|
|
}
|
|
|
|
.status-dot.inactive {
|
|
background: var(--color-gray-400);
|
|
}
|
|
|
|
.activity-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.activity-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.activity-dot.active {
|
|
background: var(--color-success);
|
|
}
|
|
|
|
.activity-dot.inactive {
|
|
background: var(--color-gray-400);
|
|
}
|
|
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.no-vas-message {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.no-vas-message i {
|
|
font-size: 3rem;
|
|
margin-bottom: 16px;
|
|
color: var(--color-gray-400);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.modal-content {
|
|
width: 95%;
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 16px;
|
|
}
|
|
|
|
.project-info-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.va-table {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.va-table th,
|
|
.va-table td {
|
|
padding: 12px 8px;
|
|
}
|
|
}
|
|
|
|
.modal-actions {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.modal-actions a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Profile Styles */
|
|
.profile-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.profile-header {
|
|
margin-bottom: 30px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.profile-title {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.profile-sections {
|
|
display: grid;
|
|
gap: 30px;
|
|
}
|
|
|
|
.profile-section {
|
|
background: var(--bg-card);
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 25px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.section-icon {
|
|
font-size: 1.5rem;
|
|
color: var(--color-primary-light);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-label {
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.form-input {
|
|
padding: 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary-light);
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .form-input:focus {
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.empty-field {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.password-section {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.change-password-btn {
|
|
background: var(--color-primary-light);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-size: 1rem;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.change-password-btn:hover {
|
|
background: #2563eb;
|
|
}
|
|
|
|
/* 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;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: var(--color-gray-100);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .modal-close:hover {
|
|
background: var(--color-gray-700);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
}
|
|
|
|
.modal-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.modal-form .form-group {
|
|
gap: 8px;
|
|
}
|
|
|
|
.modal-form .form-label {
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.modal-form .form-input {
|
|
padding: 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
transition: border-color 0.2s;
|
|
resize: vertical;
|
|
}
|
|
|
|
.modal-form .form-input:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary-light);
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .modal-form .form-input:focus {
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.modal-form .form-input.error {
|
|
border-color: var(--color-danger);
|
|
}
|
|
|
|
.select-field {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
background-size: 16px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
[data-theme="dark"] .select-field {
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
}
|
|
|
|
.error-message {
|
|
color: var(--color-danger);
|
|
font-size: 0.875rem;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.success-message {
|
|
color: var(--color-success);
|
|
font-size: 0.875rem;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: flex-end;
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.save-btn {
|
|
background: var(--color-success);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.save-btn:hover {
|
|
background: #059669;
|
|
}
|
|
|
|
.save-btn:disabled {
|
|
background: var(--color-gray-400);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: var(--color-danger);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.cancel-btn:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
/* Logout Confirmation Modal Styles */
|
|
.logout-modal-body {
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.logout-icon {
|
|
font-size: 3rem;
|
|
color: var(--color-danger);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.logout-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.logout-message {
|
|
color: var(--text-secondary);
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.logout-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logout-confirm-btn {
|
|
background: var(--color-danger);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.logout-confirm-btn:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.logout-cancel-btn {
|
|
background: var(--color-gray-500);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.logout-cancel-btn:hover {
|
|
background: var(--color-gray-600);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.modal-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.logout-actions {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* Additional Dark Mode Styles for Elements Not Covered */
|
|
[data-theme="dark"] {
|
|
|
|
/* Ensure all text colors are properly set */
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
p,
|
|
span,
|
|
div {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Form elements */
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Selection color */
|
|
::selection {
|
|
background: rgba(59, 130, 246, 0.3);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-gray-600);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--color-gray-500);
|
|
}
|
|
}
|
|
|
|
/* Ensure proper contrast for all interactive elements */
|
|
[data-theme="dark"] button:not(.modal-close):not(.popup-close) {
|
|
color: white;
|
|
}
|
|
|
|
[data-theme="dark"] .sidebar-title {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[data-theme="dark"] .logo-container h2 {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Loading states */
|
|
.loading {
|
|
opacity: 0.7;
|
|
pointer-events: none;
|
|
}
|
|
|
|
[data-theme="dark"] .loading {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.va-action {
|
|
text-decoration: none;
|
|
color: #fff;
|
|
background-color: #2563eb;
|
|
padding: 0.5rem 1rem;
|
|
text-align: center;
|
|
border-radius: 5px;
|
|
transform: scale(0.96);
|
|
transition: all 0.2s ease-in-out;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.va-info {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.va-action:hover {
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* ================================
|
|
PROFILE DROPDOWN (GLASS STYLE)
|
|
================================ */
|
|
.header-profile {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.profile-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
|
|
padding: 0.70rem 0.75rem;
|
|
|
|
border-radius: 999px;
|
|
|
|
cursor: pointer;
|
|
|
|
/* NEW */
|
|
border: 1px solid var(--border-color);
|
|
background: linear-gradient(135deg, rgba(255, 0, 150, 0.3), rgba(0, 204, 255, 0.3));
|
|
|
|
transition:
|
|
background-color 0.2s ease,
|
|
border-color 0.2s ease,
|
|
box-shadow 0.2s ease;
|
|
}
|
|
|
|
/* Hover effect */
|
|
.profile-trigger:hover {
|
|
background-color: rgba(0, 0, 0, 0.06);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
/* Active (clicked/open) state */
|
|
.profile-trigger.active {
|
|
background-color: rgba(0, 123, 255, 0.1);
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
|
|
}
|
|
|
|
|
|
[data-theme="dark"] .profile-trigger:hover {
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
/* Avatar */
|
|
.profile-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 2px solid #3b82f6;
|
|
}
|
|
|
|
/* Name */
|
|
.profile-name {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-color, #111827);
|
|
}
|
|
|
|
[data-theme="dark"] .profile-name {
|
|
color: #e5e7eb;
|
|
}
|
|
|
|
.profile-trigger i {
|
|
font-size: 0.7rem;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ================================
|
|
DROPDOWN MENU
|
|
================================ */
|
|
.profile-menu {
|
|
position: absolute;
|
|
top: calc(100% + 0.45rem);
|
|
right: 0;
|
|
width: 240px;
|
|
border-radius: 12px;
|
|
backdrop-filter: blur(16px);
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
|
display: none;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
z-index: 50;
|
|
}
|
|
|
|
[data-theme="dark"] .profile-menu {
|
|
background: rgba(30, 30, 30, 0.9);
|
|
}
|
|
|
|
/* Show menu on hover */
|
|
.profile-menu {
|
|
display: none;
|
|
}
|
|
|
|
.profile-menu.active {
|
|
display: flex;
|
|
}
|
|
|
|
|
|
/* Menu items */
|
|
.profile-menu a,
|
|
.logout-btn {
|
|
padding: 0.75rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 0.875rem;
|
|
color: var(--text-color, #111827);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.profile-menu a:hover,
|
|
.logout-btn:hover {
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
[data-theme="dark"] .profile-menu a,
|
|
[data-theme="dark"] .logout-btn {
|
|
color: #e5e7eb;
|
|
}
|
|
|
|
[data-theme="dark"] .profile-menu a:hover,
|
|
[data-theme="dark"] .logout-btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
/* Divider */
|
|
.menu-divider {
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
/* Logout */
|
|
.logout-btn {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.logout-btn i {
|
|
color: #dc2626;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.profile-name {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Accordion Styles */
|
|
.accordion {
|
|
margin-bottom: 1rem;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
background: var(--card-bg, #ffffff);
|
|
}
|
|
|
|
.accordion-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.25rem 1.5rem;
|
|
background: var(--primary-color, #4f46e5);
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.accordion-header:hover {
|
|
background: var(--primary-dark, #4338ca);
|
|
}
|
|
|
|
.accordion-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.accordion-icon {
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.accordion.active .accordion-icon {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.accordion-content {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease-out;
|
|
}
|
|
|
|
.accordion.active .accordion-content {
|
|
max-height: 5000px;
|
|
}
|
|
|
|
.table-wrapper {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.data-table th {
|
|
background: var(--bg-secondary, #f8fafc);
|
|
padding: 1rem;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #1e293b);
|
|
border-bottom: 2px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.data-table td {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.data-table tr:hover {
|
|
background: var(--hover-bg, #f1f5f9);
|
|
}
|
|
|
|
.no-data-row td {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.time-badge {
|
|
background: var(--success-color, #10b981);
|
|
color: white;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-spinner {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 4px solid var(--border-color, #e2e8f0);
|
|
border-top: 4px solid var(--primary-color, #4f46e5);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.empty-state i {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.empty-state h3 {
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.logs-count {
|
|
background: var(--primary-light, #c7d2fe);
|
|
color: var(--primary-color, #4f46e5);
|
|
padding: 0.125rem 0.5rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
|
|
.payment-option {
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.payment-option.selected {
|
|
border-color: var(--border-color);
|
|
transition: all 0.3s ease;
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
.payment-option:hover {
|
|
border-color: var(--accent-light);
|
|
}
|
|
|
|
.payment-option.selected {
|
|
border-color: var(--accent-color);
|
|
background-color: rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .payment-option.selected {
|
|
background-color: rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.payment-option h4 {
|
|
margin-bottom: 8px;
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.payment-option p {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.payment-details {
|
|
display: none;
|
|
margin: 4px 0 16px;
|
|
padding: 16px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.payment-details.active {
|
|
display: block;
|
|
animation: slideDown 0.3s ease-out;
|
|
}
|
|
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
position: relative;
|
|
}
|
|
|
|
.input-container {
|
|
position: relative;
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
padding: 2px 0;
|
|
border: 1px solid transparent;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.input-container:focus-within {
|
|
border-color: var(--accent-light);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.input-label {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
transition: all 0.2s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.input-field, .select-field {
|
|
width: 100%;
|
|
padding: 18px 12px 14px;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
font-size: 14px;
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
[data-theme="dark"] .input-field, [data-theme="dark"] .select-field {
|
|
background-color: #ffffff1a;
|
|
}
|
|
|
|
.input-field::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.select-field {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
background-size: 16px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
[data-theme="dark"] .select-field {
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
}
|
|
|
|
.input-field:focus + .input-label,
|
|
.input-field:not(:placeholder-shown) + .input-label,
|
|
.select-field:focus + .input-label,
|
|
.select-field:valid + .input-label {
|
|
top: 2px;
|
|
font-size: 12px;
|
|
transform: none;
|
|
color: var(--accent-light);
|
|
} |