﻿/* ===== 1. CORE VARIABLES & RESET ===== */
:root {
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --accent-gold: #fbbf24;
    --text-muted: rgba(255, 255, 255, 0.7);
    --topbar-bg: rgba(255, 255, 255, 0.8);
    --body-bg: #f5f6fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --footer-height: 50px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding-bottom: var(--footer-height);
    font-family: 'Segoe UI', 'Inter', sans-serif;
    background: var(--body-bg);
    overflow-x: hidden;
}

/* ===== 2. SPLASH SCREEN ===== */
#splash {
    position: fixed;
    inset: 0;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeOut 1s ease forwards 1.5s;
}

    #splash .logo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
        animation: pulse 1.5s infinite;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top: 4px solid #f39c12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

/* ===== 3. SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    background: var(--sidebar-bg);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

    .sidebar .navbar-brand {
        padding: 2rem 1rem;
        display: flex;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 1rem;
    }

    .sidebar img {
        border: 2px solid var(--accent-gold);
        padding: 3px;
        background: white;
        border-radius: 50%;
    }

    .sidebar a {
        color: var(--text-muted);
        padding: 12px 20px;
        margin: 4px 12px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        .sidebar a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--accent-gold);
            transform: translateX(5px);
        }

        .sidebar a.active {
            background: rgba(251, 191, 36, 0.15);
            color: var(--accent-gold);
            font-weight: 600;
        }

    .sidebar i {
        font-size: 1.2rem;
        margin-right: 12px;
        min-width: 25px;
        text-align: center;
    }

/* ===== 4. TOPBAR & CONTENT ===== */
.content {
    margin-left: 260px;
    transition: var(--transition);
    min-height: 100vh;
    padding-bottom: 60px;
}

.topbar {
    background: var(--topbar-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.toggle-btn {
    color: #0f172a;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

    .toggle-btn:hover {
        color: var(--accent-gold);
        transform: scale(1.1);
    }

    .toggle-btn.rotate {
        transform: rotate(90deg);
    }

.logout-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

    .logout-btn:hover {
        background: #fee2e2;
        color: #dc2626;
        border-color: #fecaca;
    }

/* ===== 5. FOOTER ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    height: var(--footer-height);
}

/* ===== 6. UTILITIES & FORMS ===== */
.btn:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== 7. RESPONSIVE LOGIC ===== */

/* Desktop Collapsed */
@media (min-width: 769px) {
    .sidebar.collapsed {
        width: 80px;
    }

        .sidebar.collapsed span {
            display: none;
        }

    .content.collapsed {
        margin-left: 80px;
    }
}

/* Mobile Sidebar Drawer */
@media (max-width: 768px) {
    .sidebar {
        left: -260px;
        background: #0f172a;
    }

        .sidebar.active {
            left: 0;
        }

    .content {
        margin-left: 0 !important;
    }
}

/* ===== 8. ANIMATIONS ===== */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}


/*
    whatsapp css
*/

/* Container */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* The Bubble */
.wa-bubble {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s;
}

    .wa-bubble:hover {
        transform: scale(1.1);
    }

.wa-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* The Card */
.wa-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    transform-origin: bottom right;
}

    .wa-card.active {
        display: flex;
        animation: wa-pop 0.3s ease-out;
    }

/* Header */
.wa-header {
    background: #075E54;
    padding: 20px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.wa-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    margin-right: 12px;
}

    .wa-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: white;
        object-fit: contain;
    }

.wa-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border: 2px solid #075E54;
    border-radius: 50%;
}

.wa-staff-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.wa-status {
    font-size: 12px;
    opacity: 0.8;
}

.wa-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Body & Footer */
.wa-body {
    padding: 20px;
    background: #f0f2f5;
}

.wa-msg {
    background: white;
    padding: 12px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 90%;
}

    .wa-msg p {
        margin: 0;
        font-size: 14px;
        color: #333;
    }

.wa-time {
    font-size: 10px;
    color: #999;
    display: block;
    margin-top: 5px;
    text-align: right;
}

.wa-footer {
    padding: 15px;
    background: white;
}

.wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s;
}

    .wa-btn:hover {
        background: #1ebe5b;
        color: white;
    }

@keyframes wa-pop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


:root {
    --arkesel-dark: #1a2b4b; /* The deep navy background */
    --arkesel-green: #2ecc71; /* The vibrant green accent */
    --arkesel-hover: rgba(46, 204, 113, 0.1);
}

.sidebar {
    background-color: var(--arkesel-dark) !important;
    width: 260px;
    height: 100vh;
    position: fixed;
    transition: all 0.3s;
    z-index: 1000;
    border-right: none;
}

.navbar-brand {
    padding: 2rem 1.5rem;
    text-align: left;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

    /* Icon Styling */
    .sidebar-menu a i {
        font-size: 1.4rem;
        margin-right: 15px;
        color: var(--arkesel-green); /* Icons are green in the screenshot */
        width: 25px;
        text-align: center;
    }

    /* Hover State */
    .sidebar-menu a:hover {
        background-color: var(--arkesel-hover);
        color: var(--arkesel-green) !important;
    }

    /* Active State */
    .sidebar-menu a.active {
        background-color: var(--arkesel-hover);
        border-left: 4px solid var(--arkesel-green);
        color: var(--arkesel-green) !important;
    }

/* Section Labels (Administration, Management, etc.) */
.user-details {
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 1px;
    margin-top: 15px;
}

:root {
    --arkesel-green: #2ecc71; /* The vibrant brand green */
}

.arkesel-icon-box {
    background-color: var(--arkesel-green);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* This creates the slanted parallelogram shape */
    transform: skewX(-15deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .arkesel-icon-box i {
        color: white;
        font-size: 1.2rem;
        /* We "un-skew" the icon so the white symbol stays upright */
        transform: skewX(15deg);
    }

.navbar-brand span {
    /* Optional: tightening the letters slightly for a logo feel */
    letter-spacing: -0.5px;
}