:root {
    --glass-bg: rgba(20, 28, 45, 0.56);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --text-main: #f8fafc;
    --text-muted: rgba(226, 232, 240, 0.72);
    --accent: #61dafb;
    --accent-two: #8b5cf6;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.app-background {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(1,4,10,.985),
            rgba(4,8,18,.93)
        ),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31")
        center center / cover fixed;
}

.app-background::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            120deg,
            rgba(14, 165, 233, 0.18),
            rgba(124, 58, 237, 0.18),
            rgba(15, 23, 42, 0.72)
        );
    animation: backgroundShift 18s ease-in-out infinite alternate;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(
            circle at top left,
            rgba(56, 189, 248, 0.18),
            transparent 38%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(168, 85, 247, 0.2),
            transparent 42%
        ),
        rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(2px);
}

.background-glow {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(140px);
    opacity:.65;
    animation: floatGlow 13s ease-in-out infinite alternate;
}

.glow-one {
    width: 360px;
    height: 360px;
    top: -120px;
    left: -100px;
    background: rgba(14, 165, 233, 0.7);
}

.glow-two {
    width: 420px;
    height: 420px;
    right: -160px;
    bottom: -140px;
    background: rgba(124, 58, 237, 0.65);
    animation-delay: -4s;
}

.glow-three {
    width: 250px;
    height: 250px;
    top: 42%;
    left: 54%;
    background: rgba(6, 182, 212, 0.38);
    animation-delay: -8s;
}

.glass-card {
background:rgba(255,255,255,.10);
border:1px solid rgba(255,255,255,.18);
backdrop-filter:blur(24px) saturate(180%);
-webkit-backdrop-filter:blur(24px) saturate(180%);
box-shadow:0 10px 40px rgba(0,0,0,.35);
border-radius:22px;
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, calc(100vw - 32px));
    padding: 34px;
    animation: loginAppear 0.65s ease;
}

.brand-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    background:
        linear-gradient(
            135deg,
            rgba(56, 189, 248, 0.95),
            rgba(124, 58, 237, 0.95)
        );
    box-shadow:
        0 14px 35px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.login-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight:700;
}

.login-subtitle {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.form-label {
    color: rgba(241, 245, 249, 0.9);
    font-weight: 600;
    font-size: 0.91rem;
}

.glass-input {
    height: 48px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.52);
    border-radius: 13px;
}

.glass-input::placeholder {
    color: rgba(203, 213, 225, 0.45);
}

.glass-input:focus {
    color: white;
    border-color: rgba(56, 189, 248, 0.8);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 0.22rem rgba(56, 189, 248, 0.14);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .glass-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: white;
    opacity: 0.7;
}

.login-button {
    height: 48px;
    color: white;
    border: 0;
    border-radius: 13px;
    font-weight: 700;
    background:
        linear-gradient(
            135deg,
            #0ea5e9,
            #7c3aed
        );
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22);
}

