@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Base ───────────────────────────────────────────────── */
body {
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #226E54; /* industrial-gray */
    background-color: #f8fafc; /* bg-slate-50 */
}
.font-poppins { font-family: 'Outfit', sans-serif; }

/* ── Components ─────────────────────────────────────────── */

/* Navigation links */
.nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569; /* text-slate-600 */
    border-radius: 0;
    transition: all 0.2s;
}
.nav-link:hover {
    background-color: #f8fafc;
    color: #226E54;
}
.nav-link.active {
    color: #226E54; /* bosch-blue */
    background-color: #f1f5f9; /* slate-100 */
    border-left: 4px solid #ed1c24;
}

/* Mobile nav items */
.mobile-nav-item {
    color: #94a3b8; /* slate-400 */
}

.mobile-nav-item.active {
    color: #226E54; /* bosch-blue */
}

.mobile-nav-item.active .nav-icon-container {
    background-color: rgba(34, 110, 84, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(34, 110, 84, 0.1);
}

.mobile-nav-item span {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.2s;
}
.btn-primary {
    background-color: #226E54;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(34, 110, 84, 0.2);
}
.btn-primary:hover {
    background-color: #226E54;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
}
.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Toast notifications */
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    border: 1px solid #226E54;
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
    font-size: 0.875rem;
    font-weight: 600;
    color: #226E54;
    min-width: 280px;
    max-width: 24rem;
}

/* Table */
.table-auto thead th {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    padding-bottom: 1rem;
    text-align: left;
}
.table-auto tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    border-top: 1px solid #f8fafc;
}

/* ── Animations ──────────────────────────────────────────── */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Lightning & Glow Effects */
@keyframes lightning-pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); filter: blur(80px); }
    50% { opacity: 0.3; transform: scale(1.1); filter: blur(100px); }
}

@keyframes lightning-strike {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightning-glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #226E54 0%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
    animation: lightning-pulse 8s infinite ease-in-out;
}

.lightning-bg {
    position: relative;
    overflow: hidden;
}

.lightning-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(34, 110, 84, 0.05) 180deg, transparent 360deg);
    animation: lightning-strike 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* ── Custom Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar        { width: 12px; height: 12px; }
::-webkit-scrollbar-track  { background: #f8fafc; border-left: 1px solid #e2e8f0; }
::-webkit-scrollbar-thumb  { background: #226E54; border-radius: 0; border: 2px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #226E54; }

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    body * {
        visibility: hidden;
    }
    #invoice-doc-modal, #invoice-doc-modal * {
        visibility: visible;
    }
    #invoice-doc-modal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    .no-print, .no-print * {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ── WhatsApp Widget ─────────────────────────────────────── */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.whatsapp-btn {
    width: 4rem;
    height: 4rem;
    background-color: #25D366;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 4px 4px 0 rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    position: relative;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    border: 4px solid #25D366;
    opacity: 0;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    background: white;
    border: 2px solid #226E54;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
    font-size: 0.875rem;
    font-weight: 700;
    color: #226E54;
    opacity: 0;
    transform: translateX(1rem);
    pointer-events: none;
    transition: all 0.3s;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 6rem;
        right: 1.5rem;
    }
}

/* ── Premium Logo Effects ────────────────────────────────── */
@keyframes logoPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 110, 84, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 62, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 62, 100, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.logo-container-premium {
    position: relative;
    background: linear-gradient(135deg, #1a4a39 0%, #0f2a20 100%);
    overflow: hidden;
}

.logo-container-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(34, 110, 84, 0.3), transparent 30%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text-gradient {
    background: linear-gradient(to bottom, #1a4a39, #0f2a20);
    -webkit-background-clip: text;
    background-clip: text; /* standard property */
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-badge {
    background: linear-gradient(90deg, #226E54, #1a4a39);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}
