/* ==========================================================================
   Raquel IT Department - Glassy Dashboard V2 Stylesheet
   Directly cloned from "Glassy Dashboard V2" Motion & Frosted Glass Design
   ========================================================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.48);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-card-bg: rgba(255, 255, 255, 0.52);
    --glass-card-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 24px 60px -15px rgba(28, 25, 23, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    
    --text-slate-900: #0f172a;
    --text-slate-800: #1e293b;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    
    --accent-emerald: #10b981;
    --accent-emerald-bg: rgba(16, 185, 129, 0.14);
    --accent-coral: #ef4444;
    --accent-coral-bg: rgba(239, 68, 68, 0.14);
    --accent-amber: #f59e0b;
    --accent-amber-bg: rgba(245, 158, 11, 0.14);
    --accent-blue: #3b82f6;
    --accent-blue-bg: rgba(59, 130, 246, 0.14);
    --accent-violet: #8b5cf6;
    --accent-violet-bg: rgba(139, 92, 246, 0.14);
}

/* Master Glassy Page Layout */
.glassy-page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* Warm luxury interior blurred background backdrop matching video */
    background: 
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 88% 22%, rgba(244, 63, 94, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(139, 92, 246, 0.14) 0%, transparent 40%),
        linear-gradient(135deg, #d8cebe 0%, #c8baa6 35%, #bfb09d 70%, #b3a28e 100%);
    background-attachment: fixed;
    padding: 1.5rem 2rem 6.5rem 6.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-slate-800);
    overflow-x: hidden;
}

/* Soft Ambient Blurred Background Shapes */
.glassy-ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.glassy-ambient-orb.orb-1 {
    width: 480px;
    height: 480px;
    top: -100px;
    left: -100px;
    background: rgba(245, 158, 11, 0.22);
}
.glassy-ambient-orb.orb-2 {
    width: 520px;
    height: 520px;
    bottom: -120px;
    right: -80px;
    background: rgba(225, 29, 72, 0.18);
}

/* ==========================================================================
   1. FLOATING TOP CAPSULE BAR
   ========================================================================== */
.glassy-top-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.glassy-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-card-border);
    border-radius: 9999px;
    padding: 0.45rem 1.15rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-slate-800);
    transition: all 0.25s ease;
}

.glassy-pill:hover {
    background: var(--glass-bg-hover);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c81e3a, #881326);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(200, 30, 58, 0.35);
}

.status-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.action-round-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-slate-800);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.action-round-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 10px 24px -2px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   2. FLOATING LEFT SLIM CAPSULE DOCK (Video Signature Element)
   ========================================================================== */
.glassy-sidebar-dock {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    padding: 1rem 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    z-index: 1000;
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-slate-600);
    text-decoration: none;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.12);
}

/* Active State: Solid White Circular Button with Dark Icon (From Video Frame 4 & 5) */
.dock-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transform: scale(1.08);
}

/* Tooltip Pill popping to right of active button */
.dock-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #0f172a;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dock-item:hover .dock-tooltip,
.dock-btn.active + .dock-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   3. MAIN FROSTED GLASS BOARD (The Central Canvas)
   ========================================================================== */
.glassy-main-board {
    position: relative;
    z-index: 5;
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 28px;
    border: 1px solid var(--glass-card-border);
    padding: 2.2rem 2.5rem;
    box-shadow: var(--glass-shadow);
    margin: 0 auto;
    max-width: 1380px;
    transition: all 0.3s ease;
}

/* Header Inside Frosted Board */
.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.board-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-slate-900);
    margin-bottom: 0.25rem;
}

.board-subtitle {
    font-size: 0.875rem;
    color: var(--text-slate-600);
}

/* Pill Date Selector & Action Pills (From Video) */
.glass-filter-group {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-card-border);
    border-radius: 9999px;
    padding: 0.25rem;
    gap: 0.2rem;
}

.filter-pill-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill-btn:hover {
    color: var(--text-slate-900);
}

.filter-pill-btn.active {
    background: #18181b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-glass-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #18181b;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.btn-glass-primary:hover {
    background: #27272a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   4. STATS CARDS (Framer Motion whileHover={{ y: -5 }} Cloned)
   ========================================================================== */
.glass-stat-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid var(--glass-card-border);
    padding: 1.4rem 1.5rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px -8px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.65);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-slate-600);
}

