/* ─── Google Font (за потреби замінити на локальний) ─── */
/*@import url('fonts.css');*/

/* ─── CSS Variables ─── */
:root {
    --ro-deep:       #0a2540;
    --ro-ocean:      #0d6efd;
    --ro-sky:        #4db8ff;
    --ro-foam:       #e8f4fd;
    --ro-glass:      rgba(255,255,255,0.72);
    --ro-shadow:     0 8px 32px rgba(13,110,253,.18);
    --ro-success-bg: #d1fae5;
    --ro-error-bg:   #fee2e2;

    /* Brand Colors */
    --color-brand-primary:      #093983; /* Catalina Blue (основной Akvantis) */
    --color-brand-accent:       #0d6efd; /* Ocean Blue */
    --color-brand-light:        #4db8ff; /* Sky Blue */

    /* Neutral / Surface */
    --color-surface-night:      #0a2540; /* Глубокий синий для хедера/карточек */
    --color-surface-arctic:     #f8fafc; /* Светлый фон (Arctic White) */
    --color-surface-slate:      #1e293b; /* Тёмный текст или акценты */
    --color-surface-foam:       #e8f4fd; /* Очень светлый голубой для выделения */

    /* Utility */
    --color-glass-white:        rgba(255, 255, 255, 0.72);
    --color-border-subtle:      rgba(13, 110, 253, 0.15);
    --color-status-success:     #d1fae5;
    --color-status-error:       #fee2e2;
    --color-text-main:          #334155;
    --color-text-muted:         #64748b;

    /* Shadows & Effects */
    --shadow-premium:           0 8px 32px rgba(9, 57, 131, 0.12);
    --radius-standard:          12px;
}


@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    /*display: flex;*/
    /*flex-direction: column;*/
    margin: 0;
    background:
            radial-gradient(ellipse 80% 60% at 20% 10%, rgba(77,184,255,.22) 0%, transparent 70%),
            radial-gradient(ellipse 70% 80% at 85% 90%, rgba(13,110,253,.18) 0%, transparent 65%),
            linear-gradient(160deg, #e8f4fd 0%, #c8e6f8 35%, #a0cff0 70%, #79b8ea 100%);
    overflow-x: hidden;
}

/* ─── Animated bubbles ─── */
.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(2px);
    animation: rise linear infinite;
}
@keyframes rise {
    0%   { transform: translateY(0) scale(1);      opacity: .7; }
    100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

.product-image {
    margin: 0;
    display: inline-block;
    text-align: right;
}

.product-image img {
    display: block;
}

.product-image figcaption {
    margin-top: -2px;
    font-size: 0.70rem;
    color: #666;
}

/* Language switcher */
.lang-switcher { display: flex; gap: 7px; min-width: 150px; }
.lang-switcher .lang-btn {
    font-size: .78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid rgba(13,110,253,.3);
}

.logout .btn {
    font-size: .80rem;
}

/* ─── CARD ─── */
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--ro-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 24px;
    box-shadow: var(--ro-shadow), inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 2.5rem 2.25rem 2rem;
    animation: cardIn .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--ro-deep);
    letter-spacing: -.3px;
}
.card-subtitle {
    font-size: .85rem;
    color: #5a7fa0;
    margin-bottom: 1.6rem;
}

/* ─── Alerts ─── */
.alert-ro {
    border-radius: 12px;
    font-size: .875rem;
    border: none;
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: .75rem 1rem;
    animation: fadeSlide .3s ease both;
}
.alert-ro.show { display: flex; }
@keyframes fadeSlide {
    from { opacity:0; transform: translateY(-6px); }
    to   { opacity:1; transform: none; }
}
.alert-success-ro { background: var(--ro-success-bg); color: #065f46; }
.alert-error-ro   { background: var(--ro-error-bg);   color: #991b1b; }
.alert-ro .alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-ro .alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: .6;
    color: inherit;
    padding: 0;
    line-height: 1;
}
.alert-ro .alert-close:hover { opacity: 1; }

/* ─── Form ─── */
.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #3a5a78;
    margin-bottom: 5px;
    letter-spacing: .2px;
}
.input-group-text {
    background: rgba(13,110,253,.07);
    border: 1.5px solid rgba(13,110,253,.2);
    border-right: none;
    color: var(--ro-ocean);
    font-size: .95rem;
}
.form-control {
    border: 1.5px solid rgba(13,110,253,.2);
    background: rgba(255,255,255,0.65);
    font-family: 'Inter', sans-serif;
    color: var(--ro-deep);
    transition: border-color .2s, box-shadow .2s;
}
.input-group > .input-group-text { border-radius: 10px 0 0 10px; }
.form-control:focus {
    border-color: var(--ro-ocean);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    outline: none;
}
.form-control::placeholder { color: #a0b8cc; }

/* Password toggle */
.pw-group { position: relative; }
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7ca0be;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    z-index: 5;
    transition: color .2s;
}
.pw-toggle:hover { color: var(--ro-ocean); }

/* Checkbox */
.form-check-input {
    border: 1.5px solid rgba(13,110,253,.3);
    border-radius: 5px;
    cursor: pointer;
}
.form-check-input:checked { background-color: var(--ro-ocean); border-color: var(--ro-ocean); }
.form-check-label { font-size: .88rem; color: #4a6a88; cursor: pointer; }

/* Submit button */
.btn-ro {
    background: linear-gradient(135deg, #4db8ff 0%, #0d6efd 60%, #0a58ca 100%);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .5px;
    border-radius: 12px;
    padding: .7rem 1rem;
    width: 100%;
    transition: transform .15s, box-shadow .2s, filter .2s;
    box-shadow: 0 5px 18px rgba(13,110,253,.4);
}
.btn-ro:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,110,253,.5); filter: brightness(1.06); color: #fff; }
.btn-ro:active { transform: translateY(0); }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0 0;
}
.divider-line { flex:1; height: 1px; background: rgba(13,110,253,.15); }
.divider-drop { font-size: 1rem; color: rgba(13,110,253,.35); }

footer {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.55);
    padding: .7rem 1.5rem;
    gap: 1.5rem;
    font-size: .78rem;
    color: #5a7fa0;
}

.version-badge {
    background: rgba(13,110,253,.1);
    color: var(--ro-ocean);
    padding: 4px 8px;
    border-radius: 20px;
    font-family: 'Inter', monospace;
    font-size: .72rem;
    font-weight: 600;
}

main/* > .container-fluid*/ {
    padding: 60px 15px 0;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: #0000001a;
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    box-shadow: inset 0 0.5em 1.5em #0000001a,
    inset 0 0.125em 0.5em #00000026;
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.table-wrapper{
    max-height: 400px;
    overflow-y: auto;
}

.table-wrapper thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.table-wrapper tfoot th {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 2;
}