.login-button:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.3);
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.page-wrapper {
    width:min(1700px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content:flex-start;
    gap: 20px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.page-title {
    margin: 0;
    font-size:1.05rem;
    font-weight:700;
}

.page-subtitle {
    margin:2px 0 0;
    color:rgba(255,255,255,.55);font-size:.82rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    min-height:30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding:0 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius:9px;
    background: rgba(15, 23, 42, 0.38);
}

.logout-button {
    min-width:68px;
    height:30px;
    border-radius:9px;
    font-weight:600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    min-height: 104px;
    padding: 14px 18px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    margin-top: 12px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.status-online {
    color: #4ade80;
}

.stat-description {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.content-card {
    padding: 14px 18px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.content-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.content-header p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.glass-button,
.download-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(30, 41, 59, 0.58);
    border-radius: 11px;
}

.glass-button:hover,
.download-button:hover {
    color: white;
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(14, 165, 233, 0.22);
}

.glass-table-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.glass-table {
    margin: 0;
    color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.glass-table thead th {
    padding: 14px 16px;
    color: rgba(226, 232, 240, 0.72);
    background: rgba(8,12,20,.28);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.glass-table tbody td {
    padding: 13px 16px;
    background: rgba(15, 23, 42, 0.2);
}

.glass-table tbody tr:hover td {
    background: rgba(56, 189, 248, 0.07);
}

.package-name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
}

.path-code {
    color: #a5f3fc;
    background: rgba(2, 6, 23, 0.4);
    padding: 5px 8px;
    border-radius: 8px;
}

.empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.3rem;
}

@keyframes backgroundShift {
    from {
        filter: hue-rotate(0deg);
        transform: scale(1);
    }

    to {
        filter: hue-rotate(24deg);
        transform: scale(1.04);
    }
}

@keyframes floatGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(40px, -32px, 0) scale(1.12);
    }
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        width: min(100% - 20px, 1450px);
        padding-top: 10px;
    }

    .topbar,
    .content-header {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .login-card {
        padding: 26px 22px;
    }

    .content-card {
        padding: 14px;
    }
}


/* =========================================================
   Repository accordion
   ========================================================= */

.repository-tree {
    display: grid;
    gap: 16px;
}

.repository-level {
    background: rgba(10, 20, 38, 0.38) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.repository-level .accordion-button {
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    box-shadow: none;
    gap: 10px;
}

.repository-level .accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.16);
    color: #ffffff;
}

.repository-level .accordion-button::after {
    filter: invert(1);
}

.repository-level .accordion-body {
    background: rgba(0, 0, 0, 0.08);
}

.version-accordion {
    display: grid;
    gap: 12px;
}

.tree-icon {
    display: inline-flex;
    width: 26px;
    justify-content: center;
}

.tree-title {
    font-weight: 700;
}

.tree-count {
    margin-left: auto;
    margin-right: 14px;
    opacity: 0.65;
    font-size: 0.88rem;
}

.architecture-card {
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.architecture-header {
    width: 100%;
    border: 0;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.architecture-header:hover {
    background: rgba(255, 255, 255, 0.075);
}

.architecture-summary {
    opacity: 0.65;
    font-size: 0.85rem;
}

.architecture-content {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.package-section {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.09);
}

.package-section h4 {
    margin: 0 0 13px;
    font-size: 1rem;
}

.section-empty {
    padding: 14px;
    opacity: 0.6;
    text-align: center;
}


/* =========================================================
   User management
   ========================================================= */

.user-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.create-user-action {
    display: flex;
    align-items: end;
}

.glass-input {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

.glass-input:focus {
    border-color: rgba(96, 165, 250, 0.8) !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.user-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.user-actions form {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-enabled {
    background: rgba(34, 197, 94, 0.17);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.status-disabled {
    background: rgba(239, 68, 68, 0.17);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.glass-alert {
    backdrop-filter: blur(12px);
    margin-bottom: 18px;
}

.glass-modal {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
}

.glass-modal .modal-header,
.glass-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1050px) {
    .user-create-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .user-create-grid {
        grid-template-columns: 1fr;
    }

    .architecture-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .tree-count {
        display: none;
    }
}

.daily-background {
    position: fixed;
    inset: 0;
    z-index: -5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.03);
    transition: background-image 1.2s ease-in-out;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(
            120deg,
            rgba(5, 15, 32, 0.65),
            rgba(35, 25, 70, 0.58)
        ),
        rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
}

.repository-accordion,
.repository-accordion .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-color: #ffffff;
    --bs-accordion-btn-color: #ffffff;
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.055);
    --bs-accordion-active-color: #ffffff;
    --bs-accordion-active-bg: rgba(80, 120, 220, 0.18);
    --bs-accordion-border-color: rgba(255, 255, 255, 0.12);
}

.glass-accordion-item {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    background: rgba(10, 20, 40, 0.28) !important;
}

.glass-accordion-item .accordion-button {
    color: #ffffff;
    box-shadow: none;
}

.glass-accordion-item .accordion-button::after {
    filter: invert(1);
}

.glass-accordion-item .accordion-body {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.07);
}

.nested-accordion {
    margin-left: 8px;
    margin-right: 8px;
}

.package-section {
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.10);
}

.package-section:last-child {
    margin-bottom: 0;
}

.package-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #ffffff;
    font-size: 1rem;
}

.package-section-count {
    display: inline-flex;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.78rem;
}

.section-empty {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

.form-control {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.form-control:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(120, 170, 255, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(60, 120, 220, 0.16);
}

@media (max-width: 800px) {
    .nested-accordion {
        margin-left: 0;
        margin-right: 0;
    }

    .topbar-actions {
        flex-wrap: wrap;
    }
}

/* Denné meniace sa pozadie */
.background-image-layer {
    position: fixed;
    inset: 0;
    z-index: -5;
    background-image: var(--repository-background);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.03);
}

.background-image-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(8, 16, 34, 0.42),
            rgba(40, 22, 65, 0.36)
        );
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -4;
    background: rgba(5, 10, 24, 0.25);
    backdrop-filter: blur(2px);
}

