/* Global Styles */
:root {
    --primary-color: #ff4081;
    --primary-dark: #f50057;
    --primary-light: #ff80ab;
    --secondary-color: #3f51b5;
    --secondary-light: #7986cb;
    --text-color: #2c3e50;
    --background-color: #f8f9fa;
    --sidebar-width: 280px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Sidebar Styles */
#sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--card-shadow);
    position: fixed;
    height: 100vh;
    transition: transform var(--transition-speed) ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
}

.nav-links li {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-links li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-links li.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.nav-links li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: white;
}

.nav-links li i {
    margin-right: 15px;
    width: 20px;
    font-size: 1.2rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background: var(--background-color);
}

.top-bar {
    background: white;
    color: var(--text-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
    transition: color var(--transition-speed);
}

#menu-toggle:hover {
    color: var(--primary-color);
}

#content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Form Styles */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 16px;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Login and Register Forms */
.auth-container,
.user-auth-container,
.vol-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.auth-card,
.user-auth-card,
.vol-auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.auth-card:hover,
.user-auth-card:hover,
.vol-auth-card:hover {
    transform: translateY(-5px);
}

.auth-header,
.user-auth-header,
.vol-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i,
.user-auth-header i,
.vol-auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h3,
.user-auth-header h3,
.vol-auth-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    outline: none;
}

.auth-btn,
.user-auth-btn,
.vol-auth-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn:hover,
.user-auth-btn:hover,
.vol-auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.auth-links,
.user-auth-links,
.vol-auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .auth-card,
    .user-auth-card,
    .vol-auth-card {
        background: #1e1e1e;
    }

    .form-group label {
        color: #fff;
    }

    .form-group input {
        background: #2d2d2d;
        border-color: #333;
        color: #fff;
    }

    .form-group input:focus {
        border-color: var(--primary-color);
    }

    .form-footer {
        color: #aaa;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container,
    .user-auth-container,
    .vol-auth-container {
        padding: 1rem;
    }

    .auth-card,
    .user-auth-card,
    .vol-auth-card {
        padding: 1.5rem;
    }
}

/* Emergency Button */
.emergency-btn {
    background: #f44336;
    padding: 20px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin: 1rem 0;
}

.emergency-btn:hover {
    background: #d32f2f;
}

/* Profile Styles */
.profile-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    padding: 4px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.profile-photo img:hover {
    transform: scale(1.05);
}

/* Safety Techniques */
.technique {
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(255, 64, 129, 0.05);
    border-radius: 0 8px 8px 0;
    transition: transform var(--transition-speed);
}

.technique:hover {
    transform: translateX(5px);
}

.technique h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.technique p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.video-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.video-link:hover {
    color: var(--primary-dark);
}

.video-link i {
    margin-right: 5px;
}

/* Grid System */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Snackbar */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar.success {
    background-color: #4CAF50;
}

#snackbar.error {
    background-color: #f44336;
}

#snackbar.info {
    background-color: #2196F3;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Responsive Design */
/* Large screens (laptops/desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 6rem 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.4rem;
        max-width: 800px;
        margin: 0 auto 2rem;
    }

    .emergency-numbers {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }

    .tips-carousel {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Medium screens (tablets/smaller laptops, 768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-section {
        padding: 4rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .emergency-numbers {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tips-carousel {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .emergency-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Small screens (tablets/large phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .emergency-numbers {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tips-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-access, .features-section, .safety-tips-preview {
        padding: 1.5rem;
    }

    .emergency-card, .feature-card, .tip-card {
        padding: 1.25rem;
    }
}

/* Extra small screens (phones, less than 576px) */
@media (max-width: 575px) {
    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .emergency-numbers, .features-grid, .tips-carousel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-access, .features-section, .safety-tips-preview {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .emergency-card, .feature-card, .tip-card {
        padding: 1rem;
    }

    .emergency-card i {
        font-size: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .phone {
        font-size: 1.3rem;
    }
}

/* Fix for navigation on mobile */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        max-width: 300px;
        transform: translateX(-100%);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-bar {
        position: sticky;
        top: 0;
        z-index: 99;
        background: white;
    }

    #content {
        padding: 1rem;
    }
}

/* Landscape mode for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .emergency-numbers {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .emergency-card, .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
}

/* High-resolution screens (Retina displays) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 50%;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: none;
        color: black;
    }

    .hero-buttons, .feature-icon {
        display: none;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* Additional Enhancements */
.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.about-content li:last-child {
    border-bottom: none;
}

.ideas-container {
    margin-top: 2rem;
}

.ideas-container > div {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.status-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    text-align: center;
    display: none;
}

.status-message.show {
    display: block;
    animation: fadein 0.5s;
}

.report-form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.location-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.submit-button {
    background-color: #e91e63;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.submit-button:hover {
    background-color: #c2185b;
}

.about-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.about-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h4 i {
    font-size: 1.4rem;
}

.law-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.law-item h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.law-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.helpline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.helpline-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.helpline-item h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.phone {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.resource-item h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.resource-item p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.resource-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.resource-link:hover {
    background: var(--primary-color);
    color: white;
}

.rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.right-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.right-item h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.right-item p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .helpline-grid,
    .resource-grid,
    .rights-list {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 1rem;
    }
}

/* Emergency Page Styles */
.emergency-content {
    padding: 1rem;
}

