/* Straisend Control Plane — Custom styles */

:root {
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,.7);
    padding: .75rem 1.25rem;
    border-radius: .5rem;
    margin: .15rem .75rem;
    transition: all .2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.15);
}

.sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
    margin-right: .5rem;
}

.sidebar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Cards */
.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: transform .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Status badges */
.badge-online { background-color: #22c55e; }
.badge-offline { background-color: #ef4444; }
.badge-active { background-color: #22c55e; }
.badge-inactive { background-color: #94a3b8; }

/* Tables */
.table th {
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    border-bottom-width: 1px;
}

/* Login pages */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    border: none;
}

/* Client cabinet */
.cabinet-header {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: white;
    padding: 2rem 0;
}

.config-card {
    border: 2px dashed #c7d2fe;
    border-radius: .75rem;
    background: #f5f3ff;
    padding: 1.5rem;
}

.vless-url {
    word-break: break-all;
    font-family: 'Fira Code', monospace;
    font-size: .85rem;
    background: #1e1b4b;
    color: #a5b4fc;
    padding: 1rem;
    border-radius: .5rem;
}

/* QR block */
.qr-block {
    text-align: center;
    padding: 1.5rem;
}

.qr-block img {
    max-width: 250px;
    border-radius: .5rem;
    border: 3px solid #e0e7ff;
}

/* Flash messages */
.flash-message {
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
