/* Landing page styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto:wght@400;700&display=swap');

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

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.landing-container {
    min-height: 100vh;
    position: relative;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background video styling */
#background-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Top Navigation */
.top-navigation {
    position: relative;
    z-index: 3;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start;
    background: transparent;
}

.bottom-strip .top-navigation {
    padding: 20px 0 20px 0;
    margin: 0 100px 0 120px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: rgba(77, 93, 115, 0.8);
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    min-width: 60px;
    height: 56px;
}

.nav-btn:hover {
    background: rgba(90, 108, 133, 0.9);
    transform: translateY(-2px);
}

#notificationBtn {
    width: 60px;
}

.language-btn {
    min-width: auto;
    padding: 12px 16px;
    font-size: 0.95rem;
    position: relative;
}

.language-dropdown-wrapper {
    position: relative;
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: rgba(77, 93, 115, 0.95);
    border-radius: 8px;
    min-width: 200px;
    max-height: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for language dropdown */
.language-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 0;
}

.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.language-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease;
    gap: 12px;
}

.language-option:hover {
    background: rgba(90, 108, 133, 0.9);
    color: #ffffff;
}

.language-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.language-option span {
    font-size: 0.95rem;
}

.warning-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
    padding: 12px 20px;
}

.warning-btn .badge {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.news-section-label {
    background: rgba(77, 93, 115, 0.5);
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    height: 56px;
    margin-left: auto;
    width: 800px;
    overflow: hidden;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.news-ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-news 40s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-news {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 800px;
    margin-left: 10px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 8px;
    background: rgba(77, 93, 115, 0.8);
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background: rgba(90, 108, 133, 0.9);
}

.content-wrapper {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 2;
    padding: 0;
}

/* Left side - Brand and tagline */
.left-content {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.brand-section {
    max-width: 800px;
    padding: 0 0 90px 120px;
}

.brand-name {
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    font-weight: 700;
    font-style: normal;
    line-height: 50px;
    letter-spacing: 0%;
    text-transform: uppercase;
}

.tagline {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 2%;
}

/* Right side - Login form */
.right-content {
    flex: 0 0 620px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 40px 40px 0;
}

.login-card {
    background: rgba(188, 187, 187, 0.416);
    backdrop-filter: blur(15px);  /* Stronger blur effect */
    -webkit-backdrop-filter: blur(15px);  /* For Safari support */
    border-radius: 9px;
    padding: 40px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 100px;
    object-fit: contain;
}

.welcome-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 5px;
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 0;
    padding: 0 20px;
}

.login-form {
    width: 100%;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.form-control::placeholder {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.form-check {
    margin: 10px 0 25px 0;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    transform: scale(1.1);
}

.form-check-label {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #ffffff;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover,
.btn-login:active {
    background: #1a2530;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-login:focus {
    background: #1a2530 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    outline: none;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #2c5aa0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* Announcements and News Section */
.announcements-news-section {
    padding: 20px 0 30px;
}

.section-container {
    margin-bottom: 30px;
    padding: 10px;
}

.announcements-container {
    margin-left: 100px;
    margin-right: 20px;
}

.news-container {
    margin-left: 20px;
    margin-right: 100px;
}

/* Widgets Section - Apply same margins as announcements/news */
.widgets-section .row > .col-md-6:nth-child(odd) .widget-container {
    margin-left: 100px;
    margin-right: 20px;
}

.widgets-section .row > .col-md-6:nth-child(even) .widget-container {
    margin-left: 20px;
    margin-right: 100px;
}

.section-title {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: left;
    padding-bottom: 5px;
}

.announcement-item, .news-item {
    background-color: rgba(59, 72, 89, 0.5);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.announcement-meta {
    font-size: 0.75rem;
    color: #999999;
    margin-top: 10px;
}

.news-header {
    margin-bottom: 15px;
}

.news-title, .news-date, .news-category {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 5px;
}

.news-content p {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.news-download {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: none;
    justify-content: space-between;
}

.news-download i {
    margin-right: 6px;
}

.download-icon {
    margin-left: auto;
    margin-right: 0;
}

/* Accordion Styling */
.accordion {
    margin-top: 25px;
}

.accordion-item {
    background-color: transparent;
    border: none;
    margin-bottom: 15px;
}

.accordion-button {
    background-color: rgba(59, 72, 89, 0.5);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 18px 20px;
    border-radius: 5px;
    box-shadow: none;
    margin-bottom: 2px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(69, 89, 113, 0.9);
    color: #ffffff;
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background-color: rgba(59, 72, 89, 0.3);
    color: #cccccc;
    font-size: 0.85rem;
    padding: 20px 25px;
    border-radius: 0 0 5px 5px;
    line-height: 1.6;
    min-height: 120px;
}

/* Bottom strip */
.bottom-strip {
    background: #1a2634;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(5px);
    height: auto;
    min-height: 900px;
    padding: 0;
}

/* Spacer to push content down */
.bottom-spacer {
    height: 70px; /* Increased height for more space at the top */
}

/* Widgets Section */
.widgets-section {
    padding: 40px 0 50px;
}

.widget-container {
    margin-bottom: 30px;
}

.widget-content-box {
    background-color: rgba(59, 72, 89, 0.3);
    padding: 20px 25px;
    border-radius: 5px;
    min-height: 200px;
}

.widget-text {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.widget-text-bold {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.widget-text-small {
    font-size: 0.8rem;
    color: #999999;
    line-height: 1.6;
}

/* Weather Widget Styles */
.alert-box {
    background: rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-box.severe-alert {
    background: rgba(220, 53, 69, 0.15);
    border-left-color: #dc3545;
}

.alert-icon {
    color: #dc3545;
    font-size: 1.1rem;
}

.alert-box strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.weather-info-card {
    background: rgba(69, 89, 113, 0.5);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.weather-date {
    font-size: 0.85rem;
    color: #cccccc;
}

.weather-temp {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.weather-condition {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.weather-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #cccccc;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
}

.weather-detail-item i {
    font-size: 0.75rem;
}

/* Air Quality Widget Styles */
.aqi-display-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}

.aqi-value {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.aqi-status {
    font-size: 1.6rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 5px;
    display: inline-block;
}

.aqi-status.good {
    background: #28a745;
    color: #ffffff;
}

.widget-message {
    margin-top: 15px;
}

/* Emergency Response Widget Styles */
.incident-alert {
    background: rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.incident-alert strong {
    color: #dc3545;
    font-size: 0.95rem;
}

.response-info {
    padding-left: 10px;
}

.response-info p {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 8px;
}

/* Training Schedule Widget Styles */
.training-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-item {
    padding: 12px 15px;
    background: rgba(69, 89, 113, 0.5);
    border-left: 4px solid #2c5aa0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.training-item:hover {
    background: rgba(79, 99, 123, 0.6);
    transform: translateX(5px);
}

.training-date {
    font-size: 0.75rem;
    color: #999999;
    margin-bottom: 5px;
}

.training-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

/* Remove old widget card styles */
.widget-card {
    display: none;
}

.widget-header {
    display: none;
}

.widget-toggle {
    display: none;
}

/* Error states */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 5px;
}

/* Responsive design */
@media (max-width: 1400px) {
    .brand-section {
        padding: 0 0 100px 80px;
    }
    
    .brand-name {
        font-size: 4.5rem;
    }
    
    .tagline {
        font-size: 1.9rem;
    }
    
    .widgets-section .row {
        gap: 0;
    }
    
    .widgets-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 1200px) {
    .left-content {
        flex: 0.45;
    }
    
    .right-content {
        flex: 0.55;
        padding: 40px 30px 40px 0;
    }
    
    .brand-section {
        padding: 0 0 80px 60px;
    }
    
    .brand-name {
        font-size: 4rem;
    }
    
    .tagline {
        font-size: 1.7rem;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
    }
    
    .search-container {
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .left-content {
        flex: none;
        min-height: 300px;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px 20px;
    }
    
    .right-content {
        flex: none;
        width: 100%;
        max-width: 540px;
        padding: 0 20px 40px;
    }
    
    .brand-section {
        padding: 0;
    }
    
    .announcements-container,
    .news-container {
        margin-left: 40px;
        margin-right: 40px;
    }
    
    .brand-name {
        font-size: 3.8rem;
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: 1.6rem;
    }
    
    .login-card {
        margin-top: 0;
    }
    
    .announcements-news-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .announcements-news-section .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .announcements-container,
    .news-container {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .top-navigation {
        padding: 15px 20px;
    }
    
    .bottom-strip .top-navigation {
        padding: 15px 0;
        margin: 0 40px;
    }
    
    .nav-buttons {
        width: 100%;
    }
    
    .search-container {
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .widgets-section .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .widgets-section {
        padding: 30px 0 40px;
    }
    
    .widget-container {
        margin-left: 40px;
        margin-right: 40px;
    }
}

@media (max-width: 768px) {
    .left-content {
        min-height: 250px;
    }
    
    .brand-name {
        font-size: 3.2rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .announcements-container,
    .news-container {
        margin-left: 30px;
        margin-right: 30px;
    }
    
    .bottom-strip .top-navigation {
        margin: 0 30px;
    }
    
    .widget-container {
        margin-left: 30px;
        margin-right: 30px;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        padding: 0;
        font-size: 0.85rem;
    }
    
    .nav-btn {
        padding: 10px 14px;
        font-size: 1rem;
        min-width: 50px;
        height: 48px;
    }
    
    .warning-btn .badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .login-card {
        padding: 25px 20px;
    }
    
    .welcome-title {
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .logo-image, .logo-icon-fallback {
        width: 30px;
        height: 30px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 44px;
        height: 44px;
    }
    
    .warning-btn {
        flex-direction: column;
        gap: 2px;
        padding: 8px 10px;
    }
    
    .warning-btn .badge {
        font-size: 0.7rem;
    }
    
    .search-input {
        padding: 12px 15px 12px 45px;
        font-size: 0.9rem;
    }
    
    .widget-card {
        margin-bottom: 20px;
    }
    
    .widget-header {
        padding: 12px 15px;
    }
    
    .widget-title {
        font-size: 0.9rem;
    }
    
    .widget-content {
        padding: 15px;
    }
    
    .widget-container {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .announcements-news-section .col-md-6,
    .widgets-section .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Widget Settings Sidebar */
.widget-settings-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.widget-settings-sidebar.active {
    pointer-events: all;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget-settings-sidebar.active .sidebar-overlay {
    opacity: 1;
}

.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: #f8f9fa;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.widget-settings-sidebar.active .sidebar-content {
    transform: translateX(0);
}

.widget-settings-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #2d3748;
}

.sidebar-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #ffffff;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title i {
    color: #2d3748;
}

.btn-close-sidebar {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718096;
    font-size: 1.2rem;
}

.btn-close-sidebar:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.sidebar-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8f9fa;
}

.sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.sidebar-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.widget-settings-description {
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.widget-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-toggle-item {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.widget-toggle-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.widget-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.widget-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.widget-icon {
    font-size: 1.2rem;
    color: #2d3748;
    width: 28px;
    text-align: center;
}

.widget-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

/* Widget Preview Styles */
.widget-preview {
    width: 100%;
    margin-top: 8px;
}

.preview-card {
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.preview-card .preview-icon {
    width: 32px;
    height: 32px;
    background: #edf2f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.preview-card .preview-icon i {
    color: #4a5568;
    font-size: 0.9rem;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.preview-text {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.4;
}

/* Weather Preview */
.weather-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff5f5;
    color: #c53030;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.preview-alert i {
    font-size: 0.85rem;
}

.preview-weather {
    text-align: right;
}

.preview-temp {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.preview-condition {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 2px;
}

/* AQI Preview */
.aqi-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-aqi {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0fff4;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 70px;
}

.aqi-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22543d;
    line-height: 1;
}

.aqi-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #38a169;
    margin-top: 2px;
}

.aqi-preview .preview-text {
    flex: 1;
    font-size: 0.75rem;
    color: #2d3748;
}

/* Emergency Preview */
.emergency-preview {
    background: #fff5f5;
    border-color: #feb2b2;
}

.preview-emergency {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.emergency-badge {
    background: #c53030;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.emergency-stat {
    font-size: 0.75rem;
    color: #2d3748;
    font-weight: 500;
}

/* Training Preview */
.training-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.training-item-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.training-item-preview:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.training-date-preview {
    font-size: 0.7rem;
    color: #718096;
    white-space: nowrap;
    min-width: 80px;
}

.training-name-preview {
    font-size: 0.75rem;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.3;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #48bb78;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #4fd1c5;
}

.sidebar-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    background: #ffffff;
}

.sidebar-footer .btn {
    flex: 1;
}

.sidebar-footer .btn-primary {
    background: #4299e1;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.sidebar-footer .btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.sidebar-footer .btn-secondary {
    background: #e2e8f0;
    border: none;
    color: #2d3748;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-footer .btn-secondary:hover {
    background: #cbd5e0;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar-content {
        width: 100%;
        max-width: 100%;
    }
}