/* theme-modern-styles.css
   ─────────────────────────────────────────────
   A premium "app-like" theme inspired by Linear,
   Vercel, and Raycast. Deep slate canvas, vibrant
   accent gradients, glass-effect cards, and smooth
   transitions on every interactive surface.
   ───────────────────────────────────────────── */


/* ══════ TYPOGRAPHY ══════ */

.theme-modern .main-text {
  color: #c9d1d9;
}

.theme-modern .second-text-color {
  color: #8b949e;
}

.theme-modern .third-text-color {
  color: #a78bfa;
}

.theme-modern p {
  color: #c9d1d9;
}

.theme-modern label {
  color: #8b949e;
}


/* ══════ BUTTONS ══════ */

.theme-modern .main-button {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.25);
}

.theme-modern .main-button:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: 1px solid rgba(139, 92, 246, 0.6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.theme-modern .second-button-color {
  background-color: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.theme-modern .second-button-color:hover {
  background-color: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.theme-modern .red-button {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #fff;
  border-radius: 6px;
}

.theme-modern .red-button:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
}


/* ══════ CARDS ══════ */

.theme-modern .card {
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: #c9d1d9;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.theme-modern .card-body {
  background-color: rgba(30, 36, 44, 0.6);
}

.theme-modern .card-small {
  background: rgba(22, 27, 34, 0.7);
  border-radius: 8px;
}

.theme-modern .main-card {
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
}


/* ══════ BACKGROUNDS ══════ */

.theme-modern .main-bg {
  background: linear-gradient(170deg, #0d1117 0%, #131a24 50%, #0d1117 100%);
}

.theme-modern .secondary-bg {
  background-color: #161b22;
}

.theme-modern .eggshell-bg {
  background-color: #21262d;
}

.theme-modern .offwhite-bg {
  background-color: #1c2128;
}


/* ══════ LINKS ══════ */

.theme-modern .navlink {
  color: #a78bfa;
  transition: color 0.15s ease;
}

.theme-modern .navlink:hover {
  color: #c4b5fd;
}

.theme-modern .card-link {
  color: #a78bfa;
  transition: color 0.15s ease;
}

.theme-modern .card-link:hover {
  color: #c4b5fd;
}

.theme-modern .show-more-link {
  color: #a78bfa;
}

.theme-modern .show-more-link:hover {
  color: #c4b5fd;
}

.theme-modern .small-card-border {
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
}


/* ══════ ALERTS / BADGES ══════ */

.theme-modern .recently-clocked-in {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
}

.theme-modern .badge-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #fff !important;
  border-radius: 4px;
}


/* ══════ CLOCK BUTTONS ══════ */

.theme-modern .clock-in-button {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.theme-modern .clock-in-button:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  border: solid 1px transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.theme-modern .clock-out-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.theme-modern .clock-out-button:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: solid 1px transparent;
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}


/* ══════ DASHBOARD ══════ */

.theme-modern .dash-card {
  color: #c9d1d9;
  border-radius: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.theme-modern .dash-card:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
  border-color: rgba(139, 92, 246, 0.2);
}

.theme-modern .dash-card-bg {
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.theme-modern .card-heading {
  color: #e6edf3;
  letter-spacing: -0.01em;
}

.theme-modern .main-label {
  color: #8b949e;
}


/* ══════ DASHBOARD LINKS ══════ */

.theme-modern .dash-more-link {
  color: #a78bfa;
}

.theme-modern .dash-more-link:hover {
  color: #c4b5fd;
}

.theme-modern .dash-unworked-link {
  color: #a78bfa;
}

.theme-modern .dash-unworked-link:hover {
  color: #c4b5fd;
}

.theme-modern .dash-out-link {
  color: #34d399;
}

.theme-modern .dash-out-link:hover {
  color: #6ee7b7;
}

.theme-modern .dash-in-link {
  color: #fbbf24;
}

.theme-modern .dash-in-link:hover {
  color: #fde68a;
}


/* ══════ CRITICAL NUMBER ══════ */

.theme-modern .critical-number {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 3px solid rgba(239, 68, 68, 0.3);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}


/* ══════ DASHBOARD CLOCK BUTTONS ══════ */

.theme-modern .dash-in-button {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.theme-modern .dash-in-button:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.theme-modern .dash-in-button:disabled {
  background: #21262d;
  color: #484f58;
  box-shadow: none;
}

.theme-modern .dash-out-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.theme-modern .dash-out-button:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}


/* ══════ STATUS COLORS ══════ */

.theme-modern .green-text {
  color: #34d399;
}

.theme-modern .red-text {
  color: #f87171;
}

.theme-modern .blue-text {
  color: #60a5fa;
}

.theme-modern .large-number {
  letter-spacing: -0.03em;
}

/* Clocked In = electric blue */
.theme-modern .status-clockedin {
  color: #60a5fa;
}

/* Clocked Out = emerald */
.theme-modern .status-clockedout {
  color: #34d399;
}

/* Unworked = coral red */
.theme-modern .status-unworked {
  color: #f87171;
}

/* Unscheduled = muted */
.theme-modern .status-unscheduled {
  color: #484f58;
}


/* ══════ SIDEBAR NAV ══════ */

.theme-modern .sidebar-nav .nav-link {
  color: #8b949e;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.theme-modern .sidebar-nav .nav-link:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #c4b5fd;
}

.theme-modern .sidebar-nav .nav-link.active {
  background: rgba(139, 92, 246, 0.15);
  border-left: 3px solid #7c3aed;
  color: #a78bfa;
}

.theme-modern .sidebar-title {
  color: #484f58;
}

.theme-modern .expand-toggle {
  color: #484f58;
  transition: color 0.15s ease;
}

.theme-modern .expand-toggle:hover {
  color: #a78bfa;
}


/* ══════ ROWS / BORDERS ══════ */

.theme-modern .prop-row,
.theme-modern .tp-row,
.theme-modern .worker-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.theme-modern .prop-row:last-child,
.theme-modern .tp-row:last-child,
.theme-modern .worker-row:last-child {
  border-bottom: none;
}


/* ══════ FORMS / INPUTS ══════ */

.theme-modern input,
.theme-modern select,
.theme-modern textarea {
  background-color: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9d1d9;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.theme-modern input:focus,
.theme-modern select:focus,
.theme-modern textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.theme-modern .custom-checkbox label::before {
  border-color: rgba(139, 92, 246, 0.4);
  background: #0d1117;
}

.theme-modern .custom-checkbox input[type="checkbox"]:checked + label::before {
  background: #7c3aed;
  border-color: #7c3aed;
}


/* ══════ HEADER / NAV ══════ */

.theme-modern header {
  background: linear-gradient(90deg, #0d1117, #161b22);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.theme-modern .dropdown-content {
  background-color: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-modern .dropdown-content a:hover {
  background-color: rgba(139, 92, 246, 0.08);
}

.theme-modern .mega-menu-heading {
  color: #a78bfa;
}


/* ══════ FOOTER ══════ */

.theme-modern footer {
  background: linear-gradient(90deg, #0d1117, #161b22);
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  color: #484f58;
}


/* ══════ PHOTO WATCH BADGE ══════ */

.theme-modern .photo-watch-badge {
  color: #fbbf24;
}

.theme-modern .photo-watch-units {
  color: #c9d1d9;
}


/* ══════ QUICK FILTERS ══════ */

.theme-modern .quick-filter {
  background-color: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.theme-modern .quick-filter:hover {
  background-color: rgba(139, 92, 246, 0.25);
  color: #e9d5ff;
}


/* ══════ SCROLLBAR ══════ */

.theme-modern ::-webkit-scrollbar {
  width: 6px;
}

.theme-modern ::-webkit-scrollbar-track {
  background: #0d1117;
}

.theme-modern ::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 3px;
}

.theme-modern ::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}
