/* Global Tech Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary-color: #00f2ff;
    --secondary-color: #bc13fe;
    --bg-color: #020617;
    --panel-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(0, 242, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    color: #e2e8f0;
    font-family: 'Exo 2', sans-serif;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(188, 19, 254, 0.1) 0%, transparent 50%),
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color); 
}

/* Navigation */
.nav-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.15) 0%, transparent 100%);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    box-shadow: inset 10px 0 20px -10px rgba(0, 242, 255, 0.3);
}

.nav-item i {
    width: 24px;
    text-align: center;
}

/* Cards & Panels */
.card, .panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.5), transparent);
    opacity: 0.5;
}

.card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Tables */
table {
    border-collapse: separate; 
    border-spacing: 0 4px; 
}

table th {
    font-weight: 600;
    letter-spacing: 0.5px;
}

table tr {
    transition: all 0.2s ease;
}

table tr:hover td {
    color: #fff;
}

/* Buttons */
.btn-tech {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-tech:hover {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.8);
}

/* Form Elements */
input, select, textarea {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', monospace !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.1) !important;
    outline: none;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Status Tags */
.status-tag {
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}
.status-running { 
    background: rgba(0, 242, 255, 0.1); 
    color: var(--primary-color); 
    border: 1px solid rgba(0, 242, 255, 0.2);
}
.status-completed { 
    background: rgba(34, 197, 94, 0.1); 
    color: #4ade80; 
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-pending { 
    background: rgba(245, 158, 11, 0.1); 
    color: #fbbf24; 
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-failed { 
    background: rgba(239, 68, 68, 0.1); 
    color: #f87171; 
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 242, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 242, 255, 0.5); }
}

.glow-effect {
    animation: pulse-glow 3s infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 242, 255, 0.05) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* Added Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUpFlex {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up-flex {
    animation: fadeInUpFlex 0.3s ease-out forwards;
}

/* Flatpickr Overrides - Disable Year Editing */
.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    display: none !important;
}

.flatpickr-current-month .numInputWrapper input.numInput.cur-year {
    pointer-events: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}