.glass-table td{
    padding:.45rem .65rem;
    font-size:.83rem;
}

.glass-table th{
    padding:.55rem .65rem;
    font-size:.82rem;
}

.repository-counter{
    font-size:.78rem;
    opacity:.75;
}

.package-category{
    margin-bottom:14px;
}

.package-category-title{
    font-size:1rem;
    margin-bottom:8px;
}

.content-card{
    padding:18px;
}

.accordion-button{
    padding:.7rem .95rem;
}

.repository-accordion-item{
    margin-bottom:8px;
}

.stat-value{
    font-size:1.55rem;
    font-weight:700;
}

.stat-description{
    font-size:.82rem;
}

.glass-button{
    height:30px;
    padding:0 12px;
    font-size:.82rem;
    border-radius:9px;
}

.topbar>div:first-child{
    margin-right:auto;
}

.topbar-actions{
    gap:8px;
}

.topbar-actions a.glass-button{
    margin-right:20px;
    border-right:1px solid rgba(255,255,255,.15);
    padding-right:20px;
}


/* ===== UNSPLASH DAILY BACKGROUND ===== */

body.app-background {
    background-repeat: no-repeat !important;
    background-color: #030712 !important;
}

.background-image-layer {
    display: none !important;
}

.background-overlay {
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(14, 165, 233, 0.13),
            transparent 38%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(139, 92, 246, 0.17),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.25),
            rgba(9, 5, 24, 0.20)
        ) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* ===== FINAL DAILY PHOTO BACKGROUND ===== */

html,
body,
body.app-background {
    min-height: 100%;
    background: #05070c !important;
}

body.app-background {
    position: relative;
    background-image: none !important;
    background-color: #05070c !important;
}

.background-image-layer {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -5 !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;

    filter: none !important;
    opacity: 1 !important;
}

body.app-background::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

.background-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: -4 !important;
    pointer-events: none !important;

    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 15, 0.28),
            rgba(9, 5, 24, 0.34)
        ) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.background-glow {
    display: none !important;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

.glass-table{
    background:transparent!important;
}

.glass-table th{
    background:rgba(255,255,255,.08)!important;
    color:white!important;
    border:none!important;
}

.glass-table td{
    background:rgba(255,255,255,.03)!important;
    color:white!important;
    border-color:rgba(255,255,255,.08)!important;
}

.topbar{
    background:rgba(255,255,255,.08)!important;
    backdrop-filter:blur(30px)!important;
}

.user-badge{
    background:rgba(255,255,255,.08)!important;
}

.glass-button{
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.18)!important;
    color:white!important;
}

.logout-button{
    background:rgba(255,80,80,.18)!important;
    border:1px solid rgba(255,80,80,.30)!important;
}

.stat-card{
    background:rgba(255,255,255,.08)!important;
    backdrop-filter:blur(24px)!important;
}

.content-card{
    background:rgba(255,255,255,.08)!important;
}

.accordion-button{
    background:rgba(255,255,255,.07)!important;
    color:white!important;
}

.accordion-button:not(.collapsed){
    background:rgba(255,255,255,.12)!important;
}

.repository-accordion-item{
    background:transparent!important;
    border:none!important;
}


/* ===== ONE CLEAN PHOTO BACKGROUND ===== */

html,
body,
body.app-background {
    min-height: 100% !important;
    background-color: #080a0f !important;
    background-image: none !important;
}

body.app-background {
    position: relative !important;
    background: #080a0f !important;
}

.background-image-layer {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;

    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;

    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.background-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;

    background: rgba(4, 6, 12, 0.30) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.background-glow,
body.app-background::before,
body.app-background::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.page-wrapper {
    position: relative !important;
    z-index: 2 !important;
    min-height: 100vh !important;
    background: transparent !important;
}

/* ===== Strong Glass Override ===== */

.glass-card,
.stat-card,
.content-card,
.topbar {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.18) !important;

    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;

    box-shadow:
        0 10px 40px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.15) !important;
}

/* Accordion */
.accordion-button,
.accordion-button:not(.collapsed){
    background: rgba(255,255,255,.05) !important;
    backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}