.stat-card-value {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--text-slate-900);
    letter-spacing: -0.5px;
    margin: 0.25rem 0 0.5rem 0;
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    width: fit-content;
}

.stat-trend-emerald {
    background: var(--accent-emerald-bg);
    color: #047857;
}

.stat-trend-coral {
    background: var(--accent-coral-bg);
    color: #b91c1c;
}

.stat-trend-blue {
    background: var(--accent-blue-bg);
    color: #1d4ed8;
}

.stat-trend-amber {
    background: var(--accent-amber-bg);
    color: #b45309;
}

/* ==========================================================================
   5. ANALYTICAL CHART CARDS (Spline Area & Donut)
   ========================================================================== */
.glass-chart-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
    border: 1px solid var(--glass-card-border);
    padding: 1.75rem 1.85rem;
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    height: 100%;
}

.glass-chart-card:hover {
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

.chart-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-slate-900);
    margin-bottom: 0.25rem;
}

.chart-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-slate-500);
}

.chart-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

/* Category Progress Bar Rows */
.category-progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.825rem;
}

.category-progress-bar-wrap {
    flex-grow: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 9999px;
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

/* Circular Goal Rings (Tab 3: Maintenance & Goals) */
.goal-ring-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-card-border);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.goal-ring-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.1);
}

.goal-ring-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
}

.goal-ring-svg {
    transform: rotate(-90deg);
}

.goal-ring-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-slate-900);
}

/* ==========================================================================
   6. FLOATING BOTTOM CAPSULE DOCK (Video Signature Element)
   ========================================================================== */
.glassy-bottom-dock {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 9999px;
    padding: 0.4rem 0.65rem;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.bottom-tab-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-slate-600);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bottom-tab-btn:hover {
    color: var(--text-slate-900);
}

/* Active Bottom Tab: White Capsule Pill (From Video) */
.bottom-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.bottom-dock-plus-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #18181b;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-left: 0.25rem;
    transition: all 0.25s ease;
}

.bottom-dock-plus-btn:hover {
    background: #27272a;
    transform: rotate(90deg) scale(1.1);
}

/* ==========================================================================
   Tab View Transitions
   ========================================================================== */
.glassy-view {
    display: none;
    animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glassy-view.active-view {
    display: block;
}

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

/* Responsive Rules */
@media (max-width: 991px) {
    .glassy-page-wrapper {
        padding: 1.25rem 1rem 6.5rem 1rem;
    }

    .glassy-sidebar-dock {
        display: none; /* Mobile uses bottom dock */
    }

    .glassy-main-board {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .glassy-bottom-dock {
        width: calc(100% - 2rem);
        max-width: 480px;
        overflow-x: auto;
        justify-content: center;
    }

    .bottom-tab-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.775rem;
    }
}

/* ==========================================================================
   7. UNIVERSAL GLASS STYLES FOR ALL SUBMENUS (Inventory, Repairs, PM, etc.)
   ========================================================================== */
.card-shell {
    background: var(--glass-card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 22px;
    border: 1px solid var(--glass-card-border);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.06);
    padding: 1.6rem 1.75rem;
    transition: all 0.25s ease;
}

.card-shell:hover {
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.62);
}

.stat-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid var(--glass-card-border);
    padding: 1.35rem 1.45rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px -8px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.68);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Glassy Tables */
.table-custom {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    margin-bottom: 0;
}

.table-custom thead th {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-slate-600);
    padding: 0.9rem 1rem;
}

.table-custom tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.82) !important;
}

.table-custom td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

/* Glassy Form Controls */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-slate-900);
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Glassy Action Buttons */
.btn-primary {
    background: #18181b;
    border: none;
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: #27272a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    color: var(--text-slate-800);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-outline-primary {
    background: rgba(37, 99, 235, 0.08);
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    border-radius: 9999px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Asset Tag Badges */
.asset-tag-badge {
    background: #18181b;
    color: #ffffff;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
}

.badge-status {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.775rem;
    letter-spacing: 0.02em;
}

/* Glassy Modals */
.modal-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Nav Tabs in Glassy View */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-slate-600);
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
    color: #0f172a;
    background: transparent;
    border-bottom-color: #0f172a;
}


