@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ============================================
   EUDHOS DESIGN SYSTEM - Modern Flat UI
   ============================================
   Color Palette:
   - Accent1 (Primary): #5DA8CB / #7DC8EB (bold)
   - Accent2 (Success): #71E1D4
   - Accent3 (Warning): #E2E490
   - Accent4 (Danger):  #DCA26E
   - Background: #171717
   - Text Primary: #eeeeee
   - Text Muted: #777777
   ============================================ */

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Saira/Saira-Regular.ttf');
    src: local('Saira'), local('Saira-Regular'), url('../fonts/Saira/Saira-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Saira';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/Saira/Saira-Italic.ttf');
    src: local('Saira-Italic'), url('../fonts/Saira/Saira-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Saira/Saira-Bold.ttf');
    src: local('Saira-Bold'), url('../fonts/Saira/Saira-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/Saira/Saira-Light.ttf');
    src: local('Saira-Light'), url('../fonts/Saira/Saira-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'ProggyVector';
    font-style: normal;
    font-weight: 300;
    src: local('ProggyVector'), local('ProggyVector-Regular'), url('../fonts/ProggyVector-Regular.ttf') format('truetype');
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-family: 'Saira', sans-serif !important;
    font-style: normal;
    width: 100% !important;
    color: #eeeeee;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Saira', sans-serif !important;
    font-style: normal;
    font-weight: 400;
    width: 100% !important;
    color: #eeeeee;
    padding: 0 !important;
    background-color: #171717 !important;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.3px;
    word-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #eeeeee;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

h1, h2 {
    text-align: center;
}

p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

a, .btn-link {
    color: #71E1C4;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, .btn-link:hover {
    color: #7DC8EB;
    text-decoration: none;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff15, transparent);
    margin: 1.5rem 0;
}

/* Text Sizes */
.textxsmall { font-size: 75%; }
.textsmall { font-size: 85%; }
.textlarge { font-size: 115%; }
.textxlarge { font-size: 135%; }

/* Text Colors */
.foretext { color: #eeeeee; }
.backtext { color: #777777dd; }
.textback { color: #777777dd; }

.textaccent1 { color: #5DA8CB; }
.textaccent2 { color: #71E1D4; }
.textaccent3 { color: #E2E490; }
.textaccent4 { color: #DCA26E; }
.textaccentdebug { color: #5000de; }

.textaccent1_bold { color: #7DC8EB; font-weight: 800; }
.textaccent2_bold { color: #71E1D4; font-weight: 800; }
.textaccent3_bold { color: #E2E490; font-weight: 800; }
.textaccent4_bold { color: #DCA26E; font-weight: 800; }
.textaccentdebug_bold { color: #5000de; font-weight: 800; }

/* Text Styles */
.textupper { 
    text-transform: uppercase; 
}

.textjustify { 
    text-align: justify; 
}

.textlabel {
    font-size: 85%;
    color: #999999;
    font-weight: 700;
}

.textlabelupper {
    font-size: 90%;
    text-transform: uppercase;
    color: #999999;
    font-weight: 700;
}

.textvalue {
    font-size: 85%;
    text-align: start;
}

.texttitle {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

.textsection {
    text-transform: uppercase;
    color: #eeeeeeaa;
    text-align: center;
}

.textsectionstart {
    text-transform: uppercase;
    color: #777777;
    text-align: start;
}

.textsubsection {
    font-size: 90%;
    text-transform: uppercase;
    color: #777777;
}

.textdesc {
    font-size: 95%;
    text-align: justify;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.3;
}

.textminidesc {
    font-size: 85%;
    text-align: justify;
    font-weight: 600;
    line-height: 1.1;
}

.textbutton {
    font-size: 95%;
    text-align: center;
    font-weight: 800;
    letter-spacing: 1.2px;
}

/* ============================================
   BUTTONS
   ============================================ */
button, input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: 'Saira', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #7DC8EB !important;
    background: #5DA8CB20;
    border: 1px solid #5DA8CB50;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 4px;
    max-width: 100%;
    white-space: nowrap;
}

button:hover, input[type=submit]:hover {
    background: #71E1D430;
    border-color: #71E1D460;
    color: #71E1D4 !important;
    transform: translateY(-1px);
}

button:active, input[type=submit]:active {
    transform: translateY(0);
    background: #5DA8CB30;
}

button:focus, input[type=submit]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #5DA8CB40;
}

button:disabled, input[type=submit]:disabled {
    background: #33333350;
    border-color: #44444450;
    color: #666666 !important;
    cursor: not-allowed;
    transform: none;
}

/* Button Variants */
button.btn-primary {
    background: #5DA8CB30;
    border-color: #5DA8CB60;
    color: #7DC8EB !important;
}

button.btn-success, button.sf2t {
    background: #71E1D420;
    border-color: #71E1D450;
    color: #71E1D4 !important;
}

button.btn-success:hover, button.sf2t:hover {
    background: #71E1D435;
    border-color: #71E1D470;
}

button.btn-warning, button.sf3t {
    background: #E2E49020;
    border-color: #E2E49050;
    color: #E2E490 !important;
}

button.btn-warning:hover, button.sf3t:hover {
    background: #E2E49035;
    border-color: #E2E49070;
}

button.btn-danger, button.sf4t {
    background: #DCA26E20;
    border-color: #DCA26E50;
    color: #DCA26E !important;
}

button.btn-danger:hover, button.sf4t:hover {
    background: #DCA26E35;
    border-color: #DCA26E70;
}

button.btn-secondary, button.sflight {
    background: #ffffff10;
    border-color: #ffffff25;
    color: #cccccc !important;
}

button.btn-secondary:hover, button.sflight:hover {
    background: #ffffff20;
    border-color: #ffffff40;
    color: #eeeeee !important;
}

button.sflightstrong {
    background: #ffffff15;
    border-color: #ffffff30;
    color: #eeeeee !important;
}

button.sflightstrong:hover {
    background: #ffffff25;
    border-color: #ffffff45;
}

/* Button Sizes */
button.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

button.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
select, 
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), 
textarea {
    font-family: 'Saira', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    height: auto;
    min-height: 2.75rem;
    background: #22222280;
    border: 1px solid #ffffff15;
    border-radius: 8px;
    color: #eeeeee;
    width: 100%;
    transition: all 0.2s ease;
    text-align: left;
}

select:hover,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):hover,
textarea:hover {
    background: #252525;
    border-color: #ffffff25;
}

select:focus,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):focus,
textarea:focus {
    outline: none;
    background: #1a1a1a;
    border-color: #5DA8CB60;
    box-shadow: 0 0 0 3px #5DA8CB20;
}

select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23777777' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background: #222222;
    color: #eeeeee;
    padding: 0.5rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox & Radio */
input[type=checkbox],
input[type=radio] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    accent-color: #5DA8CB;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background-color: transparent !important;
    color: #dddddd !important;
    padding: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: none;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card {
    background: #1e1e1e;
    border: 1px solid #ffffff10;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #ffffff20;
    background: #222222;
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ffffff10;
}

.card-body {
    padding: 0;
}

.card-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #ffffff10;
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    color: #eeeeee;
    font-size: 0.9rem;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #888888;
    padding: 0.75rem;
    border-bottom: 1px solid #ffffff15;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #ffffff08;
    vertical-align: middle;
}

tr:hover td {
    background: #ffffff05;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #ffffff05;
}

/* ============================================
   BACKGROUNDS
   ============================================ */
.sfdark { background-color: #00000010 !important; }
.sfdarkstrong { background-color: #00000030 !important; }
.sfdarkstrongstrong { background-color: #000000a0 !important; }
.sfblack { background-color: #000000c0 !important; }

.sflight { background-color: #ffffff08 !important; }
.sflightnotsostrong { background-color: #ffffff18 !important; }
.sflightstrong { background-color: #ffffff28 !important; }
.sfcarditem { background-color: #ffffff15 !important; }

.sf1 { background-color: #5DA8CB !important; }
.sf1t { background-color: #5DA8CB50 !important; }
.sf1tt { background-color: #5DA8CB25 !important; }

.sf2 { background-color: #71E1D4 !important; }
.sf2t { background-color: #71E1D450 !important; }
.sf2tt { background-color: #71E1D425 !important; }

.sf3 { background-color: #E2E490 !important; }
.sf3t { background-color: #E2E49050 !important; }
.sf3tt { background-color: #E2E49025 !important; }

.sf4 { background-color: #DCA26E !important; }
.sf4t { background-color: #DCA26E50 !important; }
.sf4tt { background-color: #DCA26E25 !important; }

.sfdebug { background-color: #5000de !important; }
.sfdebugt { background-color: #5000de50 !important; }
.sfdebugtt { background-color: #5000de25 !important; }

.sfpaypal { background-color: #ffc439 !important; color: #111111 !important; }

/* ============================================
   EFFECTS & UTILITIES
   ============================================ */
.blurred { backdrop-filter: blur(10px); }
.blurred-darker { backdrop-filter: brightness(75%) blur(10px); }
.blurred-darker-no1 { backdrop-filter: brightness(90%) blur(10px); }
.blurred-lighter { backdrop-filter: brightness(120%) blur(10px); }
.blurred-morelighter { backdrop-filter: brightness(140%) blur(10px); }

.rounded-more { border-radius: 12px; }
.rounded-more-top { border-radius: 12px 12px 0 0; }
.rounded-more-bottom { border-radius: 0 0 12px 12px; }
.bordered { border-radius: 12px; }

.hoactive {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hoactive:hover {
    background-color: #ffffff10 !important;
}

.hovactive:hover {
    opacity: 0.8;
    cursor: pointer;
}

.cardfunction {
    transition: all 0.2s ease;
}

.cardfunction:hover {
    color: #ffffff;
    background-color: #71E1D420 !important;
}

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */
.centerflex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.centerflexcolumn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.betweenflex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.aroundflex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
}

.evenlyflex {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.5rem;
}

.columncontainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.flex-even { flex: 1; }
.child { flex: 1; }

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
#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 #ffffff10;
}

.navback {
    background-color: #00000090 !important;
    backdrop-filter: blur(10px);
}

.content {
    padding-top: 1rem;
}

.defpage {
    color: #dddddd;
    padding: 1rem;
}

/* ============================================
   SPECIAL COMPONENTS
   ============================================ */
.cookie {
    position: fixed;
    z-index: 100000;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 1.25rem;
    background: #222222f0;
    border: none;
    border-top: 1px solid #ffffff20;
    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: #ffffff30;
    color: #888888 !important;
}

.cookie-actions .cookie-decline:hover {
    background: #ffffff10;
    color: #aaaaaa !important;
}

/* ============================================
   BLAZOR 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 #ffffff15;
    text-align: center;
}

#components-reconnect-modal h5 a {
    color: #5DA8CB !important;
}

.components-reconnect-dialog {
    color: #666666 !important;
    background-color: #000000cc !important;
}

/* Focus States */
h1:focus,
*:focus-visible {
    outline: none;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: #5DA8CB40;
    color: #ffffff;
}

::-moz-selection {
    background: #5DA8CB40;
    color: #ffffff;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    html { font-size: 14px; }
    
    button, input[type=submit] {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .cookie {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

/* ============================================
   WIZARD MOBILE - Hide global navigation
   Only on mobile when wizard bottom bar is visible
   ============================================ */
@media (max-width: 767px) {
    /* When body has wizard class (set via JS) or when wizard-bottom-bar is present */
    body:has(.wizard-bottom-bar) > div > nav.navbar {
        display: none !important;
    }
    
    /* Also hide footer on wizard pages on mobile */
    body:has(.wizard-bottom-bar) footer {
        display: none !important;
    }
}

/* Portrait orientation on larger screens - apply mobile wizard styles */
@media (orientation: portrait) and (min-width: 768px) {
    /* Hide navbar on wizard pages in portrait mode */
    body:has(.wizard-bottom-bar) > div > nav.navbar {
        display: none !important;
    }
    
    /* Hide footer on wizard pages in portrait mode */
    body:has(.wizard-bottom-bar) footer {
        display: none !important;
    }
    
    /* Force Bootstrap navbar to collapse in portrait mode */
    .navbar-expand-md .navbar-collapse {
        display: none !important;
    }
    
    .navbar-expand-md .navbar-toggler {
        display: block !important;
    }
}
