body{
    margin:0;
    font-family:Poppins;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: white;
    text-align: center;
}
body.menu-open{
    overflow: hidden;
}


#particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.signature-text{
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;

    /* 🔥 signature glow */
    text-shadow: 0 0 10px rgb(31, 10, 222);
}


.logo-text{
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    color: #ffffff;
}

/* 🔥 hover effect */
.logo-text:hover{
    color: #ff0033;
    text-shadow: 0 0 15px #ff0033;
}


.sos-text{
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;

    /* 🔥 alert glow */
    text-shadow: 0 0 8px rgba(255,0,0,0.6);
}


.sos-btn {
    position: relative;
    overflow: hidden;
}

/* Wave effect */
.sos-btn::before, .sos-btn::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid red;
    animation: wave 2s infinite;
}

.sos-btn::after {
    animation-delay: 1s;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


body{
    margin:0;
    font-family:sans-serif;
    background:#111;
    color:white;
}

.settings-container{
    width:90%;
    max-width:500px;
    margin:auto;
    margin-top:20px;
}

.setting-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    background:#1a1a1a;
    padding:15px;
    margin:12px 0;
    border-radius:12px;
    border:1px solid rgba(255,0,0,0.2);
}

.setting-item h3{
    margin:0;
}

.setting-item p{
    margin:0;
    font-size:12px;
    color:#aaa;
}

/* SWITCH */
.switch{
    position:relative;
    width:50px;
    height:25px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    cursor:pointer;
    top:0; left:0;
    right:0; bottom:0;
    background:#444;
    border-radius:25px;
    transition:0.3s;
}

.slider:before{
    content:"";
    position:absolute;
    height:18px;
    width:18px;
    left:4px;
    top:3px;
    background:white;
    border-radius:50%;
    transition:0.3s;
}

input:checked + .slider{
    background:#ff0033;
}

input:checked + .slider:before{
    transform:translateX(24px);
}


#menuBox button{
    width: 100%;
    padding: 10px;
    background: #ff0033;
    color: white;
    border: none;
    border-radius: 5px;
}


.menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.menu button {
    padding: 10px 15px;
    border: none;
    background: #ff0033;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}


.page{
    display: none;
}

#dashboard{
    display: block;
}

#menuBox button{
    width: 100%;
    padding: 10px;
    background: #ff0033;
    color: white;
    border: none;
    border-radius: 5px;
}


/* HEADER */
.header{
    background:#ff0033;
    padding:10px;
}

/* MENU BUTTON */
.menu-btn{
    font-size:22px;
    background:none;
    border:none;
    color:white;
    cursor:pointer;
}





#overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
}

#overlay.active{
    display:block;
}


/* 🔥 overlay */
.emergency-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.8);
    display: none;

    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* box */
.panel-box {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px red;
    animation: popup 0.3s ease;
}

