@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #475569;
    --primary-hover: #334155;
    --bg: whitesmoke;
    --surface: rgba(255, 255, 255, 0.8);
    --text: #1e293b;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(at 100% 0%, hsla(242, 78%, 60%, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(142, 72%, 29%, 0.03) 0px, transparent 50%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Layout */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--glass-shadow);
}

.auth-logo {
    width: 140px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.auth-logo:hover {
    opacity: 1;
}

/* Dashboard Layout */
.dashboard-nav {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    min-width: 180px;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: visible;
    /* Changed from hidden to visible so ::before is active outside */
}

.dropdown::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.user-menu:hover .dropdown {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: background 0.2s;
    border-radius: inherit;
}

.dropdown-item:hover {
    background: #f8fafc;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.875rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    outline: none;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Dashboard Body */
.main-content {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 750px;
}

.month-btn {
    padding: 1rem 1.5rem;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: rgb(255, 255, 255);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.month-btn:hover {
    border-color: var(--primary);
    background: rgb(255, 255, 255);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}


/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: slideUp 0.5s ease-out forwards;
}