/* Custom CSS for a sleek and professional design */

:root {
    --primary-color: #0d6efd;
    --bg-gradient-start: #f8f9fa;
    --bg-gradient-end: #e9ecef;
    --text-color: #212529;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container refinement for better centering */
.min-vh-100 {
    min-height: 100dvh !important; /* Use dynamic viewport height for mobile */
}

.card {
    background-color: var(--card-bg);
    border-radius: 24px !important;
    box-shadow: 0 10px 40px var(--shadow-color) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

/* --- Responsive Adjustments --- */

/* Mobile (Phone - iPhone, Android) */
@media (max-width: 575.98px) {
    body {
        background: #ffffff; /* Solid white for a clean mobile app feel */
    }
    .container {
        padding-left: 0;
        padding-right: 0;
    }
    .card {
        box-shadow: none !important;
        border-radius: 0 !important;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem !important;
    }
    .login-gif {
        max-width: 160px; /* Slightly smaller on mobile */
    }
}

/* Tablet (iPad) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .card {
        padding: 3rem !important;
        max-width: 500px;
        margin: auto;
    }
    .login-gif {
        max-width: 180px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .card {
        padding: 3rem !important;
    }
}

/* Form Styling */
.form-control {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
}

.input-group-text {
    border-right: none;
    padding-left: 1.25rem;
}

.login-gif {
    max-width: 200px;
    height: auto;
    border-radius: 20px;
}

.divider hr {
    border-top: 1px solid #dee2e6;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-dark {
    border-width: 1.5px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #f8f9fa;
    color: #000000;
    transform: translateY(-1px);
}

.btn-lg {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Touch-friendly interactive elements */
button:active {
    transform: scale(0.98);
}

a {
    transition: color 0.2s ease;
}

a:hover {
    color: #0a58ca !important;
}


/* Base */
.dashboard {
    max-width: 600px;
}

/* Weather Card */
.weather-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    border-radius: 18px;
    padding: 18px;
}

.weather-card .location {
    font-size: 14px;
    opacity: 0.9;
}

.weather-card .temp {
    font-size: 42px;
    font-weight: 700;
    margin: 5px 0;
}

.weather-card .condition {
    font-size: 14px;
    margin-bottom: 2px;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 12px 0;
}

/* Forecast */
.forecast {
    display: flex;
    justify-content: space-between;
    text-align: center;
    font-size: 12px;
}

.forecast span {
    font-size: 14px;
    font-weight: 600;
}

/* Info Cards */
.info-card {
    background: #f5f6f8;
    border-radius: 14px;
    padding: 15px;
    height: 100%;
}

.info-card h6 {
    font-size: 12px;
    color: #666;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
}

.info-card p {
    font-size: 12px;
    color: #888;
}

/* Live Card */
.live-card {
    background: #111;
    color: #fff;
    border-radius: 18px;
    padding: 18px;
}

.live-card h6 {
    font-size: 16px;
}

.live-card p {
    font-size: 13px;
    opacity: 0.8;
}

/* Section Title */
.section-title {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Notifications */
.notification-card {
    display: flex;
    align-items: center;
    background: #f5f6f8;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.notification-card .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 12px;
    font-size: 14px;
}

.notification-card h6 {
    font-size: 14px;
    margin: 0;
}

.notification-card p {
    font-size: 12px;
    margin: 0;
    color: #777;
}

/* Mobile Fine-tuning */
@media (max-width: 576px) {
    .weather-card {
        padding: 15px;
    }

    .weather-card .temp {
        font-size: 36px;
    }

    .forecast {
        font-size: 11px;
    }

    .info-card {
        padding: 12px;
    }

    .live-card {
        padding: 15px;
    }
}
