/* ============================================
   CLOUD.FIAOS.ORG - CUSTOM THEME OVERRIDES
   Add-on CSS to override external global.css
   ============================================ */

/* ============================================
   CUSTOM CSS VARIABLES (Override :root)
   ============================================ */

:root {
    /* Primary Colors - Custom Cloud Theme */
    --primary-color: #ffffff !important;
    --secondary-color: #ffffff !important;
    
    /* Text Colors */
    --text-primary: #ffffff !important;
    --text-secondary: #cacaca !important;
    --text-tertiary: #ffffff !important;
    
    /* Background Colors */
    --bg-primary: #151515 !important;
    --bg-secondary: #000000 !important;
    --bg-tertiary: #2c2c2c !important;
    
    /* Border & Shadow */
    --border-color: #4e4e4e !important;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    --shadow-md: 0 4px 6px rgba(255, 255, 255, 0.1) !important;
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12) !important;
    
    /* Custom Cloud Variables */
    --cloud-accent: #ffffff;
    --cloud-gradient-start: #000000;
    --cloud-gradient-end: #38002c;
    --cloud-highlight: #000000;
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */

[data-theme="dark"] {
    --primary-color: #818cf8 !important;
    --secondary-color: #a78bfa !important;
    
    --text-primary: #f1f5f9 !important;
    --text-secondary: #cbd5e1 !important;
    --text-tertiary: #64748b !important;
    
    --bg-primary: #0f172a !important;
    --bg-secondary: #1e293b !important;
    --bg-tertiary: #334155 !important;
    
    --border-color: #475569 !important;
    
    --cloud-accent: #38bdf8;
    --cloud-highlight: #1e3a5f;
}

/* ============================================
   HEADER CUSTOMIZATIONS
   ============================================ */

.site-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--cloud-highlight) 100%) !important;
    box-shadow: var(--shadow-sm) !important;
    top: 0px;
}



.brand-logo {
    filter: none !important;
}

[data-theme="dark"] .brand-logo {
    filter: brightness(1.2) !important;
}

/* ============================================
   NAVIGATION CUSTOMIZATIONS
   ============================================ */

.nav-link {
    position: relative !important;
    overflow: hidden !important;
}

.nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: white;
    transition: width 0.3s ease, left 0.3s ease !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100% !important;
    left: 0 !important;
}

.nav-link.active {
    background: transparent !important;
    color: var(--primary-color) !important;
}

/* ============================================
   ANNOUNCEMENT RIBBON CUSTOMIZATIONS
   ============================================ */

.announcement-ribbon {
    background: linear-gradient(90deg, var(--cloud-gradient-start) 0%, var(--cloud-gradient-end) 100%) !important;
}

/* ============================================
   SIDEBAR CUSTOMIZATIONS
   ============================================ */

.sidebar {
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-color) !important;
}

.sidebar-link {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.sidebar-link:hover {
    background: var(--cloud-highlight) !important;
    color: var(--primary-color) !important;
    transform: translateX(4px) !important;
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end)) !important;
    color: #ffffff !important;
}

/* ============================================
   BUTTON CUSTOMIZATIONS
   ============================================ */

.btn-link {
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.btn-link:hover {
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Primary Button Style */
.btn-primary,
.cookie-btn-accept {
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end)) !important;
    border: none !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover,
.cookie-btn-accept:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

/* ============================================
   CARD & CONTENT CUSTOMIZATIONS
   ============================================ */

.info-card,
.doc-category,
.publication-item,
.spec-details {
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.info-card:hover,
.doc-category:hover,
.publication-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.info-icon,
.doc-icon {
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ============================================
   BADGE CUSTOMIZATIONS
   ============================================ */

.pub-badge {
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end)) !important;
    border-radius: 20px !important;
}

/* ============================================
   FOOTER CUSTOMIZATIONS
   ============================================ */

.site-footer {
    background: var(--bg-secondary) !important;
}


.footer-social a {
    transition: all 0.2s ease !important;
}

.footer-social a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px) !important;
}

/* ============================================
   COOKIE CONSENT CUSTOMIZATIONS
   ============================================ */

