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

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 70px;
    box-sizing: border-box;
}

body {
    padding-top: 70px;
}

.main-logo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
}

.main-logo a:hover {
    color: rgb(57, 136, 255);
    transform: scale(1.1);
    transition: 0.3s
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
    /* vertically center all items */
}

nav a,
.signup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}


.signup-button {
    border: 2px solid rgb(57, 136, 255);
    background-color: rgb(57, 136, 255);
    color: white;
    border-radius: 10px;
    font-size: 17px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    padding: 5px 12px;
}

.signup-button:hover {
    background-color: rgb(36, 81, 150);
    color: rgb(146, 145, 145);
    border-color: rgb(36, 81, 150);
}

.login-btn:hover {
    border: 2px solid;
    border-radius: 10px;
    border-color: rgb(57, 136, 255);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 136, 255, 0.2);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(57, 136, 255, 0.2);
}

nav a:not(.login-btn):hover {
    background-color: rgba(57, 136, 255, 0.1);
    transform: translateY(-2px);
}

nav a:not(.login-btn):active {
    transform: translateY(0);
}

.logo-card {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            rgb(57, 136, 255) 80%);
    width: 100vw;
    height: 90vh;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logo-content h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 48px;
    margin-bottom: 15px;
}

.logo-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.logo-card h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 42px;
}

.info-content {
    background-color: white;
    width: 100vw;
    height: auto;
    /* let it grow with content */
    padding: 50px 20px;
    /* add some vertical spacing */
}

.info-content p {
    margin-top: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

.info-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-bottom: 50px;
}

.info-card h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 32px;
    color: rgb(0, 15, 37);
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.get-started-btn {
    border: 2px solid white;
    background-color: white;
    color: rgb(57, 136, 255);
    border-radius: 10px;
    font-size: 15px;
    padding: 10px 12px;
    cursor: pointer;
}

.crime-map-btn {
    border: 2px solid white;
    background-color: white;
    color: rgb(57, 136, 255);
    border-radius: 10px;
    font-size: 15px;
    padding: 10px 12px;
    cursor: pointer;
}

.get-started-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.crime-map-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
}


.get-started-btn,
.crime-map-btn {
    transition: all 0.2s ease;
}

.get-started-btn:active,
.crime-map-btn:active {
    opacity: 0.6;
}

.box-card {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.box-card-content {
    width: 250px;
    height: 250px;
    border: 1px solid;
    border-radius: 10px;
    border-color: rgb(206, 206, 206);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: white;
}

.box-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.1) 0%, rgba(57, 136, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.box-card-content:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(57, 136, 255, 0.3);
    border-color: rgb(57, 136, 255);
}

.box-card-content:hover::before {
    opacity: 1;
}

.box-card-content:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 10px rgba(57, 136, 255, 0.4));
}

.box-card-content:hover h2 {
    color: rgb(57, 136, 255);
    transform: translateY(-3px);
}

.box-card-content:hover p {
    color: #333;
}

.box-card h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(0, 15, 37);
    transition: all 0.3s ease;
}

.box-card-content p {
    margin-top: auto;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*For small screens*/
@media (max-width: 600px) {
    .box-card {
        flex-direction: column;
        align-items: center;
    }
}

.ad-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding: 60px 20px;
}

/*Ad card content*/
.ad-card-content {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            rgb(57, 136, 255) 80%);
    border-radius: 20px;
    max-width: 1500px;
    width: 90%;
    min-height: auto;
    /* allow auto height */
    padding: 50px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: white;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-card-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.ad-card-content h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
}

.ad-card-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
}

/*Button in the ad card*/
.btn-ad {
    border: 2px solid white;
    background-color: white;
    border-radius: 10px;
    color: rgb(57, 136, 255);
    font-size: 15px;
    padding: 10px 12px;
    margin-top: 20px;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
}

.btn:active {
    transition: all 0.2s ease;
}

.btn:active {
    opacity: 0.6;
}

/*For small screens*/
@media (max-width: 600px) {
    .ad-card-content {
        width: 95%;
        padding: 30px 20px;
        min-height: auto;
    }
}

.btn {
    border: 2px solid white;
    background-color: white;
    border-radius: 10px;
    color: rgb(57, 136, 255);
    font-size: 15px;
    padding: 10px 12px;
    margin-top: 20px;
}

/* Signup form */
.signup-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

}