/* Tabuľka */
.table thead th{
    background: rgba(255,255,255,.06) !important;
}

.table tbody td{
    background: rgba(255,255,255,.02) !important;
}

.table tbody tr:hover td{
    background: rgba(255,255,255,.07) !important;
}

/* Tlačidlá */
.btn-secondary,
.glass-button{
    background: rgba(255,255,255,.08) !important;
    backdrop-filter: blur(20px) !important;
}


/* Ultra Glass */

.glass-card,
.stat-card,
.content-card,
.topbar{
    background:rgba(255,255,255,.025)!important;
    border:1px solid rgba(255,255,255,.16)!important;

    backdrop-filter:blur(42px) saturate(190%)!important;
    -webkit-backdrop-filter:blur(42px) saturate(190%)!important;

    box-shadow:
        0 10px 45px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.10)!important;
}

.accordion-button,
.accordion-button:not(.collapsed){
    background:rgba(255,255,255,.02)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    backdrop-filter:blur(48px)!important;
}

.table thead th{
    background:rgba(255,255,255,.025)!important;
}

.table tbody td{
    background:rgba(255,255,255,.01)!important;
}

.table tbody tr:hover td{
    background:rgba(255,255,255,.04)!important;
}

.btn-secondary,
.glass-button,
.user-badge{
    background:rgba(255,255,255,.03)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    backdrop-filter:blur(30px)!important;
}


/* ===== LIQUID GLASS FINAL OVERRIDE ===== */

.glass-card,
.stat-card,
.content-card,
.topbar {
    position: relative;
    overflow: hidden;

    background: rgba(255,255,255,.014) !important;
    border: 1px solid rgba(255,255,255,.10) !important;

    backdrop-filter: blur(72px) saturate(185%) contrast(105%) !important;
    -webkit-backdrop-filter: blur(72px) saturate(185%) contrast(105%) !important;

    box-shadow:
        0 18px 55px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.12),
        inset 0 -1px 0 rgba(255,255,255,.025) !important;
}

/* Jemný odlesk na hornej hrane */
.glass-card::before,
.stat-card::before,
.content-card::before,
.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.08) 0%,
            rgba(255,255,255,.015) 22%,
            transparent 48%
        ) !important;

    opacity: .65;
}

/* Obsah musí zostať nad odleskom */
.glass-card > *,
.stat-card > *,
.content-card > *,
.topbar > * {
    position: relative;
    z-index: 1;
}

/* Vnútorné riadky accordionu */
.accordion-button,
.accordion-button.collapsed,
.accordion-button:not(.collapsed) {
    background: rgba(255,255,255,.012) !important;
    border: 1px solid rgba(255,255,255,.075) !important;

    backdrop-filter: blur(60px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(60px) saturate(170%) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 6px 18px rgba(0,0,0,.10) !important;
}

.accordion-button:hover {
    background: rgba(255,255,255,.035) !important;
}

/* Hlavička tabuľky */
.table thead th {
    background: rgba(255,255,255,.018) !important;
    border-color: rgba(255,255,255,.07) !important;
}

/* Riadky tabuľky */
.table tbody td {
    background: rgba(255,255,255,.004) !important;
    border-color: rgba(255,255,255,.055) !important;
}

.table tbody tr:hover td {
    background: rgba(255,255,255,.025) !important;
}

/* Glass tlačidlá */
.btn-secondary,
.glass-button,
.user-badge {
    background: rgba(255,255,255,.018) !important;
    border: 1px solid rgba(255,255,255,.10) !important;

    backdrop-filter: blur(48px) saturate(175%) !important;
    -webkit-backdrop-filter: blur(48px) saturate(175%) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 18px rgba(0,0,0,.14) !important;
}

.btn-secondary:hover,
.glass-button:hover {
    background: rgba(255,255,255,.055) !important;
}

/* Jemne viditeľnejší okraj pri hoveri */
.glass-card:hover,
.stat-card:hover,
.content-card:hover {
    border-color: rgba(255,255,255,.16) !important;
    box-shadow:
        0 22px 65px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}


/* ===== TRUE TRANSPARENT GLASS ===== */

/* Hlavné dlaždice – bez farebnej výplne */
.glass-card,
.stat-card,
.content-card,
.repository-card,
.files-card,
.topbar,
.card,
.card-body,
.card-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,.16) !important;

    backdrop-filter: blur(16px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(115%) !important;

    box-shadow:
        0 12px 32px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.10) !important;
}

