/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Navigation Styles */
nav {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4081;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #ff4081;
    color: white;
}

/* Form Container Styles */
.form-container {
    background: rgba(255, 255, 255, 0.884);
    backdrop-filter: blur(1px);
    max-width: 450px;
    margin: 120px auto 2rem;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-container h2 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #ff4081;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background-color: #ff4081;
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn.primary:hover {
    background-color: #f50057;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

.btn.primary:active {
    transform: translateY(0);
}

/* Link Styles */
.form-container p {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.form-container p a {
    color: #ff4081;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-container p a:hover {
    color: #f50057;
    text-decoration: underline;
}

/* Error Message Styles */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

/* Success Message Styles */
.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: #ff5252;
    width: 33%;
}

.password-strength.medium {
    background-color: #ffd740;
    width: 66%;
}

.password-strength.strong {
    background-color: #69f0ae;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 100px 1rem 2rem;
        padding: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff4081;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form Validation Styles */
input:invalid {
    border-color: #ff5252;
}

input:valid {
    border-color: #69f0ae;
}

/* Custom Checkbox Style */
input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Remember Me Style */
.remember-me {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
}



/* dashboard */


/* Dashboard specific styles */
.dashboard-container {

    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.btn.primary i {
    margin-left: 10px;
}

.location-status {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.location-status h3 {
    color: #ff4081;
    margin-bottom: 1rem;
}

#locationStatus {
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 5px;
    border-left: 4px solid #4caf50;
}

.emergency-contacts {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.emergency-contacts h3 {
    color: #ff4081;
    margin-bottom: 1.5rem;
}

#contactForm {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #ff4081;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.2);
}

.btn.primary {
    background-color: #ff4081;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.primary:hover {
    background-color: #f50057;
    color: white;
}

.sos-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sos-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

#contactsList {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.contact-card {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff4081;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    background-color: #ff4081;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

@media (max-width: 768px) {
    .dashboard-container {
        margin: 1rem;
        padding: 1rem;
    }

    .emergency-contacts {
        padding: 1rem;
    }

    .sos-button {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}












/* hero section */

/* Hero Section Enhancements */
.hero {
    background: linear-gradient(135deg, #122846c7 0%, #7e2d86be 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 50px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8rem;
    z-index: 2;
    position: relative;
}

.hero-text {
    flex: 1;
    color: white;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn.primary {
    background: white;
    color: #ff4081;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 600px; /* Added max-width constraint */
    margin: 0 auto; /* Center the image container */
}

.hero-image img {
    width: 100%;
    max-width: 600px; /* Reduced from 900px */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    height: auto; /* Maintain aspect ratio */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}



/* Features Section */
.features {
    padding: 8rem 2rem;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    color: #333;
    margin-bottom: 4rem;
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ff4081;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    height: 130px;
    margin-bottom: 15px;
    object-fit: cover;
}

.feature-card i {
    font-size: 2.5rem;
    color: #ff4081;
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ff4081;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #ff4081;
    border-radius: 2px;
}

.footer-section p {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff4081;
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: #ff4081;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.app-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: #ff4081;
}

.emergency {
    font-size: 1.1rem;
    margin-top: 20px;
}

.emergency span {
    color: #ff4081;
    font-weight: bold;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff4081;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .app-buttons {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {


    .cta-buttonsn {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .features {
        padding: 4rem 1rem;
    }
}

/* Animations */
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease;
    letter-spacing: -1px;
    line-height: 1.2;
}

.jio {
    flex-direction: column;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: fadeIn 1.2s ease;
    font-weight: 400;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}



.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.location-status {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.contact-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}







.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.sos-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.sos-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}


/* Emergency Contacts Styles */
.contact-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #ff4081;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin: 5px 0;
    color: #333;
}

.contact-info strong {
    color: #ff4081;
    font-size: 1.1em;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-btn:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.delete-btn i {
    font-size: 14px;
}

/* Delete Confirmation Toast */
.toast-delete {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Contacts */
@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .delete-btn {
        width: 100%;
        justify-content: center;
    }
}

/* about */

.about-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    color: #ff4081;
    font-size: 2rem;
    margin-bottom: 5px;
}
/* Add these styles */
.toggle-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.close-nav {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

@media screen and (max-width: 768px) {
    .toggle-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background-color: white;
        flex-direction: column;
        padding: 50px 20px;
        transition: 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        color: #1a1a1a;
    }

    .nav-links.active {
        left: 0;
    }

    .close-nav {
        display: block;
    }

    .nav-links a {
        margin: 15px 0;
    }
}
.stat p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }
}



/* video section */

.video-gallery {
    padding: 80px 20px;
    background: #f8f9fa;
}

.video-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    margin: 0;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #ff4081;
    color: white;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

.modal-content video {
    width: 100%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .close-btn {
        right: 0;
        top: -50px;
    }
}



/* show password */

.form-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.toggle-password i {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.toggle-password:hover {
    color: #ff4081;
}

.toggle-password:focus {
    outline: none;
}

.form-group input[type="password"],
.form-group input[type="text"] {
    padding-right: 45px;
}

/* Animation for icon change */
.toggle-password i {
    transition: all 0.3s ease;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}














/* Safety Resources Section */
.safety-resources {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px auto;
    max-width: 900px;
}

.safety-resources h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.resources-list {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.resource-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.resource-info h4 {
    color: #343a40;
    font-size: 18px;
    margin-bottom: 10px;
}

.resource-info p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.resource-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btnk {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.primaryk {
    background: #007bff;
    color: white;
}

.primaryk:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.secondaryg {
    background: #6c757d;
    color: white;
}

.secondaryg:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.save-contacts-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    background: #28a745;
    color: white;
    margin-top: 20px;
}

.save-contacts-btn:hover {
    background: #218838;
}

.save-contacts-btn i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .safety-resources {
        margin: 15px;
        padding: 20px;
    }

    .resource-actions {
        flex-direction: column;
    }

    .btnk {
        width: 100%;
        justify-content: center;
    }
}


.search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.search-container input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 200px;
}

.search-container button {
    padding: 8px 12px;
    background: #ff4081;
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background: #f50057;
}

.search-results {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.search-result-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .search-container {
        margin-right: 60px;
    }
    
    .search-container input {
        width: 150px;
    }
}






.contact-list {
    margin-top: 25px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}



.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
}

.contact-item strong {
    font-size: 18px;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.contact-item p {
    margin: 6px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.contact-item i {
    color: #ff4081;
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* .contact-item .btni.dangeri {
    background: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 15px;
   
} */

.contact-item .btni.dangeri:hover {
    background: #f50057;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 64, 129, 0.3);
}

.contact-item .btni.dangeri:active {
    transform: translateY(0);
}

.contact-item .btni.dangeri i {
    color: white;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

.contact-item.error {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 20px;
}

.contact-item.error p {
    color: #dc3545;
}

.contact-item.error .btni.primaryi {
    background: #dc3545;
}

.contact-item.error .btni.primaryi:hover {
    background: #c82333;
}

/* Custom scrollbar */
.contact-list::-webkit-scrollbar {
    width: 8px;
}

.contact-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-list::-webkit-scrollbar-thumb {
    background: #ff4081;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-list::-webkit-scrollbar-thumb:hover {
    background: #f50057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
   

   

    .contact-info {
        width: 100%;
    }

    .contact-item p {
        justify-content: center;
    }
}

.contact-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid #ff4081;
    display: flex;
    flex-direction: column;  /* Changed to column layout */
    gap: 15px;  /* Added gap between elements */
}

.contact-info {
    width: 100%;
    text-align: center;  /* Center align the text */
}

.contact-item .btni.dangeri {
    background: #ff4081;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    text-align: center;
    align-items: center;
    justify-content: center;  /* Center the button content */
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;  /* Make button full width */
    margin: 0;  /* Reset margin */
}

.contact-item p {
    justify-content: center;
    margin: 8px 0;
}

/* Remove the media query override since we're already in column layout */
@media (max-width: 768px) {
    .contact-item {
        text-align: center;
    }

    .contact-item .btni.dangeri {
        margin: 0;
    }
}












/* Account Dropdown Styles */
.account-dropdown {
    position: relative;
    display: inline-block;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}
.account-btn .arrow-icon {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.account-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}
.account-btn i {
    font-size: 1.1rem;
}

.account-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 1000;
    animation: dropdownFade 0.3s ease;
}
.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown-content a i {
    font-size: 1rem;
    color: #ff4081;
    width: 20px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #ff4081;
    padding-left: 25px;
}

.account-dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive styles for the dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        min-width: 100%;
    }

    .dropdown-content a {
        color: #1a1a1a;
        padding: 15px 20px;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 64, 129, 0.1);
    }

    .account-btn {
        padding: 15px 20px;
        justify-content: flex-start;
        width: 100%;
    }
}