/* FYM Dashboard */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0a0a14;
    color: #e0e0e0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === Gate / Picker === */
.gate-container {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 100vh; text-align: center;
    padding: 24px;
}
.gate-logo {
    font-family: Georgia, serif; font-size: 64px; color: #fff;
    letter-spacing: 8px; font-weight: 700; margin-bottom: 4px;
}
.gate-sub {
    font-size: 14px; color: #6b7388; letter-spacing: 4px;
    text-transform: uppercase; margin-bottom: 48px;
}
.gate-buttons { display: flex; gap: 16px; }
.gate-btn {
    padding: 16px 40px; font-size: 16px; font-weight: 600;
    border: 1px solid #2a2a3e; border-radius: 8px;
    background: #12121f; color: #fff; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}
.gate-btn:hover { border-color: #6699ee; background: #1a1a2e; }

/* === Dashboard Layout === */
.dash {
    max-width: 900px; margin: 0 auto; padding: 32px 24px 64px;
}

/* Header */
.dash-header { padding: 24px 0 32px; }
.dash-greeting {
    font-family: Georgia, serif; font-size: 36px; color: #fff;
    font-weight: 600; margin-bottom: 6px; line-height: 1.2;
}
.dash-date {
    font-size: 15px; color: #99a0b0; margin-bottom: 4px;
}
.dash-location {
    font-size: 13px; color: #6b7388;
}

/* Weather widget */
.weather-card {
    background: #12121f; border: 1px solid #1e1e32;
    border-radius: 12px; padding: 24px 28px;
    display: flex; align-items: center; gap: 24px;
    margin: 24px 0;
    position: relative; overflow: hidden;
}
.weather-temp {
    font-family: Georgia, serif; font-size: 52px; color: #fff;
    font-weight: 600; line-height: 1; min-width: 100px;
}
.weather-temp span { font-size: 24px; color: #6b7388; font-weight: 400; }
.weather-info { flex: 1; }
.weather-desc {
    font-size: 16px; color: #c8cee0; text-transform: capitalize;
    margin-bottom: 4px;
}
.weather-detail { font-size: 13px; color: #6b7388; }
.weather-icon-area {
    width: 80px; height: 80px; position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* Weather animations */
.sun {
    width: 48px; height: 48px; border-radius: 50%;
    background: radial-gradient(circle, #ffdd57 40%, #ffaa00 100%);
    box-shadow: 0 0 30px rgba(255, 200, 50, 0.4);
    animation: pulse-sun 3s ease-in-out infinite;
}
@keyframes pulse-sun {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 200, 50, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 200, 50, 0.6); }
}
.cloud {
    width: 56px; height: 28px; border-radius: 28px;
    background: #555e75; position: relative;
    animation: drift 6s ease-in-out infinite;
}
.cloud::before {
    content: ''; position: absolute; width: 24px; height: 24px;
    border-radius: 50%; background: #555e75;
    top: -12px; left: 12px;
}
.cloud::after {
    content: ''; position: absolute; width: 18px; height: 18px;
    border-radius: 50%; background: #555e75;
    top: -8px; left: 30px;
}
@keyframes drift {
    0%, 100% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
}

.rain-container { position: relative; width: 60px; height: 60px; }
.raindrop {
    position: absolute; width: 2px; height: 12px;
    background: linear-gradient(to bottom, transparent, #6699ee);
    border-radius: 0 0 2px 2px;
    animation: fall 0.8s linear infinite;
}
.raindrop:nth-child(1) { left: 10px; animation-delay: 0s; }
.raindrop:nth-child(2) { left: 22px; animation-delay: 0.2s; }
.raindrop:nth-child(3) { left: 34px; animation-delay: 0.4s; }
.raindrop:nth-child(4) { left: 46px; animation-delay: 0.15s; }
.raindrop:nth-child(5) { left: 16px; animation-delay: 0.35s; }
@keyframes fall {
    0% { transform: translateY(-10px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(55px); opacity: 0; }
}

.snow-container { position: relative; width: 60px; height: 60px; }
.snowflake {
    position: absolute; width: 6px; height: 6px;
    background: #fff; border-radius: 50%; opacity: 0.8;
    animation: snowfall 2s linear infinite;
}
.snowflake:nth-child(1) { left: 10px; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 25px; animation-delay: 0.5s; }
.snowflake:nth-child(3) { left: 40px; animation-delay: 1s; }
.snowflake:nth-child(4) { left: 18px; animation-delay: 0.7s; }
@keyframes snowfall {
    0% { transform: translateY(-5px) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(55px) rotate(180deg); opacity: 0; }
}

/* Widget grid */
.widget-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin: 24px 0;
}
@media (max-width: 640px) { .widget-grid { grid-template-columns: 1fr; } }

.widget {
    background: #12121f; border: 1px solid #1e1e32;
    border-radius: 12px; padding: 20px 22px;
}
.widget-title {
    font-size: 11px; color: #6b7388; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 14px; font-weight: 600;
}
.widget-content { font-size: 14px; color: #c8cee0; line-height: 1.7; }
.widget-content a {
    color: #6699ee; text-decoration: none;
    display: block; padding: 4px 0;
    transition: color 0.1s;
}
.widget-content a:hover { color: #88bbff; }
.widget-stat {
    font-family: Georgia, serif; font-size: 28px; color: #fff;
    font-weight: 600; margin-bottom: 4px;
}

/* Quick links */
.quick-links {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px; margin: 24px 0;
}
.quick-link {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 16px; font-size: 13px; font-weight: 600;
    background: #12121f; border: 1px solid #1e1e32;
    border-radius: 8px; color: #c8cee0; text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.quick-link:hover { border-color: #6699ee; color: #fff; }

/* Section header */
.section-label {
    font-size: 11px; color: #6b7388; text-transform: uppercase;
    letter-spacing: 2px; font-weight: 600;
    margin: 32px 0 12px; padding-bottom: 8px;
    border-bottom: 1px solid #1e1e32;
}

/* Switch user */
.switch-user {
    text-align: center; padding: 40px 0 16px;
}
.switch-user a {
    font-size: 12px; color: #4a4a5a; text-decoration: underline;
    cursor: pointer;
}
.switch-user a:hover { color: #6b7388; }
