/* ????????????????????????????????????????????????????????????????????????????
   EUDHOS DESIGN SYSTEM - Shared UI Styles
   ????????????????????????????????????????????????????????????????????????????
   This is the authoritative source for the Eudhos UI design system.
   Include this in all Eudhos apps via:
   <link href="_content/Lib_RazorCommon/css/eudhos-design-system.css" rel="stylesheet" />
   
   Color Palette:
   - Accent1 (Primary): #5DA8CB / #7DC8EB (bold)
   - Accent2 (Success): #71E1D4
   - Accent3 (Warning): #E2E490
   - Accent4 (Danger):  #DCA26E
   - Background: #171717
   - Text Primary: #eeeeee
   - Text Muted: #777777
   ???????????????????????????????????????????????????????????????????????????? */

/* ????????????????????????????????????????????????????????????????????????????
   CSS VARIABLES (Design Tokens)
   ???????????????????????????????????????????????????????????????????????????? */
:root {
    /* Accent Colors */
    --eudhos-accent1: #5DA8CB;
    --eudhos-accent1-bold: #7DC8EB;
    --eudhos-accent2: #71E1D4;
    --eudhos-accent3: #E2E490;
    --eudhos-accent4: #DCA26E;
    
    /* Background Colors */
    --eudhos-bg: #171717;
    --eudhos-bg-dark: #0a0a0a;
    --eudhos-bg-card: #1e1e1e;
    --eudhos-bg-overlay-light: rgba(255, 255, 255, 0.08);
    --eudhos-bg-overlay-dark: rgba(0, 0, 0, 0.3);
    
    /* Text Colors */
    --eudhos-text-primary: #eeeeee;
    --eudhos-text-secondary: #dddddd;
    --eudhos-text-muted: #777777;
    --eudhos-text-dim: #555555;
    
    /* Border Colors */
    --eudhos-border-light: rgba(255, 255, 255, 0.1);
    --eudhos-border-lighter: rgba(255, 255, 255, 0.06);
    
    /* Spacing */
    --eudhos-radius-sm: 6px;
    --eudhos-radius-md: 8px;
    --eudhos-radius-lg: 12px;
    --eudhos-radius-xl: 16px;
    
    /* Transitions */
    --eudhos-transition: 0.2s ease;
}

/* ????????????????????????????????????????????????????????????????????????????
   FONTS
   ???????????????????????????????????????????????????????????????????????????? */
@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 400;
    src: 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') format('truetype');
}

@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 600;
    src: 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') format('truetype');
}

@font-face {
    font-family: 'ProggyVector';
    font-style: normal;
    font-weight: 300;
    src: 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: var(--eudhos-text-primary);
    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: var(--eudhos-text-primary);
    padding: 0 !important;
    background-color: var(--eudhos-bg) !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: var(--eudhos-text-primary);
}

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: var(--eudhos-accent2);
    text-decoration: none;
    transition: color var(--eudhos-transition);
}

a:hover, .btn-link:hover {
    color: var(--eudhos-accent1-bold);
    text-decoration: none;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), 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: var(--eudhos-text-primary); }
.backtext, .textback { color: var(--eudhos-text-muted); }

.textaccent1 { color: var(--eudhos-accent1); }
.textaccent2 { color: var(--eudhos-accent2); }
.textaccent3 { color: var(--eudhos-accent3); }
.textaccent4 { color: var(--eudhos-accent4); }

.textaccent1_bold { color: var(--eudhos-accent1-bold); font-weight: 800; }
.textaccent2_bold { color: var(--eudhos-accent2); font-weight: 800; }
.textaccent3_bold { color: var(--eudhos-accent3); font-weight: 800; }
.textaccent4_bold { color: var(--eudhos-accent4); 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: rgba(238,238,238,0.67);
    text-align: center;
}

.textsectionstart {
    text-transform: uppercase;
    color: var(--eudhos-text-muted);
    text-align: start;
}

.textsubsection {
    font-size: 90%;
    text-transform: uppercase;
    color: var(--eudhos-text-muted);
}

.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: var(--eudhos-accent1-bold) !important;
    background: rgba(93, 168, 203, 0.2);
    border: 1px solid rgba(93, 168, 203, 0.5);
    border-radius: var(--eudhos-radius-md);
    cursor: pointer;
    transition: all var(--eudhos-transition);
    margin: 4px;
    max-width: 100%;
    white-space: nowrap;
}

button:hover, input[type=submit]:hover {
    background: rgba(113, 225, 212, 0.3);
    border-color: rgba(113, 225, 212, 0.6);
    color: var(--eudhos-accent2) !important;
    transform: translateY(-1px);
}

button:active, input[type=submit]:active {
    transform: translateY(0);
    background: rgba(93, 168, 203, 0.3);
}

button:focus, input[type=submit]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 168, 203, 0.4);
}

button:disabled, input[type=submit]:disabled {
    background: rgba(51, 51, 51, 0.5);
    border-color: rgba(68, 68, 68, 0.5);
    color: #666666 !important;
    cursor: not-allowed;
    transform: none;
}

/* Button Variants */
button.btn-primary, button.sf1t {
    background: rgba(93, 168, 203, 0.3);
    border-color: rgba(93, 168, 203, 0.6);
    color: var(--eudhos-accent1-bold) !important;
}

button.btn-success, button.sf2t {
    background: rgba(113, 225, 212, 0.2);
    border-color: rgba(113, 225, 212, 0.5);
    color: var(--eudhos-accent2) !important;
}

button.btn-success:hover, button.sf2t:hover {
    background: rgba(113, 225, 212, 0.35);
    border-color: rgba(113, 225, 212, 0.7);
}

