body {
    color: #bfc1c8;
    font-family: "Roboto", "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    background: linear-gradient(135deg, #1e202b 0%, #2c3e50 100%);
    min-height: 100vh;
    transition: background 1s ease;
}

/* Weather-Based Background Themes */
body.sunny {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 50%, #f7931e 100%);
}

body.clear {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body.cloudy {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

body.overcast {
    background: linear-gradient(135deg, #606c88 0%, #3f4c6b 100%);
}

body.rainy {
    background: linear-gradient(135deg, #2980b9 0%, #2c3e50 50%, #34495e 100%);
}

body.drizzle {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #2d3436 100%);
}

body.snowy {
    background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 50%, #7fb8e6 100%);
}

body.foggy {
    background: linear-gradient(135deg, #d3d3d3 0%, #a8a8a8 50%, #696969 100%);
}

body.thunderstorm {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a1a2e 100%);
}

body.windy {
    background: linear-gradient(135deg, #8e9eab 0%, #eef2f3 50%, #8e9eab 100%);
}




.navbar-nav .nav-link.active {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
    transform: translateY(-1px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Override Bootstrap padding classes */
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
/* Navigation Styles */
.navbar {
    height: auto;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo .navbar-brand {
    margin-right: 1rem;
    padding: 0;
}

.logo .navbar-brand img {
    height: 40px;
    width: auto;
}

.logo .det h5 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Override Bootstrap padding classes */
    /* padding-left: 1rem !important;
    padding-right: 1rem !important; */
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,123,255,0.8), rgba(0,150,255,0.6));
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.navbar-nav .nav-link:focus {
    outline: 2px solid rgba(0,123,255,0.5);
    outline-offset: 2px;
    background-color: rgba(255,255,255,0.1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    vertical-align: middle;
    flex-direction: row;
    flex-wrap: nowrap;
  
}

.navbar-nav .nav-link:focus:not(:focus-visible) {
    outline: none;
}

/* Hero Section Styles */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(../imgs/banner.png);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Search Styles */
.search-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,123,255,0.3);
    transform: translateY(-2px);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
}

.search-btn:hover {
    transform: translateY(-52%);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
    background: linear-gradient(45deg, #0056b3, #004085);
}

/* Location Button Styles */
.location-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(40,167,69,0.3);
    font-size: 0.9rem;
}

.location-btn:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    box-shadow: 0 4px 15px rgba(40,167,69,0.4);
    transform: translateY(-2px);
    color: white;
}

.location-btn:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.location-btn:focus {
    outline: 2px solid rgba(40,167,69,0.5);
    outline-offset: 2px;
    color: white;
}

.location-btn i {
    margin-right: 0.5rem;
}

.location-btn-wrapper {
    margin-top: 1rem;
}

/* Temperature Toggle Styles */
.temp-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.temp-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.temp-unit {
    position: relative;
    z-index: 2;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    min-width: 36px;
    text-align: center;
}

.temp-unit.active {
    color: #ffffff;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 32px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.temp-toggle.fahrenheit .toggle-slider {
    transform: translateX(40px);
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.temp-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.temp-toggle:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal-content {
    background: rgba(38, 41, 54, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.modal-title {
    color: #ffffff;
    font-weight: 500;
}

.modal-title i {
    margin-right: 0.5rem;
    color: #007bff;
}

.btn-close {
    filter: invert(1);
}

/* Camera Cards */
.camera-card {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.camera-card h6 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.camera-card h6 i {
    color: #007bff;
    margin-right: 0.5rem;
}

.camera-card iframe {
    border-radius: 8px;
}

/* Photo Gallery */
.photo-gallery {
    max-height: 500px;
    overflow-y: auto;
}

.photo-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-item .photo-caption {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

/* Settings Styles */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    color: rgba(255,255,255,0.8);
}

.about-section h6,
.settings-section h6,
.contact-info h6 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.about-section h6 i,
.settings-section h6 i,
.contact-info h6 i {
    color: #007bff;
    margin-right: 0.5rem;
}

.about-section ul {
    color: rgba(255,255,255,0.8);
}

.contact-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Alert Styles */
.alert {
    background: rgba(0,123,255,0.1);
    border: 1px solid rgba(0,123,255,0.3);
    color: #ffffff;
    border-radius: 10px;
}

.alert i {
    margin-right: 0.5rem;
}

/* Photo Gallery Styles */
.photo-info {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.75rem;
}

.photo-info h6 {
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.photo-info h6 i {
    color: #007bff;
    margin-right: 0.4rem;
}

.photo-info .text-muted {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.photo-info .d-flex {
    gap: 0.75rem;
}

/* Photo Gallery Container */
.photo-gallery {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.photo-gallery::-webkit-scrollbar {
    width: 6px;
}

.photo-gallery::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.photo-gallery::-webkit-scrollbar-thumb {
    background: rgba(0,123,255,0.5);
    border-radius: 3px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(0,123,255,0.7);
}

/* Photo item active state */
.photo-item.active {
    border: 2px solid #007bff;
    box-shadow: 0 0 15px rgba(0,123,255,0.5);
    border-radius: 10px;
}

.photo-item.active .photo-caption {
    color: #007bff;
    font-weight: 600;
}

/* Modal body spacing */
.modal-body {
    padding: 1rem;
}

/* Photo grid spacing */
#photosContainer .col-md-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 0.75rem;
}

#photosContainer .photo-item {
    margin: 0;
}

/* Mobile responsive for photo gallery */
@media (max-width: 768px) {
    .modal-body {
        padding: 0.75rem;
    }
    
    .photo-info {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .photo-info .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .photo-info .d-flex > div:last-child {
        align-self: stretch;
    }
    
    .photo-info .d-flex > div:last-child .btn {
        width: 100%;
    }
    
    .photo-gallery {
        max-height: 400px;
    }
    
    #photosContainer .col-md-3 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-bottom: 0.5rem;
    }
}
/* Weather Cards Section */
.weather-cards-section {
    margin-top: -100px;
    padding-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.weather-cards-section .row {
    margin: 0;
}


.today .header:after{
    
        content: " ";
        clear: both;
        display: block;
        overflow: hidden;
        height: 0;
    

}


.card .content {
    padding: 2rem 1.5rem;
    text-align: center;
}
    
.today-card .content {
        text-align: left;
    padding: 2rem 1.5rem;
}
    
.card .header {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card .today .location{
    font-size: 1.2857142857em;
    font-weight: 400;
}
.card .content .degree{
    font-size: 1.7142857143em;
    color: white;
    font-weight: 700;
}
 .today .content .degree .num{
    font-size: 3rem;

    display: inline-block;
    vertical-align: middle;
}
sup {
    top: -0.5em;
}
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
.card .today .degree .icon{
    display: inline-block;
    vertical-align: middle;
}
.card .content .icon{
    margin-bottom: 20px;
}
.card .icon{
    height: 50px;
}
img{
    border: 0;
}
.custom{
    color: #009ad8;
    margin: 20px 0;
}
 .today span{
    margin-right: 10px;
}
/* Card Styles */
 .card {
    background: rgba(38, 41, 54, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.today-card {
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(38, 41, 54, 0.95));
}

.forecast-card {
    background: rgba(38, 41, 54, 0.95);
}
.today-card .header {
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.forecast-card .header {
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
 .forecast-card .content {
    padding: 1.5rem 1rem;
    text-align: center;
}

 .forecast-card .content .num .min-degree {
     font-size: 0.8em;
     color: #bfc1c8;
 }

/* Weather Details Styling */
.weather-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    gap: 1rem;
}

.weather-details img {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #bfc1c8;
}

.weather-detail-item img {
    margin-right: 0.5rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus and Accessibility */
.search-input:focus,
.search-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Location and Time Styles */
.location-time-wrapper {
    margin-bottom: 1rem;
}

.today-card .location {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.local-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.local-time i {
    font-size: 0.8rem;
}

#timeDisplay {
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.today-card .degree .num {
    font-size: 4rem;
    font-weight: 300;
    color: #ffffff;
}

.temperature-display {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.temperature-display .unit {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
}

.custom {
    color: #00bcd4;
    font-size: 1.1rem;
    margin: 1rem 0;
    font-weight: 400;
}

.forecast-card .max-degree {
    font-size: 1.8rem;
    font-weight: 500;
}

.forecast-card .min-degree {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .temp-toggle-wrapper {
        margin-left: 0.5rem;
    }
    
    .temp-toggle {
        transform: scale(0.9);
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .search-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .location-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Today Card Mobile Fixes */
    .today-card .degree {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .today-card .degree .num {
        font-size: 2.5rem;
        margin: 0;
    }
    
    .temperature-display .unit {
        font-size: 1.2rem;
    }
    
    .today-card .degree .icon {
        margin-bottom: 0;
    }
    
    .today-card .degree .icon img {
        width: 60px;
        height: 60px;
    }
    
    .today-card .location {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .location-time-wrapper {
        text-align: center;
    }
    
    .local-time {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .today-card .content {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .today-card .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
    }
    
    .today-card .header .day,
    .today-card .header .date {
        float: none;
        font-size: 0.9rem;
    }
    
    .weather-details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.8rem;
        margin-top: 1rem;
        padding: 0.8rem;
    }
    
    .weather-detail-item {
        flex: 1;
        min-width: 80px;
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .weather-detail-item img {
        width: 16px;
        height: 16px;
    }
    
    .card .content {
        padding: 1.5rem 1rem;
    }
    
    /* Tablet Navbar Improvements */
    .navbar .display {
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-collapse {
        flex-grow: 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
        padding: 0.6rem 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        transform: translateY(-3px) scale(1.02);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .temp-toggle-wrapper {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .temp-toggle {
        transform: scale(0.85);
    }
    
    .navbar .display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-collapse {
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        width: 100%;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.3rem auto;
        padding: 0.8rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-width: 120px;
    }
    
    .navbar-nav .nav-link:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,123,255,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-wrapper {
        padding: 0 1rem;
    }
    
    .location-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        width: auto;
        min-width: 180px;
    }
    
    .weather-cards-section {
        margin-top: -50px;
    }
    
    /* Extra Small Screen Fixes for Today Card */
    .today-card .degree {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
    
    .today-card .degree .num {
        font-size: 2.2rem;
        margin: 0;
    }
    
    .temperature-display .unit {
        font-size: 1rem;
    }
    
    .today-card .degree .icon {
        order: -1;
        margin: 0;
    }
    
    .today-card .degree .icon img {
        width: 50px;
        height: 50px;
    }
    
    .weather-details {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1rem 0.5rem;
    }
    
    .weather-detail-item {
        min-width: auto;
        padding: 0.3rem;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
    }
    
    .today-card .location {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .custom {
        font-size: 1rem;
        margin: 0.8rem 0;
    }
 }



