1312 lines
23 KiB
CSS
1312 lines
23 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;
|
|
}
|
|
|
|
/* 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;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* 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;
|
|
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-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: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
width: 90%;
|
|
max-width: 800px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
background: #f8fafc;
|
|
display: flex;
|
|
justify-content: between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
color: #6b7280;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: #374151;
|
|
background: #e5e7eb;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.project-info-section {
|
|
margin-bottom: 24px;
|
|
padding: 16px;
|
|
background: #f8fafc;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #3b82f6;
|
|
}
|
|
|
|
.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: #6b7280;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.project-info-value {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.va-section-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.va-count-badge {
|
|
background: #3b82f6;
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.va-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: white;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.va-table th {
|
|
background: #f8fafc;
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.va-table td {
|
|
padding: 16px;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
|
|
.va-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.va-table tr:hover {
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.va-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.va-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: #3b82f6;
|
|
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: #1f2937;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.va-email {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.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: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.status-badge.inactive {
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-dot.active {
|
|
background: #16a34a;
|
|
}
|
|
|
|
.status-dot.inactive {
|
|
background: #9ca3af;
|
|
}
|
|
|
|
.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: #16a34a;
|
|
}
|
|
|
|
.activity-dot.inactive {
|
|
background: #9ca3af;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
100% { opacity: 1; }
|
|
}
|
|
|
|
.no-vas-message {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.no-vas-message i {
|
|
font-size: 3rem;
|
|
margin-bottom: 16px;
|
|
color: #d1d5db;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
/* Dark theme support */
|
|
[data-theme="dark"] .modal-content {
|
|
background: #1f2937;
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme="dark"] .modal-header {
|
|
background: #374151;
|
|
border-bottom-color: #4b5563;
|
|
}
|
|
|
|
[data-theme="dark"] .modal-title {
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme="dark"] .project-info-section {
|
|
background: #374151;
|
|
border-left-color: #60a5fa;
|
|
}
|
|
|
|
[data-theme="dark"] .project-info-value {
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme="dark"] .va-section-title {
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme="dark"] .va-table {
|
|
background: #374151;
|
|
}
|
|
|
|
[data-theme="dark"] .va-table th {
|
|
background: #4b5563;
|
|
color: #f9fafb;
|
|
border-bottom-color: #6b7280;
|
|
}
|
|
|
|
[data-theme="dark"] .va-table td {
|
|
border-bottom-color: #4b5563;
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme="dark"] .va-table tr:hover {
|
|
background: #4b5563;
|
|
}
|
|
|
|
[data-theme="dark"] .va-fullname {
|
|
color: #f9fafb;
|
|
}
|
|
|
|
[data-theme="dark"] .status-badge.inactive {
|
|
background: #4b5563;
|
|
color: #d1d5db;
|
|
}
|
|
|
|
.modal-actions {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.modal-actions a {
|
|
text-decoration: none;
|
|
} |