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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
    color: white;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* BACK BUTTON */
#backBtn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 90px;
    height: 45px;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

#backBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.6);
}

/* MAIN TITLE */
#mainTitle {
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: bold;
}

/* SOS BUTTON (RED - EMERGENCY) */
.sos-button {
    width: 320px;
    height: 75px;
    font-size: 20px;
    font-weight: bold;
    margin: 12px auto;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;#voiceBtn {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
}

    text-align: center;
}

.sos-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.sos-button:active {
    transform: scale(0.97);
}

/* PHASE BUTTON COLORS */
#mapBtn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

#meshBtn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

#policeBtn {
    background: linear-gradient(45deg, #FF9800, #F57C00);
}

/* STATUS MESSAGES */
#status {
    font-size: 18px;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    min-height: 25px;
}

/* SCREEN ANIMATIONS */
.screen {
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
}

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

/* MAP SCREEN */
#map {
    height: 320px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin: 15px 0;
}

#safetyScore {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* MESH SCREEN */
#meshStatus {
    font-size: 20px;
    margin: 20px 0;
    font-weight: bold;
}

#nearbyUsers {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

#nearbyUsers li {
    margin: 8px 0;
    font-size: 16px;
}

/* POLICE DASHBOARD */
#policeStatus {
    font-size: 20px;
    margin: 20px 0;
    font-weight: bold;
}

#policeTracking {
    background: rgba(0,0,0,0.4);
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

#responseStats {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
    .sos-button {
        width: 95%;
        height: 70px;
        font-size: 18px;
    }
    
    #backBtn {
        width: 80px;
        height: 40px;
        font-size: 13px;
    }
}

/* GLASSMORPHISM EFFECT */
.glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
}

#voiceBtn {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
}

/* Fake call card */

#fakeCallCard {
    margin-top: 20px;
    background: radial-gradient(circle at top, #263238, #000000);
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

#callerName {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 5px;
}

#callerLabel {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 15px;
}

#callTimer {
    font-size: 20px;
    margin-bottom: 25px;
}

#callButtons {
    display: flex;
    justify-content: space-around;
}

.call-btn {
    width: 110px;
    height: 50px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.call-btn:hover {
    transform: translateY(-2px);
}

.call-btn.reject {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.call-btn.accept {
    background: linear-gradient(45deg, #4CAF50, #388E3C);
}

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