﻿:root {
    --bg-dark: #070913;
    --border-glass: rgba(0, 242, 254, 0.18);
    --neon-cyan: #00f2fe;
    --neon-purple: #8a2be2;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0 0 95px 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 85% 10%, rgba(0, 242, 254, 0.12) 0%, transparent 40%), radial-gradient(circle at 15% 85%, rgba(138, 43, 226, 0.15) 0%, transparent 40%);
    color: var(--text-main);
    overflow-x: hidden;
}

/* 2-Second Futuristic Noorify Splash Loader */
#noorify-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, #111827 0%, #05070e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

    #noorify-loader.loader-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader-badge-wrap {
    position: relative;
    width: 155px;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .loader-badge-wrap::before {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        border: 2px solid transparent;
        border-top-color: var(--neon-cyan);
        border-bottom-color: var(--neon-purple);
        animation: spinRing 1.4s linear infinite;
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
    }

.loader-badge-img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.45));
    animation: pulseBadge 1.8s ease-in-out infinite;
}

.loader-bar-track {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 26px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    animation: fillProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes spinRing {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(0.96);
    }

    50% {
        transform: scale(1.04);
    }
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Sticky Header with Noorify Logo */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 19, 0.88);
    backdrop-filter: blur(16px);
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
}

.header-switch {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-cyan);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.08);
    white-space: nowrap;
}

.container {
    padding: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.controls-card {
    background: rgba(18, 25, 43, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.futuristic-select {
    width: 100%;
    padding: 11px 12px;
    background: rgba(9, 13, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
}

.btn-excel {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 18px;
    font-size: 0.78rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 7px 10px;
    border-radius: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.dot-red {
    background: #f87171;
    box-shadow: 0 0 8px #ef4444;
}

.dot-amber {
    background: #fbbf24;
    box-shadow: 0 0 8px #f59e0b;
}

.dot-green {
    background: #34d399;
    box-shadow: 0 0 8px #10b981;
}

.dot-blue {
    background: #38bdf8;
    box-shadow: 0 0 8px #0ea5e9;
}

.report-block {
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 35px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* 1. Light Red: ETA Past */
.bg-light-red {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.25), rgba(153, 27, 27, 0.18));
    border: 1px solid rgba(248, 113, 113, 0.55);
    border-left: 5px solid #ef4444;
}
/* 2. Light Amber: ETA Nearing */
.bg-light-amber {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.18));
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-left: 5px solid #f59e0b;
}
/* 3. Light Green: Completed */
.bg-light-green {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 95, 70, 0.18));
    border: 1px solid rgba(52, 211, 153, 0.55);
    border-left: 5px solid #10b981;
}
/* 4. Light Blue: Work in Progress */
.bg-light-blue {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.25), rgba(3, 105, 161, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-left: 5px solid #0ea5e9;
}

.bg-light-neutral {
    background: rgba(20, 28, 48, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-left: 5px solid #64748b;
}

.block-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.block-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.eta-pill {
    font-size: 0.73rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    white-space: nowrap;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 12px;
}

.info-item span {
    color: var(--text-muted);
    display: block;
    font-size: 0.7rem;
}

.comments-box {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.8rem;
    color: #e2e8f0;
    white-space: pre-wrap;
    max-height: 110px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.wa-track-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.btn-wa-direct {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #25D366;
    color: #4ade80;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

    .btn-wa-direct:active {
        background: #25D366;
        color: #000;
    }

.btn-wa-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
}

.bottom-dock {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 480px;
    background: rgba(13, 18, 32, 0.94);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 24px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
    z-index: 999;
}

.dock-link {
    text-decoration: none;
    text-align: center;
    padding: 10px 4px;
    border-radius: 18px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.25s;
    white-space: nowrap;
}

    .dock-link.active {
        background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(138, 43, 226, 0.3));
        color: #fff;
        border: 1px solid rgba(0, 242, 254, 0.4);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
    }

.fa-solid, .fas {
    font-weight: 900;
    margin-right: 10px;
}

.fa-regular, .far {
    font-weight: 900;
    margin-right: 10px;
}


/* Tasks.aspx-compatible search and Task ID badge */
.search-filter-card {
    background: rgba(18, 25, 43, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 7px;
    margin-bottom: 0;
}
.btn-search {
    padding: 0 15px;
    border: 1px solid var(--neon-cyan);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(138, 43, 226, 0.3));
    color: #fff;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}
.btn-clear {
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
}
.task-id-badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.16);
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: var(--neon-cyan);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 7px;
    vertical-align: middle;
}

.header-nav-group { display:flex; gap:6px; align-items:center; }
.bottom-dock { grid-template-columns: repeat(3, 1fr); }


.futuristic-input {
    width: 100%;
    padding: 11px 12px;
    background: rgba(9, 13, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    transition: all 0.25s ease;
}