/* Odstráni staré biele a modré odlesky */
.glass-card::before,
.glass-card::after,
.stat-card::before,
.stat-card::after,
.content-card::before,
.content-card::after,
.repository-card::before,
.repository-card::after,
.files-card::before,
.files-card::after,
.topbar::before,
.topbar::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

/* Accordion */
.accordion,
.accordion-item,
.repository-accordion-item,
.accordion-collapse,
.accordion-body {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.accordion-button,
.accordion-button.collapsed,
.accordion-button:not(.collapsed) {
    background: rgba(0,0,0,.025) !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,.10) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    box-shadow: none !important;
}

/* Tabuľka */
.table,
.table-responsive,
.table > :not(caption) > * > *,
.glass-table,
.glass-table th,
.glass-table td {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.table thead th {
    background: rgba(0,0,0,.035) !important;
}

.table tbody tr:hover td {
    background: rgba(255,255,255,.035) !important;
}

/* Malé tlačidlá a používateľ */
.glass-button,
.btn-secondary,
.btn-outline-light,
.user-badge {
    background: rgba(0,0,0,.035) !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,.14) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Bootstrap premenné */
.card {
    --bs-card-bg: transparent !important;
    --bs-card-cap-bg: transparent !important;
}

.accordion {
    --bs-accordion-bg: transparent !important;
    --bs-accordion-btn-bg: transparent !important;
    --bs-accordion-active-bg: transparent !important;
}


/* ===== LOGIN LIQUID GLASS ===== */

.login-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
}

.login-card{
    width:100%;
    max-width:460px;

    background:rgba(255,255,255,.010)!important;
    border:1px solid rgba(255,255,255,.12)!important;

    backdrop-filter:blur(28px) saturate(180%)!important;
    -webkit-backdrop-filter:blur(28px) saturate(180%)!important;

    box-shadow:
        0 30px 70px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.10)!important;

    border-radius:28px!important;

    padding:42px!important;
}

.login-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.10),
            rgba(255,255,255,.015) 30%,
            transparent 60%
        );

    opacity:.7;
}

.brand-icon{
    width:86px;
    height:86px;
    margin:0 auto 22px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.15);

    backdrop-filter:blur(18px);
}

.brand-icon span{
    font-size:34px;
    font-weight:700;
}

.login-title{
    font-size:34px;
    font-weight:700;
}

.login-subtitle{
    opacity:.82;
    font-size:15px;
}

.glass-input{
    background:rgba(255,255,255,.025)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    color:#fff!important;

    backdrop-filter:blur(18px)!important;
}

.glass-input::placeholder{
    color:rgba(255,255,255,.55)!important;
}

.glass-input:focus{
    background:rgba(255,255,255,.04)!important;
    border-color:rgba(255,255,255,.22)!important;

    box-shadow:
        0 0 0 .18rem rgba(255,255,255,.05)!important;
}

.login-button{
    height:54px;

    border-radius:16px;

    background:rgba(255,255,255,.06)!important;
    border:1px solid rgba(255,255,255,.14)!important;

    backdrop-filter:blur(20px)!important;

    color:#fff!important;

    font-weight:600;
}

.login-button:hover{
    background:rgba(255,255,255,.10)!important;
    transform:translateY(-1px);
}

.login-footer{
    opacity:.72;
    font-size:13px;
    margin-top:26px;
}



/* ===== COMPACT GLASS LOGIN FINAL ===== */

body.login-page {
    position: relative !important;
    min-height: 100vh !important;
    margin: 0 !important;
    overflow: hidden !important;

    background: #060811 !important;
    background-image: none !important;
}

