* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    color: #222;
}

/* =========================
   LOGIN
========================= */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top left,
            #ffd6df,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #fff5f7,
            #f8f0ff
        );
}

.login-card {
    width: 100%;
    max-width: 430px;

    padding: 40px;

    background: rgba(255,255,255,0.95);

    border-radius: 24px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.12);

    text-align: center;
}

.brand-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #8b1e3f;

    color: white;

    font-size: 32px;
}

.login-card h1 {
    font-size: 27px;
    margin-bottom: 7px;
}

.subtitle {
    color: #777;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #ddd;

    border-radius: 12px;

    outline: none;

    font-size: 15px;
}

.input-group input:focus {
    border-color: #8b1e3f;

    box-shadow:
        0 0 0 3px rgba(139,30,63,0.1);
}

.login-btn {
    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #8b1e3f;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.login-btn:hover {
    background: #6f1732;

    transform: translateY(-1px);
}

.error-message {
    background: #ffe5e5;

    color: #b00020;

    padding: 12px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-size: 14px;
}

.login-footer {
    margin-top: 25px;

    color: #999;

    font-size: 13px;
}


/* =========================
   ADMIN LAYOUT
========================= */

.admin-layout {
    min-height: 100vh;

    display: flex;
}

.sidebar {
    width: 250px;

    background: #24121a;

    color: white;

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    padding: 25px 15px;
}

.sidebar-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 18px;

    font-weight: 700;

    padding: 10px;

    margin-bottom: 30px;
}

.sidebar nav a {
    display: block;

    padding: 13px 15px;

    margin-bottom: 6px;

    border-radius: 10px;

    color: #ddd;

    text-decoration: none;

    transition: 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #8b1e3f;

    color: white;
}

.sidebar .logout-link {
    margin-top: 30px;
}


/* =========================
   MAIN
========================= */

.main-content {
    margin-left: 250px;

    width: calc(100% - 250px);

    padding: 30px;
}

.topbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 30px;
}

.topbar h2 {
    font-size: 28px;
}

.topbar p {
    color: #777;

    margin-top: 5px;
}

.admin-profile {
    background: white;

    padding: 12px 18px;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}


/* =========================
   STAT CARDS
========================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 20px;
}

.stat-card {
    background: white;

    border-radius: 18px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #fff0f3;

    font-size: 24px;
}

.stat-card span {
    display: block;

    color: #777;

    font-size: 13px;

    margin-bottom: 5px;
}

.stat-card strong {
    font-size: 25px;
}


/* =========================
   WELCOME
========================= */

.welcome-card {
    margin-top: 25px;

    background:
        linear-gradient(
            135deg,
            #8b1e3f,
            #4a1024
        );

    color: white;

    padding: 35px;

    border-radius: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.welcome-card h2 {
    margin-bottom: 10px;
}

.welcome-card p {
    opacity: 0.85;
}

.heart {
    font-size: 60px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .sidebar {
        width: 70px;
    }

    .sidebar-logo span {
        display: none;
    }

    .sidebar nav a {
        text-align: center;
        font-size: 0;
    }

    .sidebar nav a::first-letter {
        font-size: 20px;
    }

    .main-content {
        margin-left: 70px;

        width: calc(100% - 70px);

        padding: 20px;
    }

    .topbar {
        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }

    .login-card {
        margin: 20px;

        padding: 30px 22px;
    }
}