.cookie-consent {
    filter: none !important;
    background: var(--bg-primary) !important;
    border-top: 2px solid var(--primary-color) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .cookie-consent {
    background: var(--bg-secondary) !important;
}

/* ============================================
   SCROLL & SELECTION CUSTOMIZATIONS
   ============================================ */



/* ============================================
   MOBILE MENU CUSTOMIZATIONS
   ============================================ */

.mobile-menu-overlay {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

.mobile-nav-link:hover {
    color: var(--primary-color) !important;
}

/* ============================================
   SEARCH OVERLAY CUSTOMIZATIONS
   ============================================ */

.search-overlay {
    background: rgba(15, 23, 42, 0.98) !important;
}

.search-overlay-input {
    border-bottom-color: var(--primary-color) !important;
}

/* ============================================
   TOOLBAR CUSTOMIZATIONS
   ============================================ */

.top-toolbar {
    background: var(--bg-tertiary) !important;
}

.toolbar-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* ============================================
   TABLE CUSTOMIZATIONS
   ============================================ */

.spec-table thead {
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end)) !important;
}

.spec-table th {
    color: #ffffff !important;
}

.spec-table tr:hover td {
    background: var(--cloud-highlight) !important;
}

/* ============================================
   STATUS INDICATORS CUSTOMIZATIONS
   ============================================ */

.status-active {
    background: #22c55e !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5) !important;
}

.status-warning {
    background: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5) !important;
}

.status-inactive,
.status-declined {
    background: #64748b !important;
}

/* ============================================
   LOADING STATE CUSTOMIZATIONS
   ============================================ */

.loading-state i {
    color: var(--primary-color) !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   LINK HOVER EFFECTS
   ============================================ */

a:not(.nav-link):not(.sidebar-link):not(.mobile-nav-link):not(.btn-link) {
    transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

a:not(.nav-link):not(.sidebar-link):not(.mobile-nav-link):not(.btn-link):hover {
    text-decoration: underline !important;
    text-decoration-color: var(--primary-color) !important;
}

/* ============================================
   CLOUD-SPECIFIC ADDITIONS
   ============================================ */

/* Cloud badge/tag style */
.cloud-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--cloud-gradient-start), var(--cloud-gradient-end));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cloud section divider */
.cloud-divider {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--cloud-gradient-start) 20%, 
        var(--cloud-gradient-end) 80%, 
        transparent
    );
    border-radius: 2px;
    margin: 2rem 0;
}

/* Cloud glow effect */
.cloud-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3),
                0 0 40px rgba(139, 92, 246, 0.2);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .brand-title {
        font-size: 1rem !important;
    }
    
    .cookie-consent {
        height: auto !important;
        max-height: 60vh !important;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        height: auto !important;
        max-height: 70vh !important;
        padding: 1rem !important;
    }
    
    .cookie-consent-text h3 {
        font-size: 14px !important;
    }
    
    .cookie-consent-text p {
        font-size: 12px !important;
    }
}


/* ============================================
   TRUST & VERIFICATION NOTICE
   ============================================ */

.trust-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    
    border-radius: 8px;
    padding: 16px 20px;
    margin: 2rem auto;
    max-width: 800px;
}

.trust-notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-notice-content {
    flex: 1;
}

.trust-notice-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.trust-notice-text strong {
    color: var(--text-primary);
}

.trust-notice-text a,
.trust-notice-subtext a {
    color: #1d9bf0;
    text-decoration: none;
    font-weight: 500;
}

.trust-notice-text a:hover,
.trust-notice-subtext a:hover {
    text-decoration: underline;
}

.trust-notice-subtext {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-tertiary);
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(29, 155, 240, 0.15);
}

.trust-badge-inline {
    vertical-align: middle;
    margin: 0 2px;
}

[data-theme="dark"] .trust-notice {
    background: rgba(29, 155, 240, 0.05);
    border-color: rgba(29, 155, 240, 0.15);
}

@media (max-width: 768px) {
    .trust-notice {
        flex-direction: column;
        gap: 10px;
        margin: 1.5rem 1rem;
        padding: 14px 16px;
    }
    
    .trust-notice-text,
    .trust-notice-subtext {
        font-size: 12px;
    }
}

:root{--color-red:#ffffff;--color-blue:#ffffff;--color-yellow:#ffffff;--color-green:white}.spinner{position:relative;margin:0 auto;width:100px}.spinner:before{content:"";display:block;padding-top:100%}.circular{-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path{stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite;stroke-linecap:round}@-webkit-keyframes rotate{100%{transform:rotate(360deg)}}@keyframes rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@-webkit-keyframes color{0%,100%{stroke:var(--color-red)}40%{stroke:var(--color-blue)}66%{stroke:var(--color-green)}80%,90%{stroke:var(--color-yellow)}}@keyframes color{0%,100%{stroke:var(--color-red)}40%{stroke:var(--color-blue)}66%{stroke:var(--color-green)}80%,90%{stroke:var(--color-yellow)}}