/* Fotografia musí byť nad základným pozadím body */
body.login-page .background-image-layer {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 0 !important;

    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;

    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* Iba jemné stmavenie fotografie */
body.login-page .background-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;

    z-index: 1 !important;
    pointer-events: none !important;

    background: rgba(2, 4, 10, 0.25) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Staré farebné žiary vypnúť */
body.login-page .background-glow {
    display: none !important;
}

/* Centrovanie loginu */
body.login-page .login-wrapper {
    position: relative !important;
    z-index: 2 !important;

    min-height: 100vh !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 16px !important;

    background: transparent !important;
}

/* Výrazne menšia login karta */
body.login-page .login-card {
    position: relative !important;
    overflow: hidden !important;

    width: 100% !important;
    max-width: 340px !important;

    margin: 0 !important;
    padding: 24px 24px 20px !important;

    border-radius: 20px !important;

    background: rgba(8, 11, 20, 0.08) !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,0.16) !important;

    backdrop-filter: blur(18px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%) !important;

    box-shadow:
        0 18px 55px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

/* Odstráni veľký mliečny odlesk */
body.login-page .login-card::before,
body.login-page .login-card::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Menšie logo */
body.login-page .brand-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 56px !important;
    height: 56px !important;

    margin: 0 auto 14px !important;

    border-radius: 50% !important;

    background: rgba(255,255,255,0.035) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.09),
        0 8px 25px rgba(0,0,0,0.18) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body.login-page .brand-icon span {
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Menší nadpis */
body.login-page .login-title {
    margin: 0 0 4px !important;

    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

body.login-page .login-subtitle {
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.35 !important;

    color: rgba(255,255,255,0.62) !important;
}

/* Menší odstup pod nadpisom */
body.login-page .text-center.mb-4 {
    margin-bottom: 18px !important;
}

/* Menšie formulárové rozostupy */
body.login-page form .mb-3 {
    margin-bottom: 12px !important;
}

body.login-page form .mb-4 {
    margin-bottom: 16px !important;
}

body.login-page .form-label {
    margin-bottom: 5px !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    color: rgba(255,255,255,0.78) !important;
}

/* Kompaktnejšie inputy */
body.login-page .glass-input {
    min-height: 42px !important;
    height: 42px !important;

    padding: 8px 40px 8px 12px !important;

    border-radius: 11px !important;

    font-size: 14px !important;

    color: #ffffff !important;

    background: rgba(5, 8, 16, 0.10) !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,0.14) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045) !important;
}

body.login-page .glass-input:focus {
    background: rgba(5, 8, 16, 0.16) !important;

    border-color: rgba(255,255,255,0.28) !important;

    box-shadow:
        0 0 0 3px rgba(255,255,255,0.045),
        inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* Oko na heslo */
body.login-page .password-toggle {
    right: 10px !important;

    width: 28px !important;
    height: 28px !important;

    padding: 0 !important;

    font-size: 14px !important;

    background: transparent !important;
    border: 0 !important;
}

/* Menšie prihlasovacie tlačidlo */
body.login-page .login-button {
    min-height: 42px !important;
    height: 42px !important;

    padding: 8px 14px !important;

    border-radius: 11px !important;

    font-size: 14px !important;
    font-weight: 650 !important;

    color: #ffffff !important;

    background: rgba(255,255,255,0.055) !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,0.15) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 7px 22px rgba(0,0,0,0.16) !important;
}

body.login-page .login-button:hover {
    transform: none !important;
    background: rgba(255,255,255,0.10) !important;
}

/* Menšia pätička */
body.login-page .login-footer {
    margin-top: 18px !important;

    font-size: 11px !important;

    color: rgba(255,255,255,0.55) !important;
}

/* Flash správy */
body.login-page .alert {
    padding: 7px 10px !important;
    margin-bottom: 12px !important;

    border-radius: 10px !important;

    font-size: 12px !important;
}

/* Malé obrazovky */
@media (max-height: 650px) {
    body.login-page .login-card {
        max-width: 320px !important;
        padding: 18px 21px 16px !important;
    }

    body.login-page .brand-icon {
        width: 46px !important;
        height: 46px !important;
        margin-bottom: 10px !important;
    }

    body.login-page .brand-icon span {
        font-size: 18px !important;
    }

    body.login-page .login-title {
        font-size: 21px !important;
    }

    body.login-page .text-center.mb-4 {
        margin-bottom: 13px !important;
    }

    body.login-page .login-footer {
        margin-top: 13px !important;
    }
}

/* ===== LOGIN BACKGROUND FIX ===== */

body.login-page {
    background: #05070d !important;
}

body.login-page .background-image-layer {
    z-index: 0 !important;
    opacity: 1 !important;
    filter: none !important;
    background-position: center center !important;
    background-size: cover !important;
}

body.login-page .background-overlay {
    z-index: 1 !important;
    background: rgba(0,0,0,.22) !important;
    opacity: 1 !important;
}

body.login-page .login-wrapper {
    z-index: 2 !important;
    background: transparent !important;
}

body.login-page::before,
body.login-page::after {
    display: none !important;
    content: none !important;
}
