/* ????????????????????????????????????????????????????????????????????????????
   SITE.CSS - WebApp Specific Styles
   ????????????????????????????????????????????????????????????????????????????
   The core design system is in Lib_RazorCommon:
   _content/Lib_RazorCommon/css/eudhos-design-system.css
   
   This file contains only WebApp-specific overrides and additions.
   ???????????????????????????????????????????????????????????????????????????? */

/* Open Iconic from Lib_RazorCommon (shared across all apps) */
@import url('_content/Lib_RazorCommon/css/open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ????????????????????????????????????????????????????????????????????????????
   LAYOUT COMPONENTS (WebApp Specific)
   ???????????????????????????????????????????????????????????????????????????? */
#siteBackground {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

#footer {
    padding: 3rem 1rem;
    background: #0a0a0a;
    line-height: 1.8;
    letter-spacing: 0.5px;
    color: #888888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navback {
    background-color: rgba(0, 0, 0, 0.56) !important;
    backdrop-filter: blur(10px);
}

.content {
    padding-top: 1rem;
}

.defpage {
    color: #dddddd;
    padding: 1rem;
}

/* ????????????????????????????????????????????????????????????????????????????
   COOKIE BANNER (WebApp Specific)
   ???????????????????????????????????????????????????????????????????????????? */
.cookie {
    position: fixed;
    z-index: 100000;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 1.25rem;
    background: rgba(34, 34, 34, 0.94);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #cccccc;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    text-align: center;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-actions button {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.cookie-actions .cookie-decline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #888888 !important;
}

.cookie-actions .cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa !important;
}

/* ????????????????????????????????????????????????????????????????????????????
   BLAZOR SPECIFIC (WebApp Specific)
   ???????????????????????????????????????????????????????????????????????????? */
#blazor-error-ui {
    background: #332200;
    color: #ffcc00;
    bottom: 0;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 2px solid #ffcc00;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    color: #ffcc00;
}

#components-reconnect-modal {
    display: flex !important;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px);
}

#components-reconnect-modal::before {
    content: '';
    width: 320px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#components-reconnect-modal h5 {
    margin: 0 !important;
    padding: 1.5rem;
    width: 320px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    color: #888888;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

#components-reconnect-modal h5 a {
    color: #5DA8CB !important;
}

.components-reconnect-dialog {
    color: #666666 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* ????????????????????????????????????????????????????????????????????????????
   WIZARD MOBILE (WebApp Specific)
   ???????????????????????????????????????????????????????????????????????????? */
@media (max-width: 767px) {
    body:has(.wizard-bottom-bar) > div > nav.navbar {
        display: none !important;
    }
    
    body:has(.wizard-bottom-bar) footer {
        display: none !important;
    }
}

@media (orientation: portrait) and (min-width: 768px) {
    body:has(.wizard-bottom-bar) > div > nav.navbar {
        display: none !important;
    }
    
    body:has(.wizard-bottom-bar) footer {
        display: none !important;
    }
    
    .navbar-expand-md .navbar-collapse {
        display: none !important;
    }
    
    .navbar-expand-md .navbar-toggler {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .cookie {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}
