/* ==================================================
   GLOBAL RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ==================================================
   HOME HERO
================================================== */

.home-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 24px;

    background: linear-gradient(
        180deg,
        #EFE6DA 0%,   /* warm cream */
        #DCC7AE 55%,  /* latte */
        #a88a66 100%  /* coffee */
    );
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #7a6a5c;
    margin-bottom: 32px;
}

.hero-buttons {
    margin-bottom: 20px;
}

.primary-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    background: #1f6fff;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(31,111,255,0.35);
    transition: 0.25s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(31,111,255,0.45);
}

.hero-stats {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    color: #5c5046;
}

.hero-visual img {
    width: 100%;
    max-width: 420px;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==================================================
   ADMIN LAYOUT (NO OVERLAP – FINAL)
================================================== */

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #3C2F2F 0%, #1E1412 100%);
    color: #F5F0EA;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,0.25);
    transition: width 0.35s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 70px;
}

/* SIDEBAR HEADER */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 18px;
    margin-bottom: 20px;
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #C19A6B;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .brand {
    opacity: 0;
}

.btn-toggle {
    background: none;
    border: none;
    color: #C19A6B;
    font-size: 1.4rem;
    margin-right: 12px;
    cursor: pointer;
}

/* SIDEBAR MENU */
.divider {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin: 4px 10px;
    color: #F5F0EA;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sidebar-menu a i {
    font-size: 18px;
    color: #C19A6B;
    min-width: 20px;
}

.sidebar-menu a:hover {
    background: rgba(193,154,107,0.18);
    transform: translateX(4px);
}

.sidebar-menu a.active {
    background: rgba(193,154,107,0.30);
    border-left: 4px solid #C19A6B;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px 0;
}

/* ==================================================
   ADMIN HEADER
================================================== */

.admin-header {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 65px;
    background: #3C2F2F;
    border-bottom: 2px solid #C19A6B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    color: #F5F0EA;
    transition: left 0.35s ease;
    z-index: 900;
}

.sidebar.collapsed ~ .admin-header {
    left: 70px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.admin-page-title {
    font-size: 1.2rem; 
    font-weight: 600;
    letter-spacing: 0.3px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-user {
    font-size: 0.9rem;
    color: #EADFCC;
}
.admin-logout-btn {
    padding: 6px 14px;
    background: #C19A6B;
    border: none;
    border-radius: 6px;
    color: #3C2F2F;
    font-weight: 600;
    cursor: pointer;
}

.admin-logout-btn:hover {
    background: #E1C09A;
}

/* ==================================================
   MAIN CONTENT
================================================== */

.main-content {
    margin-left: 240px;
    padding: 30px;
    padding-top: 95px;
    background: #F5F0EA;
    min-height: 100vh;
    transition: margin-left 0.35s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* ==================================================
   ADMIN DASHBOARD
================================================== */

.admin-dashboard {
    padding: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.admin-card {
    background: #FBF7F2;
    border: 2px solid #C19A6B;
    border-radius: 18px;
    padding: 28px;
    text-decoration: none;
    color: #3C2F2F;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.admin-card:hover {
    transform: translateY(-8px);
    background: #EADFCC;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 2.6rem;
    color: #C19A6B;
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #7A5E47;
}

.arrow-icon {
    margin-top: auto;
    font-size: 1.4rem;
    color: #C19A6B;
    transition: 0.2s ease;
}

.admin-card:hover .arrow-icon {
    transform: translateX(4px);
    color: #8a6b43;
}

/* ==================================================
   RESPONSIVE ADMIN
================================================== */

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        padding-top: 90px;
    }

    .admin-page-title {
        font-size: 1.1rem;
    }
}

/* ===============================
   AUTH PAGE (WITH NAVBAR)
================================ */

.auth-layout {
    min-height: calc(100vh - 80px); /* navbar height */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.auth-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 80px 20px 40px;
    background: linear-gradient(
        135deg,
        #C19A6B 0%,
        #3C2F2F 40%,
        #1A1411 100%
    );
}

/* GLASS CARD */
.glass-card {
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-align: center;
}

/* TITLES */
.auth-title {
    color: #F5F0EA;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-subtitle {
    color: #D9B788;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* FORM */
.auth-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.auth-form label {
    color: #F5F0EA;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.auth-form input {
    padding: 10px;
    margin-bottom: 18px;
    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
    font-size: 1rem;
}

/* BUTTON */
.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;

    background: #C19A6B;
    color: #3C2F2F;
    border: none;
    border-radius: 50px;

    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.auth-btn:hover {
    background: #d8b693;
    transform: translateY(-2px);
}

/* LINKS */
.auth-link {
    margin-top: 15px;
    color: #F5F0EA;
}

.auth-link a {
    color: #FFD9A3;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ALERTS */
.auth-error,
.auth-success {
    background: rgba(0,0,0,0.3);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.auth-error {
    color: #FFD9D9;
}

.auth-success {
    color: #C6FFD9;
}
/* ===============================
   PASSWORD TOGGLE (FIXED)
================================ */

.password-wrapper {
    position: relative;
    margin-bottom: 18px;
}

/* Input */
.password-input {
    width: 100%;
    height: 46px; /* 🔥 FIXED HEIGHT */
    padding: 10px 44px 10px 12px;
    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
    font-size: 1rem;
}

/* Toggle Button */
.toggle-password {
    position: absolute;
    top: 0;
    right: 12px;

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    padding: 0;

    color: #EADFCC;
    font-size: 1.2rem;
    cursor: pointer;
}

.toggle-password:hover {
    color: #FFD9A3;
}

.toggle-password:focus {
    outline: none;
}

/* ===============================
   APP NOTIFICATIONS (CafeSpot)
================================ */

.app-notification {
    position: fixed;
    top: 18px;
    right: 18px;

    min-width: 320px;
    max-width: 420px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 18px;
    border-radius: 14px;

    font-size: 0.95rem;
    font-weight: 500;

    color: #fff;
    z-index: 9999;

    box-shadow: 0 14px 35px rgba(0,0,0,0.25);

    animation: notif-slide-in 0.35s ease forwards;
}

/* ICON */
.app-notification i {
    font-size: 1.3rem;
}

/* MESSAGE */
.app-notification .message {
    flex: 1;
    line-height: 1.3;
}
/* ACTION BUTTON (e.g. Remove) */
.app-notification .notif-action {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;

    padding: 6px 14px;
    border-radius: 20px;

    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition: all 0.25s ease;
}

.app-notification .notif-action:hover {
    background: #fff;
    color: #d68910; /* matches warning gradient */
    border-color: #fff;
}

/* CLOSE BUTTON */
.notif-close {
    background: rgba(255,255,255,0.25);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;

    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s ease;
}

.notif-close:hover {
    background: rgba(255,255,255,0.4);
}

/* TYPES */
.app-notification.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.app-notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.app-notification.warning {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

/* ANIMATIONS */
@keyframes notif-slide-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* EXIT STATE */
.app-notification.hide {
    opacity: 0;
    transform: translateX(40px);
    transition: 0.3s ease;
}