button.btn-warning, button.sf3t {
    background: rgba(226, 228, 144, 0.2);
    border-color: rgba(226, 228, 144, 0.5);
    color: var(--eudhos-accent3) !important;
}

button.btn-warning:hover, button.sf3t:hover {
    background: rgba(226, 228, 144, 0.35);
    border-color: rgba(226, 228, 144, 0.7);
}

button.btn-danger, button.sf4t {
    background: rgba(220, 162, 110, 0.2);
    border-color: rgba(220, 162, 110, 0.5);
    color: var(--eudhos-accent4) !important;
}

button.btn-danger:hover, button.sf4t:hover {
    background: rgba(220, 162, 110, 0.35);
    border-color: rgba(220, 162, 110, 0.7);
}

button.btn-secondary, button.sflight {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #cccccc !important;
}

button.btn-secondary:hover, button.sflight:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--eudhos-text-primary) !important;
}

button.sflightstrong {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--eudhos-text-primary) !important;
}

button.sflightstrong:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Button Sizes */
button.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: var(--eudhos-radius-sm);
}

button.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--eudhos-radius-lg);
}

/* ????????????????????????????????????????????????????????????????????????????
   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: rgba(34, 34, 34, 0.5);
    border: 1px solid var(--eudhos-border-light);
    border-radius: var(--eudhos-radius-md);
    color: var(--eudhos-text-primary);
    width: 100%;
    transition: all var(--eudhos-transition);
    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: rgba(255, 255, 255, 0.25);
}

select:focus,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):focus,
textarea:focus {
    outline: none;
    background: #1a1a1a;
    border-color: rgba(93, 168, 203, 0.6);
    box-shadow: 0 0 0 3px rgba(93, 168, 203, 0.2);
}

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: var(--eudhos-text-primary);
    padding: 0.5rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input[type=checkbox],
input[type=radio] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    accent-color: var(--eudhos-accent1);
    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: var(--eudhos-text-secondary) !important;
    padding: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: none;
}

/* ????????????????????????????????????????????????????????????????????????????
   CARDS & CONTAINERS
   ???????????????????????????????????????????????????????????????????????????? */
.card {
    background: var(--eudhos-bg-card);
    border: 1px solid var(--eudhos-border-light);
    border-radius: var(--eudhos-radius-lg);
    padding: 1.25rem;
    transition: all var(--eudhos-transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #222222;
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--eudhos-border-light);
}

.card-body { padding: 0; }

.card-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--eudhos-border-light);
}

/* ????????????????????????????????????????????????????????????????????????????
   TABLES
   ???????????????????????????????????????????????????????????????????????????? */
table {
    width: 100%;
    color: var(--eudhos-text-primary);
    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 rgba(255, 255, 255, 0.15);
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ????????????????????????????????????????????????????????????????????????????
   BACKGROUNDS
   ???????????????????????????????????????????????????????????????????????????? */
.sfdark { background-color: rgba(0, 0, 0, 0.1) !important; }
.sfdarkstrong { background-color: rgba(0, 0, 0, 0.3) !important; }
.sfdarkstrongstrong { background-color: rgba(0, 0, 0, 0.63) !important; }
.sfblack { background-color: rgba(0, 0, 0, 0.75) !important; }

.sflight { background-color: rgba(255, 255, 255, 0.08) !important; }
.sflightnotsostrong { background-color: rgba(255, 255, 255, 0.15) !important; }
.sflightstrong { background-color: rgba(255, 255, 255, 0.25) !important; }
.sfcarditem { background-color: rgba(255, 255, 255, 0.15) !important; }

.sf1 { background-color: var(--eudhos-accent1) !important; }
.sf1t { background-color: rgba(93, 168, 203, 0.5) !important; }
.sf1tt { background-color: rgba(93, 168, 203, 0.25) !important; }

.sf2 { background-color: var(--eudhos-accent2) !important; }
.sf2t { background-color: rgba(113, 225, 212, 0.5) !important; }
.sf2tt { background-color: rgba(113, 225, 212, 0.25) !important; }

.sf3 { background-color: var(--eudhos-accent3) !important; }
.sf3t { background-color: rgba(226, 228, 144, 0.5) !important; }
.sf3tt { background-color: rgba(226, 228, 144, 0.25) !important; }

.sf4 { background-color: var(--eudhos-accent4) !important; }
.sf4t { background-color: rgba(220, 162, 110, 0.5) !important; }
.sf4tt { background-color: rgba(220, 162, 110, 0.25) !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: var(--eudhos-radius-lg); }
.rounded-more-top { border-radius: var(--eudhos-radius-lg) var(--eudhos-radius-lg) 0 0; }
.rounded-more-bottom { border-radius: 0 0 var(--eudhos-radius-lg) var(--eudhos-radius-lg); }
.bordered { border-radius: var(--eudhos-radius-lg); }

.hoactive {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hoactive:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.hovactive:hover {
    opacity: 0.8;
    cursor: pointer;
}

.cardfunction {
    transition: all var(--eudhos-transition);
}

.cardfunction:hover {
    color: #ffffff;
    background-color: rgba(113, 225, 212, 0.2) !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; }

/* ????????????????????????????????????????????????????????????????????????????
   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: rgba(93, 168, 203, 0.4);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(93, 168, 203, 0.4);
    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;
    }
}

/* ????????????????????????????????????????????????????????????????????????????
   FOCUS STATES
   ???????????????????????????????????????????????????????????????????????????? */
h1:focus,
*:focus-visible {
    outline: none;
}