/* animation */
@keyframes popup {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.light-mode{
    background:#f5f5f5;
    color:#111;
}

.light-mode .header{
    background:linear-gradient(90deg,#ff5c5c,#ff9999);
}

.light-mode .container{
    background:white;
    color:black;
}

.light-mode button{
    background:#eee;
    color:black;
}

.light-mode .sidebar{
    background:#ddd;
}


/* SIDEBAR */
/* SIDE MENU */
.sidebar{
    position: fixed;
    top: 0;          /* 👈 important */
    left: -250px;
    width: 220px;
    height: 100vh;   /* 👈 full height */
    background: #111;
    padding: 60px 15px 20px; /* 👈 top space diya (header ke niche) */
    transition: 0.3s;
    z-index: 9999;
}

/* OPEN MENU */
.sidebar.active{
    left: 0;   /* ✅ slide in */
}

/* BUTTONS */
.sidebar button{
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: #ff0033;
    color: white;
    border: none;
    border-radius: 6px;
}

.sidebar button:hover{
    background: #ff0033;
}

/* OVERLAY */
#overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

#overlay.active{
    display: block;
}




/* buttons */
.call-btn {
    display: block;
    width: 220px;
    margin: 10px auto;
    padding: 12px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.police { background: #0066ff; }
.ambulance { background: #00aa55; }
.fire { background: #ff3300; }

.close-btn {
    margin-top: 15px;
    background: red;
    padding: 10px;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}


/* 🚨 Emergency Box */
.emergency-box {
    background: #1a1a1a;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255,0,0,0.3);
}

/* Grid layout */
.call-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Buttons */
.call-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

/* Individual colors */
.police {
    background: #0066ff;
}
.ambulance {
    background: #00aa55;
}
.fire {
    background: #ff3300;
}

/* Hover effect */
.call-btn:hover {
    transform: scale(1.1);
}


#tapFeedback {
    position: fixed;
    top: 120px;
    left: 20px;
    background: rgba(255, 0, 51, 0.2); /* 👉 transparent */
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    border: 1px solid rgba(255,0,51,0.5);
    box-shadow: 0 0 10px rgba(255,0,51,0.4);

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}



#map {
    width: 100%;
    height: 300px;
    margin-top: 20px;
}

.logo {
    font-size: 28px;
    margin-right: 10px;
}

.header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header {
    background: linear-gradient(270deg, #ff0033, #000, #ff0033);
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% }
    50% { background-position: 100% }
    100% { background-position: 0% }
}


/* 🌙 DARK DEFAULT */
body{
    background:#111;
    color:white;
}

/* ☀️ LIGHT MODE */
body.light-mode{
    background:#f5f5f5;
    color:#111;
}

/* buttons bhi change ho */
body.light-mode button{
    background:#ddd;
    color:#111;
}


#overlay{
    display:none;
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background:rgba(0,0,0,0.5);
}

body.menu-open #overlay{
    display:block;
}


/* 🔥 MODAL BACKGROUND */
.pin-modal{
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    z-index: 999;
}

/* 📦 BOX */
.pin-box{
    background: #111;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    animation: fadeIn 0.3s ease;
}

/* 🔑 INPUT */
.pin-input{
    display: flex;
    align-items: center;
    background: #222;
    padding: 10px;
    border-radius: 10px;
    margin: 15px 0;
}

.pin-input input{
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 20px;
    outline: none;
}

.pin-input span{
    cursor: pointer;
}

/* 🔘 BUTTON */
.verify-btn{
    width: 100%;
    padding: 10px;
    background: #ff0033;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

/* ❌ ERROR SHAKE */
.shake{
    animation: shake 0.3s;
}

@keyframes shake{
    0%{transform:translateX(0);}
    25%{transform:translateX(-5px);}
    50%{transform:translateX(5px);}
    75%{transform:translateX(-5px);}
    100%{transform:translateX(0);}
}

@keyframes fadeIn{
    from{opacity:0; transform:scale(0.8);}
    to{opacity:1; transform:scale(1);}
}





/* 🔝 TOP BAR */
.top-bar{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg,#ff0033,#990000);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 🔙 BACK BUTTON */
.back-btn{
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.back-btn:hover{
    background: white;
    color: #ff0033;
    transform: scale(1.1);
}


.mic-btn {
    margin-top: 20px;
    width: 80px;
    height: 80px;
    font-size: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: linear-gradient(145deg, #ff0033, #990000);
    color: white;

    box-shadow: 0 0 20px red;
    transition: 0.3s;
}

/* Hover effect */
.mic-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px red;
}

/* Listening animation 🔥 */
.mic-btn.listening {
    animation: pulseMic 1s infinite;
}

@keyframes pulseMic {
    0% { box-shadow: 0 0 10px red; }
    50% { box-shadow: 0 0 40px red; }
    100% { box-shadow: 0 0 10px red; }
}


/* 🧮 CALCULATOR (MEDIUM) */
.disguise-btn {
    position: fixed;
    bottom: 120px;
    right: 35px;

    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;

    font-size: 22px;
    cursor: pointer;

    /* 🔥 TRANSPARENT GLASS */
    background: rgba(255, 255, 255, 0.08);
    color: white;

    backdrop-filter: blur(10px);

    box-shadow: 0 0 15px rgba(255,0,0,0.4);
    z-index: 9999;
}


/* 📄 OVERVIEW (SMALL) */
.overview-btn {
    position: fixed;
    bottom: 190px;
    right: 40px;

    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;

    font-size: 18px;
    cursor: pointer;

    /* 🔥 MORE TRANSPARENT */
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;

    backdrop-filter: blur(8px);

    box-shadow: 0 0 10px rgba(255,0,0,0.3);
    z-index: 9999;
}


.copy-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;

    font-size: 28px;
    cursor: pointer;

    background: linear-gradient(145deg, #00c853, #009624);
    color: white;

    box-shadow: 0 0 20px #00ff88;
    transition: 0.3s;
}

/* Hover effect */
.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #00ff88;
}

/* Click animation */
.copy-btn:active {
    transform: scale(0.9);
}

/* Pulse effect */
.copy-btn.pulse {
    animation: pulseCopy 1s;
}

@keyframes pulseCopy {
    0% { box-shadow: 0 0 10px #00ff88; }
    50% { box-shadow: 0 0 40px #00ff88; }
    100% { box-shadow: 0 0 10px #00ff88; }
}


.title{
    font-size:18px;
    font-weight:bold;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ff0033;
    }
    to {
        text-shadow: 0 0 20px #ff0033;
    }
}

.light-mode {
    background: #f4f4f4;
    color: black;
}
/* 🌙 Dark Mode Button */
.mode-btn {
    position: absolute;
    top: 15px;
    right: 20px;

    background: linear-gradient(135deg, #000, #333);
    color: white;
    border: none;

    width: 45px;
    height: 45px;

    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}
.mode-btn{
    background:none;
    border:none;
    color:white;
    cursor:pointer;
}

.mode-row{
    text-align:left;
    margin-top:10px;
}

.menu-btn, .mode-btn, .logout-btn{
    background:none;
    border:none;
    color:white;
    cursor:pointer;
}


.menu-logout{
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: linear-gradient(135deg, #ff0033, #990000);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 10px red;
    transition: 0.3s;
}

.menu-logout:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px red;
}


.menu-close{
    margin-top: 10px;
    background: linear-gradient(135deg, #444, #111);
    color: white;

    border: none;
    border-radius: 6px;
    padding: 10px;

    box-shadow: 0 0 10px rgba(255,255,255,0.2);
    transition: 0.3s;
}

.menu-close:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px white;
}


/* Hover */
.mode-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* Light mode me button change */
.light-mode .mode-btn {
    background: linear-gradient(135deg, #fff, #ddd);
    color: black;
}

.police { background: #ff0033; }
.fake { background: #ff9800; }
.camera { background: #3f51b5; }
.history { background: #009688; }
.stop { background: #333; }
.nearby { background: #4caf50; }

header {
    background: #ff0033;
    padding: 15px;
    font-size: 24px;
    font-weight: bold;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 25px;

    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.container {
    margin-top: 40px;
}

.sos-btn {
    margin-top: 20px;
    background: radial-gradient(circle, #ff1a1a, #990000);
    border: none;
    color: white;
    font-size: 28px;
    padding: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 30px red;
    animation: pulse 1.5s infinite;
}

.btn-grid button {
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff0033, #cc0029);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-grid button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4);
}

.btn-grid button {
    backdrop-filter: blur(10px);
    background: rgba(255, 0, 51, 0.8);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px red; }
    50% { box-shadow: 0 0 40px red; }
    100% { box-shadow: 0 0 10px red; }
}

.contact-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff0033;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

input {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    border: none;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    background: #222;
}

.logout-btn{
    background: linear-gradient(135deg, #ff0033, #990000);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,0,0,0.7);
    transition: 0.3s;
}

.logout-btn:hover{
    transform: scale(1.1);
    box-shadow: 0 0 20px red;
}

#video, #photo, #canvas {
    display: block;
    margin: 10px auto;
}

#map {
    width: 100%;
    height: 300px;
    margin-top: 20px;
}

#savedContacts button {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}


.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px;
}

.card {
    background: #1f1f1f;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}


.top-row{
    display:flex;
    align-items:center;
    gap:10px;
}


.second-row{
    display:flex;
    justify-content:space-between; /* 👈 left-right */
    align-items:center;
    margin-top:10px;
}


.logout-row{
    text-align: right;   /* 👈 right side */
    margin-top: 10px;    /* 👈 neeche gap */
}


.card span {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
}
@media (max-width: 700px){
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}
.alert {
    animation: blink 1s infinite;
    color: red;
    font-weight: bold;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}


/* 🔥 FORCE FIX - PAGE KO MOVE NA HONE DO */
body, .container, .main, .wrapper {
    margin-left: 0 !important;
    left: 0 !important;
    transform: none !important;
}


.settings-container{
    width: 90%;
    max-width: 500px;
    margin: auto;
    margin-top: 20px;
}

.setting-item{
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #1a1a1a;
    padding: 15px;
    margin: 10px 0;

    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255,0,0,0.2);
}

.setting-item h3{
    margin: 0;
    color: white;
}

.setting-item p{
    margin: 0;
    font-size: 12px;
    color: #aaa;
}

/* 🔥 SWITCH UI */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #555;
  transition: .4s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ff0033;
}

input:checked + .slider:before {
  transform: translateX(24px);
}


.close-settings-btn{
    display: block;
    margin: 20px auto;

    padding: 12px 25px;
    border: none;
    border-radius: 30px;

    background: linear-gradient(135deg, #ff0033, #990000);
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 0 15px rgba(255,0,0,0.5);

    transition: 0.3s ease;
}

/* hover effect */
.close-settings-btn:hover{
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255,0,0,0.8);
}

/* click effect */
.close-settings-btn:active{
    transform: scale(0.95);
}


.profile-card{
    width: 90%;
    max-width: 400px;
    margin: auto;
    margin-top: 20px;

    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;

    text-align: center;
    box-shadow: 0 0 15px rgba(255,0,0,0.3);
}

.dp{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid red;
}

.profile-card input{
    width: 90%;
    padding: 10px;
    margin: 8px 0;

    border-radius: 8px;
    border: none;
}

.save-btn{
    background: #ff0033;
    color: white;
    padding: 10px;
    width: 95%;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}

.back-btn{
    background: #333;
    color: white;
    padding: 10px;
    width: 95%;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}


.pin-box{
    max-width:300px;
    margin:auto;
    text-align:center;
}

.pin-box input{
    display:block;
    width:100%;
    padding:10px;
    margin:10px 0;
    border-radius:8px;
    border:none;
}

.btn{
    width:100%;
    padding:10px;
    background:#ff0033;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

#pinMsg{
    margin-top:10px;
    font-weight:bold;
}