.signup-form-contents {
    width: 350px;
    padding: 30px;
    border: 2px solid rgb(207, 207, 207);
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.signup-form-contents h1 {
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.signup-form-contents h2 {
    font-size: 14px;
    color: gray;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.signup-form-contents a {
    text-decoration: none;
}

.signup-form-contents a:hover {
    color: rgb(0, 0, 145);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background-color: rgb(57, 136, 255);
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: rgb(36, 81, 150);
}


/*Login form */
.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

}

.login-form-contents {
    width: 350px;
    padding: 30px;
    border: 2px solid rgb(207, 207, 207);
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-form-contents h1 {
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-form-contents h2 {
    font-size: 14px;
    color: gray;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-form-contents a {
    text-decoration: none;
}

.login-form-contents a:hover {
    color: rgb(0, 0, 145);
}


.google-btn {
    width: 100%;
    height: 45px;
    border: 2px solid #dadada;
    border-radius: 8px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.google-btn img {
    width: 22px;
    height: 22px;
}

.google-btn:hover {
    background-color: #f1f1f1;
}

.divider {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    color: #777;
}



/* Dashboard styling */
.dashboard-hero {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            rgb(57, 136, 255) 80%);
    color: white;
    text-align: center;
    padding: 80px 20px 50px 20px;
}

.dashboard-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.dashboard-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature cards grid */
.dashboard-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
}

.feature-card {
    background-color: white;
    width: 260px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 5px 15px 25px rgba(0, 0, 0, 0.3);
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.feature-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feature-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.feature-btn {
    border: none;
    border-radius: 12px;
    background-color: rgb(57, 136, 255);
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.feature-btn:hover {
    background-color: rgb(36, 81, 150);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-features {
        flex-direction: column;
        align-items: center;
    }
}

/* Crime Report - Modern Design */
.report-hero {
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    text-align: center;
    padding: 120px 20px 80px 20px;
    position: relative;
    overflow: hidden;
}

.report-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.report-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.report-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.report-form-wrapper {
    max-width: 800px;
    margin: -40px auto 60px auto;
    padding: 0;
    background-color: transparent;
    position: relative;
}

.report-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

.report-form .form-group {
    margin-bottom: 25px;
}

.report-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.report-form .form-group input,
.report-form .form-group select,
.report-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.report-form .form-group input:focus,
.report-form .form-group select:focus,
.report-form .form-group textarea:focus {
    outline: none;
    border-color: #3988FF;
    box-shadow: 0 0 0 3px rgba(57, 136, 255, 0.1);
}

.report-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.location-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.location-group>div {
    display: flex;
    flex-direction: column;
}

.location-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.location-group input {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.location-group input:focus {
    outline: none;
    border-color: rgb(57, 136, 255);
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(57, 136, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(57, 136, 255, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    display: none;
    padding: 20px 24px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
    animation: slideInDown 0.5s ease;
}

.error-message {
    display: none;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FF4757 0%, #e74c3c 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
    animation: slideInDown 0.5s ease;
}

.location-btn {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    font-weight: 500;
}

.location-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.required {
    color: #f44336;
    font-weight: bold;
}

@media (max-width: 768px) {
    .report-form-wrapper {
        margin: -20px 20px 40px 20px;
        padding: 30px 20px;
    }

    .location-group {
        grid-template-columns: 1fr;
    }
}

/* Alerts Page Styles */
.alerts-hero {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            rgb(57, 136, 255) 80%);
    color: white;
    text-align: center;
    padding: 80px 20px 50px 20px;
}

.alerts-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alerts-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alerts-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.alerts-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: rgb(57, 136, 255);
}

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

.alert-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.alert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.alert-type {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-time {
    color: #666;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-body {
    padding: 20px;
}

.alert-body h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.alert-detail {
    font-size: 14px;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-detail strong {
    color: #333;
}

.view-on-map-btn {
    padding: 12px 24px;
    background-color: rgb(57, 136, 255);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.view-on-map-btn:hover {
    background-color: rgb(36, 81, 150);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

.no-alerts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-alerts h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-alerts p {
    font-size: 16px;
    color: #999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .alerts-filters {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .alert-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* AI Input Section - Modern Design */
.ai-input-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 25px;
    color: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

.ai-input-section h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    color: #1a1a1a;
}

.ai-subtitle {
    margin: 0 0 25px 0;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #666;
}

.input-method-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background-color: #f8f9fa;
    color: #666;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background-color: rgba(57, 136, 255, 0.1);
    border-color: #3988FF;
    color: #3988FF;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    border-color: #3988FF;
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .form-group {
    margin-bottom: 15px;
}

.tab-content .form-group label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.tab-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tab-content textarea:focus {
    outline: none;
    border-color: #3988FF;
    box-shadow: 0 0 0 3px rgba(57, 136, 255, 0.1);
}

.ai-analyze-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

.ai-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 136, 255, 0.4);
}

.ai-analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Voice Recorder */
.voice-recorder {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.voice-status {
    margin-bottom: 20px;
}

.status-icon {
    display: block;
    margin: 0 auto 15px auto;
}

.status-text {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.voice-btn {
    padding: 14px 28px;
    background-color: white;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.voice-btn:hover {
    transform: scale(1.05);
}

.voice-btn.recording {
    background-color: #e74c3c;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.voice-transcript {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    color: #333;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Photo Upload */
.photo-upload {
    text-align: center;
}

.photo-upload-label {
    display: block;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-label:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.upload-icon {
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.photo-preview {
    position: relative;
    margin-top: 20px;
}

.photo-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.remove-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-photo-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* AI Results - Modern Design */
.ai-results {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.05), rgba(90, 159, 255, 0.05));
    border-radius: 12px;
    color: #333;
    border: 2px solid rgba(57, 136, 255, 0.2);
}

.ai-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-icon {
    flex-shrink: 0;
    color: #3988FF;
}

.ai-results-header h4 {
    margin: 0;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: #1a1a1a;
}

.ai-results-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item strong {
    color: #3988FF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.crime-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

.result-item p {
    margin: 5px 0 0 0;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #666;
}

.use-ai-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.use-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.divider-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 30px 0;
}

@media (max-width: 768px) {
    .input-method-tabs {
        flex-direction: column;
    }
}

/* Map Search Bar */
.map-search-container {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.map-search-wrapper {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    gap: 10px;
}

.search-icon {
    flex-shrink: 0;
    color: #666;
}

.map-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 8px;
}

.map-search-btn {
    padding: 10px 20px;
    background-color: rgb(57, 136, 255);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.map-search-btn:hover {
    background-color: rgb(36, 81, 150);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

.map-search-btn:active {
    transform: translateY(0);
}

.search-results {
    margin-top: 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .map-search-container {
        width: 95%;
        top: 80px;
    }

    .map-search-wrapper {
        padding: 6px 10px;
    }

    .map-search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Alert Intensity Colors */
.alert-card.severity-critical {
    border-left: 5px solid #c0392b;
}

.alert-card.severity-high {
    border-left: 5px solid #e74c3c;
}

.alert-card.severity-medium {
    border-left: 5px solid #e67e22;
}

.alert-card.severity-low {
    border-left: 5px solid #f39c12;
}

.alert-card.severity-info {
    border-left: 5px solid #3498db;
}

.alert-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-timer svg {
    width: 16px;
    height: 16px;
}

.alert-timer.expiring-soon {
    color: #e74c3c;
    font-weight: 600;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.alert-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-severity-icon {
    width: 24px;
    height: 24px;
}

.alert-severity-icon.critical {
    color: #c0392b;
}

.alert-severity-icon.high {
    color: #e74c3c;
}

.alert-severity-icon.medium {
    color: #e67e22;
}

.alert-severity-icon.low {
    color: #f39c12;
}

.alert-severity-icon.info {
    color: #3498db;
}

/* Map marker pulse animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Trends Page Styles */
.trends-hero {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            rgb(57, 136, 255) 80%);
    color: white;
    text-align: center;
    padding: 80px 20px 50px 20px;
}

.trends-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.trends-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.trends-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Risk Search Section */
.risk-search-section {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.risk-search-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 8px 12px;
    gap: 10px;
    margin-bottom: 20px;
}

.area-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 8px;
}

.analyze-area-btn {
    padding: 10px 24px;
    background-color: rgb(57, 136, 255);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.analyze-area-btn:hover {
    background-color: rgb(36, 81, 150);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

/* Risk Result */
.risk-result {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    animation: fadeInUp 0.5s ease;
}

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.risk-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.risk-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.risk-badge.safe {
    background-color: #2ecc71;
    color: white;
}

.risk-badge.low {
    background-color: #27ae60;
    color: white;
}

.risk-badge.moderate {
    background-color: #f39c12;
    color: white;
}

.risk-badge.elevated {
    background-color: #e67e22;
    color: white;
}

.risk-badge.high {
    background-color: #e74c3c;
    color: white;
}

.risk-badge.critical {
    background-color: #c0392b;
    color: white;
}

.risk-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.risk-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.crime-breakdown {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
}

.crime-breakdown h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.crime-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crime-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crime-bar-label {
    min-width: 120px;
    font-size: 14px;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.crime-bar-track {
    flex: 1;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.crime-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-card-change {
    font-size: 13px;
    color: #999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Trends Section */
.trends-section {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.trends-section h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chart-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Time Analysis */
.time-analysis {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.time-period {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.time-period:hover {
    background-color: #e9ecef;
}

.time-period.active {
    background-color: rgb(57, 136, 255);
    color: white;
    border-color: rgb(57, 136, 255);
}

.time-period.active svg {
    stroke: white;
}

/* Safety Tips */
.safety-tips-section {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.safety-tips-section h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid rgb(57, 136, 255);
}

.tip-card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(57, 136, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.tip-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tip-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .risk-details {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .time-analysis {
        flex-direction: column;
    }
}

/* Police Dashboard Styles */
.police-alert-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    margin-bottom: 20px;
}

.police-alert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.police-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.priority-indicator {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-confirmed {
    background-color: #3498db;
    color: white;
}

.status-in-progress {
    background-color: #9b59b6;
    color: white;
}

.status-resolved {
    background-color: #2ecc71;
    color: white;
}

.police-alert-body {
    padding: 20px;
}

.police-alert-body h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    font-size: 14px;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.detail-item strong {
    color: #333;
}

.alert-description {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.alert-description strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.alert-description p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.police-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.action-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.confirm-btn {
    background-color: #3498db;
    color: white;
}

.confirm-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.progress-btn {
    background-color: #9b59b6;
    color: white;
}

.progress-btn:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.resolve-btn {
    background-color: #2ecc71;
    color: white;
}

.resolve-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.map-btn {
    background-color: #34495e;
    color: white;
}

.map-btn:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

@media (max-width: 768px) {
    .alert-details-grid {
        grid-template-columns: 1fr;
    }

    .police-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Cases Library Button */
.cases-library-btn {
    padding: 12px 20px;
    background-color: rgb(57, 136, 255);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cases-library-btn:hover {
    background-color: rgb(36, 81, 150);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

/* Status Text */
.status-text {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-confirmed {
    background-color: #3498db;
    color: white;
}

.status-in-progress {
    background-color: #9b59b6;
    color: white;
}

.status-resolved {
    background-color: #2ecc71;
    color: white;
}

/* Cases Modal */
.cases-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.cases-modal-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.cases-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.cases-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal-btn:hover {
    background-color: #f0f0f0;
}

.cases-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.case-tab {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
}

.case-tab:hover {
    background-color: #e9ecef;
}

.case-tab.active {
    background-color: rgb(57, 136, 255);
    color: white;
    border-color: rgb(57, 136, 255);
}

.cases-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.case-item {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

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

.case-id {
    font-weight: 700;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.case-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.case-item-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.case-type {
    font-weight: 600;
    color: #555;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.case-date,
.case-location {
    font-size: 13px;
    color: #777;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .cases-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .cases-modal-header,
    .cases-tabs,
    .cases-list {
        padding: 15px 20px;
    }

    .cases-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Delete Case Button */
.delete-case-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.delete-case-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to elements */
nav {
    animation: slideInUp 0.5s ease;
}

.logo-card,
.dashboard-hero,
.alerts-hero,
.report-hero,
.trends-hero {
    animation: fadeIn 0.8s ease;
}

.logo-content h1 {
    animation: slideInUp 0.6s ease 0.2s both;
}

.logo-content p {
    animation: slideInUp 0.6s ease 0.4s both;
}

.hero-buttons {
    animation: slideInUp 0.6s ease 0.6s both;
}

.info-card {
    animation: fadeIn 0.8s ease 0.3s both;
}

.box-card-content {
    animation: scaleIn 0.5s ease both;
}

.box-card-content:nth-child(1) {
    animation-delay: 0.1s;
}

.box-card-content:nth-child(2) {
    animation-delay: 0.2s;
}

.box-card-content:nth-child(3) {
    animation-delay: 0.3s;
}

.box-card-content:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card {
    animation: slideInUp 0.5s ease both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.login-form-contents,
.signup-form-contents {
    animation: scaleIn 0.6s ease;
}

.report-form-wrapper {
    animation: slideInUp 0.6s ease;
}

.ai-input-section {
    animation: slideInUp 0.5s ease;
}

.stat-card {
    animation: slideInUp 0.5s ease both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Logo animation */
.main-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-logo img {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ============================================ */

/* Tablets and below */
@media (max-width: 1024px) {
    .dashboard-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .trends-container {
        padding: 0 15px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
    }

    .main-logo {
        font-size: 16px;
    }

    .main-logo img {
        width: 30px;
        height: 30px;
    }

    .links {
        gap: 10px;
    }

    nav a {
        font-size: 14px;
        padding: 0 8px;
    }

    /* Hero sections */
    .logo-card,
    .dashboard-hero,
    .alerts-hero,
    .report-hero,
    .trends-hero {
        padding: 60px 15px 40px 15px;
    }

    .logo-content h1,
    .dashboard-hero h1,
    .alerts-hero h1,
    .report-hero h1,
    .trends-hero h1 {
        font-size: 28px;
    }

    .logo-content p,
    .dashboard-hero p,
    .alerts-hero p,
    .report-hero p,
    .trends-hero p {
        font-size: 16px;
    }

    /* Feature cards */
    .dashboard-features {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .feature-card {
        width: 100%;
    }

    /* Forms */
    .login-form-contents,
    .signup-form-contents {
        width: 90%;
        padding: 25px 20px;
    }

    .report-form-wrapper {
        margin: -20px 15px 40px 15px;
        padding: 25px 20px;
    }

    /* AI Input Section */
    .ai-input-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .input-method-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    /* Alerts */
    .alerts-container {
        padding: 0 15px;
    }

    .alerts-filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-select,
    .cases-library-btn {
        width: 100%;
    }

    /* Map search */
    .map-search-container {
        width: 95%;
        top: 75px;
    }

    .map-search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .map-search-input {
        width: 100%;
    }

    .map-search-btn {
        width: 100%;
    }

    /* Trends */
    .risk-search-section,
    .trends-section,
    .safety-tips-section {
        padding: 20px 15px;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .analyze-area-btn {
        width: 100%;
    }

    /* Police alerts */
    .police-alert-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-header-left {
        flex-wrap: wrap;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .main-logo {
        font-size: 14px;
    }

    .links {
        width: 100%;
        justify-content: center;
    }

    .logo-content h1,
    .dashboard-hero h1 {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .get-started-btn,
    .crime-map-btn {
        width: 100%;
    }

    .box-card {
        padding: 30px 0;
    }

    .box-card-content {
        width: 100%;
        max-width: 280px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {

    button,
    a,
    .tab-btn,
    .action-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Better spacing on mobile */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 18px;
    }

    .alert-card,
    .police-alert-card {
        margin-bottom: 15px;
    }
}

/* Notifications Banner */
.notifications-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-notifications-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-notifications-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeInUp 0.3s ease;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon.confirmed {
    background-color: #3498db;
}

.notification-icon.in-progress {
    background-color: #9b59b6;
}

.notification-icon.resolved {
    background-color: #2ecc71;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notification-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notification-time {
    font-size: 12px;
    color: #999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ============================================
   SAFETY CHECKER SECTION
   ============================================ */

.safety-checker-section {
    max-width: 1000px;
    margin: -30px auto 50px auto;
    padding: 0 20px;
}

.safety-checker-card {
    background-color: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.6s ease;
}

.safety-checker-card h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
}

.safety-checker-card>p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.safety-search-wrapper {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 8px 12px;
    gap: 10px;
    margin-bottom: 20px;
}

.safety-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 8px;
}

.current-location-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-location-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.check-safety-btn {
    padding: 10px 24px;
    background-color: rgb(57, 136, 255);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.check-safety-btn:hover {
    background-color: rgb(36, 81, 150);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.3);
}

.check-safety-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Current Location Alert */
.current-location-alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: slideInDown 0.5s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-location-alert.safe {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.current-location-alert.unsafe {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.current-location-alert svg {
    flex-shrink: 0;
}

.current-location-alert-content {
    flex: 1;
}

.current-location-alert-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.current-location-alert-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Safety Result */
.safety-result {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    animation: fadeInUp 0.5s ease;
}

.safety-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.safety-result-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.safety-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-badge.safe {
    background-color: #2ecc71;
    color: white;
}

.safety-badge.unsafe {
    background-color: #e74c3c;
    color: white;
}

.safety-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.safety-stat {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.safety-stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.safety-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.common-crimes {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
}

.common-crimes h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.crime-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crime-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.crime-item-name {
    font-size: 15px;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.crime-item-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background-color: #e9ecef;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .safety-checker-section {
        margin: -20px 20px 40px 20px;
    }

    .safety-checker-card {
        padding: 25px 20px;
    }

    .safety-search-wrapper {
        flex-wrap: wrap;
    }

    .safety-search-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .current-location-btn,
    .check-safety-btn {
        flex: 1;
    }

    .safety-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   POLICE DASHBOARD RED THEME
   ============================================ */

/* Police Dashboard Hero - Red Theme */
body:has(#police-dashboard) .dashboard-hero,
.police-dashboard-hero {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            #e74c3c 80%) !important;
}

/* Police Navigation Hover - Red Theme */
body:has(#police-dashboard) nav a:not(.login-btn):hover {
    background-color: rgba(231, 76, 60, 0.1);
}

body:has(#police-dashboard) .login-btn:hover {
    border-color: #e74c3c;
}

/* Police Feature Cards - Red Accents */
body:has(#police-dashboard) .feature-btn {
    background-color: #e74c3c;
}

body:has(#police-dashboard) .feature-btn:hover {
    background-color: #c0392b;
}

body:has(#police-dashboard) .feature-card:hover {
    box-shadow: 5px 15px 25px rgba(231, 76, 60, 0.3);
}

/* Police Alerts Page - Red Theme */
body:has(#police-alerts-page) .alerts-hero {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            #e74c3c 80%) !important;
}

body:has(#police-alerts-page) .cases-library-btn {
    background-color: #e74c3c;
}

body:has(#police-alerts-page) .cases-library-btn:hover {
    background-color: #c0392b;
}

body:has(#police-alerts-page) .case-tab.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* Police Trends Page - Red Theme */
body:has(#police-trends-page) .trends-hero {
    background: radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            #e74c3c 80%) !important;
}

body:has(#police-trends-page) .analyze-area-btn {
    background-color: #e74c3c;
}

body:has(#police-trends-page) .analyze-area-btn:hover {
    background-color: #c0392b;
}

body:has(#police-trends-page) .time-period.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* ============================================
   SAFETY PAGE SPECIFIC STYLES
   ============================================ */

.safety-page-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.quick-search-section {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    animation: slideInUp 0.6s ease 0.2s both;
}

.quick-search-section h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quick-search-section>p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quick-search-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-search-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quick-search-btn:hover {
    background: linear-gradient(135deg, rgb(57, 136, 255) 0%, rgb(36, 81, 150) 100%);
    color: white;
    border-color: rgb(57, 136, 255);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 136, 255, 0.3);
}

.quick-search-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .safety-page-container {
        padding: 0 15px;
    }

    .quick-search-buttons {
        grid-template-columns: 1fr;
    }
}


/* Loading Animation */
.auth-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-loader-overlay.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: rgb(57, 136, 255);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: rgba(57, 136, 255, 0.6);
    animation-delay: 0.15s;
}

.spinner-ring:nth-child(3) {
    border-top-color: rgba(57, 136, 255, 0.3);
    animation-delay: 0.3s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    color: rgb(57, 136, 255);
    font-weight: 600;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* Universal Loading Screen */
.page-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.95) 0%, rgba(36, 81, 150, 0.95) 100%);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.page-loader-overlay.active {
    display: flex;
}

.page-loader-content {
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-radius: 50%;
    animation: rotate 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-circle:nth-child(1) {
    border-top-color: white;
    animation-delay: 0s;
}

.loader-circle:nth-child(2) {
    border-right-color: rgba(255, 255, 255, 0.7);
    animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
    border-bottom-color: rgba(255, 255, 255, 0.5);
    animation-delay: 0.4s;
}

.loader-circle:nth-child(4) {
    border-left-color: rgba(255, 255, 255, 0.3);
    animation-delay: 0.6s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    animation: fadeInOut 2s ease-in-out infinite;
}

.loader-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        margin-left: 0;
    }

    50% {
        width: 70%;
        margin-left: 15%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* =
===========================================
   ENHANCED LANDING PAGE STYLES
   ============================================ */

/* Landing Navigation */
.landing-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(57, 136, 255, 0.1);
}

.logo-pulse {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    font-weight: 600;
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3988FF, #5A9FFF);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #5A9FFF, #3988FF);
    bottom: -100px;
    left: -50px;
    animation-delay: 5s;
}

.hero-circle-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FF4757, #ff6b7a);
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.1), rgba(90, 159, 255, 0.1));
    border: 1px solid rgba(57, 136, 255, 0.2);
    border-radius: 50px;
    color: #3988FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: slideInDown 0.8s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #1a1a1a;
    animation: slideInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 50%, #FF4757 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: slideInUp 0.8s ease 0.6s both;
}

.cta-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(57, 136, 255, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(57, 136, 255, 0.4);
}

.cta-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: white;
    color: #3988FF;
    border: 2px solid #3988FF;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: #3988FF;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(57, 136, 255, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #3988FF;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.1), rgba(90, 159, 255, 0.1));
    border: 1px solid rgba(57, 136, 255, 0.2);
    border-radius: 50px;
    color: #3988FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-modern {
    padding: 35px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    border-color: #3988FF;
    box-shadow: 0 20px 50px rgba(57, 136, 255, 0.15);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-icon-wrapper.blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.feature-icon-wrapper.blue img,
.feature-icon-wrapper.blue svg {
    filter: brightness(0) invert(1);
}

.feature-icon-wrapper.purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.feature-icon-wrapper.purple img,
.feature-icon-wrapper.purple svg {
    filter: brightness(0) invert(1);
}

.feature-icon-wrapper.green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.feature-icon-wrapper.green img,
.feature-icon-wrapper.green svg {
    filter: brightness(0) invert(1);
}

.feature-icon-wrapper.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.feature-icon-wrapper.red img,
.feature-icon-wrapper.red svg {
    filter: brightness(0) invert(1);
}

.feature-card-modern:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    width: 35px;
    height: 35px;
}

.feature-card-modern h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.feature-card-modern p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.feature-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3988FF;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.feature-card-modern:hover .feature-link {
    gap: 12px;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s ease-in-out infinite;
}

.cta-circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.cta-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-delay: 7s;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-icon-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: bounce 2s ease-in-out infinite;
}

.cta-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.cta-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
}

.cta-btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: #3988FF;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-btn-secondary {
    padding: 12px 30px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    opacity: 0.95;
}

/* Footer */
.landing-footer {
    padding: 60px 20px 30px;
    background: #1a1a1a;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 700;
}

.footer-tagline {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3988FF;
}

.footer-links span {
    color: #666;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
    padding-top: 30px;
    border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 15px;
    }
}


/* ============================================
   MODERN DASHBOARD STYLES
   ============================================ */

.dashboard-page {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(57, 136, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-sizing: border-box;
}

.logout-btn-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF4757 0%, #ff6b7a 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.logout-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

/* Dashboard Hero */
.dashboard-hero-modern {
    position: relative;
    padding: 120px 40px 50px;
    overflow: hidden;
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(57, 136, 255, 0.08);
    border-radius: 50px;
    color: #3988FF;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: slideInDown 0.6s ease;
}

.dashboard-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    animation: slideInUp 0.6s ease 0.2s both;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.6s ease 0.4s both;
}

/* Dashboard Divider */
.dashboard-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 40px;
    animation: fadeIn 0.8s ease 0.6s both;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(57, 136, 255, 0.2), transparent);
}

.divider-icon {
    margin: 0 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.1), rgba(90, 159, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3988FF;
    box-shadow: 0 4px 12px rgba(57, 136, 255, 0.15);
}

/* Dashboard Features Section */
.dashboard-features-modern {
    padding: 50px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-dashboard {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-dashboard h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.section-header-dashboard p {
    font-size: 15px;
    color: #666;
}

.features-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.feature-card-dashboard {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card-dashboard:hover {
    transform: translateY(-6px);
    border-color: #3988FF;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.feature-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge.new {
    background: #FF4757;
    color: white;
}

.feature-badge.popular {
    background: #3988FF;
    color: white;
}

.feature-icon-wrapper.orange {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.feature-icon-wrapper.orange img,
.feature-icon-wrapper.orange svg {
    filter: brightness(0) invert(1);
}

.feature-icon-wrapper.emergency {
    background: linear-gradient(135deg, #FF4757 0%, #e74c3c 100%);
}

.feature-icon-wrapper.emergency svg {
    stroke: white;
    filter: none;
}

.feature-card-dashboard h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-card-dashboard p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: auto;
    flex-grow: 1;
}

.feature-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3988FF;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
    margin-top: 18px;
}

.feature-card-dashboard:hover .feature-action {
    gap: 12px;
}

/* Dashboard Tips */
.dashboard-tips {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #3988FF;
}

.tips-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tip-item:hover {
    border-color: #3988FF;
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tip-item svg {
    flex-shrink: 0;
    color: #2ecc71;
}

.tip-item span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-nav {
        padding: 15px 20px;
    }
    
    .dashboard-hero-modern {
        padding: 100px 20px 40px;
    }
    
    .dashboard-title {
        font-size: 32px;
    }
    
    .dashboard-subtitle {
        font-size: 16px;
    }
    
    .quick-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-card-mini {
        width: 100%;
    }
    
    .dashboard-features-modern {
        padding: 30px 20px 60px;
    }
    
    .section-header-dashboard h2 {
        font-size: 28px;
    }
    
    .features-grid-dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tips {
        padding: 0 20px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for dashboard elements */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ============================================
   EMERGENCY CONTACTS MODAL
   ============================================ */

.emergency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.emergency-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emergency-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
}

.emergency-modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-emergency-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-emergency-btn:hover {
    background: #FF4757;
    color: white;
    transform: rotate(90deg);
}

.country-selector {
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.05), rgba(90, 159, 255, 0.05));
    border-bottom: 1px solid #f0f0f0;
}

.country-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.country-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-selector select:focus {
    outline: none;
    border-color: #3988FF;
    box-shadow: 0 0 0 3px rgba(57, 136, 255, 0.1);
}

.emergency-contacts-list {
    padding: 30px;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.country-info svg {
    color: #3988FF;
}

.country-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #3988FF;
    box-shadow: 0 8px 24px rgba(57, 136, 255, 0.15);
    transform: translateY(-3px);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-header svg {
    color: #FF4757;
    flex-shrink: 0;
}

.contact-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.contact-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #3988FF;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-number:hover {
    color: #2870d4;
}

.contact-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Emergency Modal */
@media (max-width: 768px) {
    .emergency-modal-content {
        max-height: 95vh;
    }
    
    .emergency-modal-header {
        padding: 20px 20px 15px;
    }
    
    .emergency-modal-header h2 {
        font-size: 22px;
    }
    
    .country-selector {
        padding: 15px 20px;
    }
    
    .emergency-contacts-list {
        padding: 20px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-number {
        font-size: 20px;
    }
}


/* ============================================
   MODERN AUTH PAGES (LOGIN & SIGNUP)
   ============================================ */

.auth-page {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Auth Navigation */
.auth-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(57, 136, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.auth-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-link span {
    color: #3988FF;
    font-weight: 600;
    margin-left: 5px;
}

.auth-link:hover {
    color: #3988FF;
}

/* Auth Container */
.auth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.auth-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.auth-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3988FF, #5A9FFF);
    top: -150px;
    right: -100px;
}

.auth-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #5A9FFF, #3988FF);
    bottom: -100px;
    left: -80px;
    animation-delay: 5s;
}

/* Auth Content */
.auth-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

/* Left Side - Branding */
.auth-branding {
    animation: slideInLeft 0.8s ease;
}

.branding-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.1), rgba(90, 159, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(57, 136, 255, 0.15);
}

.branding-icon img {
    width: 50px;
    height: 50px;
}

.auth-branding h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.auth-branding > p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #666;
}

.branding-feature svg {
    flex-shrink: 0;
    color: #2ecc71;
}

/* Right Side - Form */
.auth-form-wrapper {
    animation: slideInRight 0.8s ease;
}

.auth-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #666;
}

/* Modern Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modern label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group-modern input,
.form-group-modern select {
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    transition: all 0.3s ease;
}

.form-group-modern input:focus,
.form-group-modern select:focus {
    outline: none;
    border-color: #3988FF;
    box-shadow: 0 0 0 3px rgba(57, 136, 255, 0.1);
}

.form-group-modern input::placeholder {
    color: #999;
}

/* Modern Buttons */
.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3988FF 0%, #5A9FFF 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(57, 136, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(57, 136, 255, 0.4);
}

.btn-google {
    background: white;
    color: #333;
    border: 2px solid #e8e8e8;
}

.btn-google:hover {
    border-color: #3988FF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e8e8e8, transparent);
}

.auth-divider span {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Form Footer */
.form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-footer p {
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #3988FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #2870d4;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Auth Pages */
@media (max-width: 968px) {
    .auth-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .auth-branding {
        text-align: center;
    }
    
    .branding-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .branding-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .auth-nav {
        padding: 15px 20px;
    }
    
    .auth-container {
        padding: 100px 15px 30px;
    }
    
    .auth-branding h2 {
        font-size: 28px;
    }
    
    .auth-form-card {
        padding: 30px 25px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
}


/* ============================================
   FEATURE DETAILS MODAL
   ============================================ */

.feature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.feature-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.close-feature-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-feature-btn:hover {
    background: #FF4757;
    color: white;
    transform: rotate(90deg);
}

.feature-modal-header {
    text-align: center;
    padding: 50px 40px 30px;
    background: linear-gradient(135deg, rgba(57, 136, 255, 0.05), rgba(90, 159, 255, 0.05));
}

.feature-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(57, 136, 255, 0.15);
}

.feature-modal-icon.blue {
    background: rgba(57, 136, 255, 0.1);
}

.feature-modal-icon.purple {
    background: rgba(155, 89, 182, 0.1);
}

.feature-modal-icon.orange {
    background: rgba(243, 156, 18, 0.1);
}

.feature-modal-icon.red {
    background: rgba(255, 71, 87, 0.1);
}

.feature-modal-icon.green {
    background: rgba(46, 204, 113, 0.1);
}

.feature-modal-icon.emergency {
    background: rgba(255, 71, 87, 0.1);
    color: #FF4757;
}

.feature-modal-icon img {
    width: 45px;
    height: 45px;
}

.feature-modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-modal-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.feature-modal-features {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-detail-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-detail-card:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.feature-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-detail-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.feature-detail-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.feature-modal-cta {
    padding: 30px 40px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

/* Responsive Feature Modal */
@media (max-width: 768px) {
    .feature-modal-content {
        max-height: 95vh;
    }
    
    .feature-modal-header {
        padding: 40px 25px 25px;
    }
    
    .feature-modal-header h2 {
        font-size: 24px;
    }
    
    .feature-modal-features {
        padding: 25px 20px;
    }
    
    .feature-detail-card {
        padding: 15px;
    }
    
    .feature-modal-cta {
        padding: 25px 20px;
    }
}


/* ============================================
   ANIMATED PAGE BACKGROUND
   ============================================ */

.report-page {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    animation: floatShape 25s ease-in-out infinite;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3988FF, #5A9FFF);
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #5A9FFF, #3988FF);
    bottom: 20%;
    left: -80px;
    animation-delay: 8s;
}

.bg-shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #FF4757, #ff6b7a);
    top: 60%;
    right: 15%;
    animation-delay: 15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

/* Animated Dots Pattern */
.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(57, 136, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveDots 60s linear infinite;
}

@keyframes moveDots {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Modern Navigation for Report Page */
.modern-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(57, 136, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(57, 136, 255, 0.1);
    color: #3988FF;
}

/* Report Hero with Background */
.report-hero {
    position: relative;
    z-index: 1;
}

.report-hero-content {
    position: relative;
    z-index: 1;
}

.report-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form Cards with Subtle Animation */
.ai-input-section,
.report-form {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.ai-input-section {
    animation-delay: 0.2s;
}

.report-form {
    animation-delay: 0.4s;
}

/* Responsive Animations */
@media (max-width: 768px) {
    .bg-shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .bg-shape-2 {
        width: 200px;
        height: 200px;
    }
    
    .bg-shape-3 {
        width: 150px;
        height: 150px;
    }
    
    .modern-nav {
        padding: 15px 20px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .bg-shape,
    .bg-dots {
        animation: none;
    }
}


/* Forgot Password Link */
.forgot-password-link {
    margin-top: 8px;
    text-align: right;
}

.forgot-password-link a {
    color: #3988FF;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover {
    color: #2970e0;
    text-decoration: underline;
}


/* Password Reset Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.auth-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: #f5f5f5;
}

.close-modal-btn svg {
    stroke: #666;
}

.auth-modal-body {
    padding: 30px;
}

.auth-modal-body p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.auth-modal-body .form-group-modern {
    margin-bottom: 20px;
}

.auth-modal-body .btn-modern {
    margin-top: 10px;
}

.reset-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.reset-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.reset-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
