﻿/* --- LAYOUT SHELL --- */

html, body {
    height: 100%;
}

body {
    background-color: #f3f4f6;
}

/* Sidebar layout */
#app {
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    transition: width 0.2s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

.sidebar-header .sidebar-title {
    white-space: nowrap;
}

/* Links in sidebar */
.sidebar-link {
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.05s ease;
    font-size: 0.95rem;
}

    .sidebar-link i {
        font-size: 1.1rem;
    }

    .sidebar-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        text-decoration: none;
        transform: translateX(1px);
    }

/* Main content area */
.main {
    background-color: #f3f4f6;
}

.topbar {
    height: 56px;
}

/* --- COLLAPSED SIDEBAR --- */

body.sidebar-collapsed #sidebar {
    width: 72px;
}

    body.sidebar-collapsed #sidebar .sidebar-text,
    body.sidebar-collapsed #sidebar .sidebar-title {
        display: none;
    }

    body.sidebar-collapsed #sidebar .sidebar-header {
        justify-content: center;
    }

        body.sidebar-collapsed #sidebar .sidebar-header i {
            margin-right: 0;
        }

    body.sidebar-collapsed #sidebar .sidebar-link {
        justify-content: center;
    }

        body.sidebar-collapsed #sidebar .sidebar-link i {
            margin-right: 0;
        }

/* small screens tweaks */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        transform: translateX(0);
    }

    body.sidebar-collapsed #sidebar {
        transform: translateX(-100%);
    }

    .main {
        margin-left: 0 !important;
    }
}

/* Make login card wider */
.login-page .login-card {
    max-width: 520px; /* wider than before */
    width: 100%;
    background: #111827;
    color: #e5e7eb;
    border-radius: 1.5rem;
}

/* Icon pill on the left of the inputs */
.login-input-icon {
    background-color: #020617;
    border: 1px solid #020617;
    color: #9ca3af;
}

/* Input styling – dark background, WHITE text while typing */
.login-input {
    background-color: #020617;
    border: 1px solid #020617;
    color: #f9fafb; /* <-- white text */
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

    .login-input::placeholder {
        color: #9ca3af;
    }

    .login-input:focus {
        background-color: #020617;
        color: #f9fafb; /* keep text white on focus */
        border-color: #6366f1;
        box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
    }

/* Login button */
.login-btn {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border: none;
    font-weight: 600;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-radius: 999px;
}

    .login-btn:hover {
        filter: brightness(1.05);
    }

/* Top icon circle */
.login-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    font-size: 1.6rem;
}

