/* public/style.css - SOLCLEAN PRO - Soltane (Ouled Fayet, Alger) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0d9488;       /* Teal 600 */
    --primary-dark: #0f766e;  /* Teal 700 */
    --primary-light: #ccfbf1; /* Teal 100 */
    --accent: #0284c7;        /* Sky 600 */
    --accent-dark: #0369a1;   /* Sky 700 */
    --dark: #0f172a;          /* Slate 900 */
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --emerald: #10b981;
    --rose: #f43f5e;
    --amber: #f59e0b;
}

* {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

/* Glassmorphism effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Map styling */
#gisLiveMap {
    height: 480px;
    width: 100%;
    border-radius: 12px;
    z-index: 10;
}

/* Before / After Comparison Slider */
.ba-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 380px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-after {
    width: 50%;
    border-right: 3px solid #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #ffffff;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 20;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #0d9488;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.ba-badge {
    position: absolute;
    bottom: 16px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.ba-badge-before {
    right: 16px;
    background: rgba(225, 29, 72, 0.85);
    color: white;
}

.ba-badge-after {
    left: 16px;
    background: rgba(16, 185, 129, 0.85);
    color: white;
}

/* Mobile App simulation container */
.mobile-mockup-frame {
    max-width: 430px;
    margin: 0 auto;
    border: 10px solid #0f172a;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.mobile-notch {
    width: 140px;
    height: 22px;
    background: #0f172a;
    margin: 0 auto;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Animations */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.pulsing-dot {
    animation: pulse-ring 2s infinite ease-in-out;
}

/* Print Invoice Styling */
@media print {
    body * {
        visibility: hidden;
    }
    #invoiceModalContent, #invoiceModalContent * {
        visibility: visible;
    }
    #invoiceModalContent {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
    }
    .no-print {
        display: none !important;
    }
}

/* ERP Sidebar UI/UX Styling */
.erp-sidebar-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.erp-sidebar-btn:hover {
    background-color: rgba(30, 41, 59, 0.8);
    color: #ffffff;
}

.erp-sidebar-btn.active {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    color: #ffffff !important;
    border-color: rgba(94, 234, 212, 0.3) !important;
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.25), 0 4px 6px -4px rgba(13, 148, 136, 0.2) !important;
}

.erp-sidebar-btn.active span.text-base {
    transform: scale(1.1);
}

/* Notification Dropdown PRO Styling (Solid Non-transparent Background) */
.notif-dropdown {
    background-color: #ffffff !important;
    background: #ffffff !important;
    opacity: 1 !important;
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 9999 !important;
}

.notif-dropdown.hidden {
    display: none !important;
    transform: scale(0.95) translateY(-6px);
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Bootstrap / Enterprise Pro Pagination Styling */
.pro-table-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .pro-table-pagination {
        flex-direction: row;
    }
}

.pro-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #ffffff;
}

.pro-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    user-select: none;
}

.pro-page-btn:hover:not(:disabled):not(.active) {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.pro-page-btn.active {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3) !important;
}

.pro-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}