.location-status {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.location-status p {
    margin-bottom: 0.5rem;
}

#locationDetails {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sos-button {
    background: #dc3545;
    color: white;
    padding: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.sos-button:hover {
    background: #c82333;
    transform: scale(1.02);
}

.sos-button i {
    font-size: 1.4rem;
}

.radius-indicator {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.emergency-contacts {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.emergency-contacts h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-contact-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.add-contact-btn:hover {
    background: var(--primary-dark);
}

.alert-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.alert-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h4 {
    color: #e91e63;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions button {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: background-color 0.3s;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

.confirm-btn {
    background-color: #e91e63;
    color: white;
}

.confirm-btn:hover {
    background-color: #c2185b;
}

@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .sos-button {
        font-size: 1rem;
        padding: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.remove-contact {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.remove-contact:hover {
    color: #c82333;
    transform: scale(1.1);
}

#emergencyContactsList {
    margin-bottom: 1rem;
}

#emergencyContactsList p {
    color: #666;
    text-align: center;
    padding: 1rem;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* App Info Styles */
.app-info {
    padding: 1rem 0;
}

.app-description {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 8px;
}

.app-description h5 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.app-description p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.app-mission {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(233, 30, 99, 0.1));
    border-radius: 8px;
}

.app-mission h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.app-mission p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-description h5 {
        font-size: 1.2rem;
    }
    
    .app-description p {
        font-size: 1rem;
    }
    
    .app-mission {
        padding: 1.5rem;
    }
}

/* Home Page Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.primary-btn {
    background: white;
    color: var(--primary-color);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
}

/* Emergency Numbers Section */
.quick-access {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.quick-access h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.emergency-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.emergency-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.emergency-card:hover {
    transform: translateY(-5px);
}

.emergency-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.emergency-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.emergency-card .phone {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.call-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    width: fit-content;
}

/* Features Section */
.features-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h4 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Safety Tips Preview */
.safety-tips-preview {
    background: white;
    padding: 2rem;
    border-radius: 15px;
}

.safety-tips-preview h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.tips-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.tip-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.tip-card p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .emergency-numbers, .features-grid, .tips-carousel {
        grid-template-columns: 1fr;
    }

    .quick-access, .features-section, .safety-tips-preview {
        padding: 1.5rem;
    }
}

/* Volunteer Page Styles */
.volunteer-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.volunteer-card {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.volunteer-card:hover {
    transform: translateY(-2px);
}

.volunteer-photo {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.volunteer-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border: 1px solid #fff;
    border-radius: 50%;
}

.volunteer-info {
    flex: 1;
}

.volunteer-info h4 {
    margin: 0 0 3px;
    color: #333;
    font-size: 14px;
}

.volunteer-info p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.volunteer-description {
    display: none;
}

@media (max-width: 768px) {
    .volunteer-cards {
        gap: 10px;
    }
    
    .volunteer-card {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .volunteer-card {
        flex: 1 1 100%;
    }
}

/* Volunteer Updates Section */
.volunteer-updates-section {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.post-form {
    margin-bottom: 2rem;
}

.post-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    resize: vertical;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

/* Chat Modal Styles */
.chat-modal {
    max-width: 500px;
    height: 600px;
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #4a90e2;
    color: white;
    border-radius: 8px 8px 0 0;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-input {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input textarea {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    height: 40px;
}

.chat-input button {
    background: #4a90e2;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    background: #357abd;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .volunteer-card,
    .volunteer-updates-section {
        background: #1e1e1e;
    }

    .volunteer-profile h4 {
        color: white;
    }

    .post-item {
        background: #2d2d2d;
    }

    .chat-messages {
        background: #2d2d2d;
    }

    .chat-input {
        background: #1e1e1e;
        border-top-color: #333;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .volunteer-list {
        grid-template-columns: 1fr;
    }

    .chat-modal {
        margin: 1rem;
        height: calc(100vh - 2rem);
    }
}

.section-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.volunteer-note {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border-left: 3px solid #4CAF50;
}

@media (prefers-color-scheme: dark) {
    .section-description {
        color: #aaa;
    }

    .volunteer-note {
        background: #2d2d2d;
        color: #aaa;
    }
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 10px;
}

.page-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.volunteer-description {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

.volunteer-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.volunteer-note a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .volunteer-description {
        color: #aaa;
    }
    
    .page-header {
        background: linear-gradient(135deg, var(--primary-dark), #2c0028);
    }
}

@media (max-width: 768px) {
    .page-header {
        margin: -1rem -1rem 1rem -1rem;
        border-radius: 0;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
}

.volunteer-profile-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.volunteer-profile-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.volunteer-profile-photo {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.volunteer-profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-upload {
    position: absolute;
    bottom: -5px;
    right: -5px;
    transform: scale(0.8);
}

.upload-btn {
    background: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.upload-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.volunteer-info {
    flex-grow: 1;
    text-align: left;
    color: #666;
}

.volunteer-info p {
    margin: 3px 0;
    font-size: 13px;
}

.volunteer-note {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
}

@media (max-width: 480px) {
    .volunteer-profile-section {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .volunteer-info {
        text-align: center;
    }

    .photo-upload {
        bottom: 0;
        right: 0;
    }
}

.volunteer-profiles {
    margin-bottom: 40px;
}

.volunteer-profiles h3,
.volunteer-updates h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.volunteer-updates {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

@media (max-width: 768px) {
    .volunteer-profiles {
        margin-bottom: 30px;
    }
    
    .volunteer-updates {
        margin-top: 30px;
        padding: 20px;
    }
} 