html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050711;
    color: #f8fafc;
}

/* App Shell */

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.app-sidebar {
    width: 240px;
    background: radial-gradient(circle at top left, #111827 0, #020617 55%);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-logo-text {
    display: flex;
    flex-direction: column;
}

.app-logo-title {
    font-weight: 600;
    font-size: 1rem;
}

.app-logo-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

    .app-nav-link:hover {
        background: rgba(148, 163, 184, 0.15);
        color: #ffffff;
        transform: translateX(2px);
    }

    .app-nav-link.active {
        background: linear-gradient(135deg, #22c55e, #0ea5e9);
        color: #020617;
    }

.app-nav-icon {
    font-size: 1.1rem;
}

.app-nav-label {
    flex: 1;
}

.app-sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Main */

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #030712 100%);
}

/* Topbar */

.app-topbar {
    height: 56px;
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Content */

.app-content {
    flex: 1;
    padding: 1.75rem 1.75rem 2rem;
}

/* Profile button & avatar */

.app-profile-btn {
    border-color: rgba(148, 163, 184, 0.6) !important;
    color: #e5e7eb !important;
    background: rgba(15, 23, 42, 0.9);
}

    .app-profile-btn:hover {
        background: rgba(30, 64, 175, 0.5);
    }

.app-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #020617;
}

/* Cards / Panels */

.card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.border-slate {
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Form elements */

.form-control,
.form-select {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

    .form-control::placeholder {
        color: #6b7280;
    }

    .form-control:focus,
    .form-select:focus {
        background-color: rgba(15, 23, 42, 1);
        border-color: #22c55e;
        box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.65);
        color: #ffffff;
    }

    /* Disabled / readonly */

    .form-control:disabled,
    .form-control[readonly],
    .form-select:disabled {
        background-color: #111827;
        color: #9ca3af;
        border-color: rgba(148, 163, 184, 0.4);
        opacity: 1;
    }

/* Buttons */

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    border: none;
}

    .btn-primary:hover {
        filter: brightness(1.05);
    }

.btn-outline-primary {
    border-color: #22c55e;
    color: #bbf7d0;
}

    .btn-outline-primary:hover {
        background: #22c55e;
        color: #020617;
    }

/* Tables */

.table {
    color: #e5e7eb;
}

    .table thead th {
        border-color: rgba(55, 65, 81, 0.8);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .table tbody tr {
        border-color: rgba(31, 41, 55, 0.8);
    }

        .table tbody tr:hover {
            background: rgba(30, 64, 175, 0.25);
        }

/* Language switch */

.app-lang-switch .lang-flag {
    text-decoration: none;
    font-size: 1.1rem;
}

    .app-lang-switch .lang-flag:hover {
        filter: brightness(1.1);
    }

/* Responsive */

@media (max-width: 992px) {
    .app-sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
    }

    .app-content {
        padding: 1rem;
    }
}

/* Sidebar / Header logo image */

.app-logo-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: 0;
}

.app-logo-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Login animated logo */

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.login-logo-svg {
    width: 56px;
    height: 56px;
    display: block;
}

.login-bar {
    fill: #22d3ee;
    animation: loginWave 1.1s ease-in-out infinite;
    transform-origin: center bottom;
}

.login-bar-1 {
    animation: loginWave 3s ease-in-out infinite;
}

.login-bar-2 {
    animation: loginWave 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.login-bar-3 {
    animation: loginWave 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

.login-bar-4 {
    animation: loginWave 3s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes loginWave {
    0%, 100% {
        transform: scaleY(0.7);
        opacity: 0.9;
    }

    50% {
        transform: scaleY(1.25);
        opacity: 1;
    }
}

/* Copy-Link Button */

.copy-link-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    color: #9ca3af;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

    .copy-link-btn:hover {
        background: rgba(148, 163, 184, 0.12);
        border-color: rgba(148, 163, 184, 0.9);
        color: #e5e7eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.6);
    }

    .copy-link-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

.copy-link-btn--copied {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    border-color: transparent;
    color: #020617;
}

/* URL-Spalte mit Copy-Button sauber ausrichten */

.col-url {
    width: 260px;
}

    .col-url .url-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .col-url .url-text {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem;
    }
