/* Google Fonts se modern font import kar rahe hain */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0d0d12; /* Deep dark background */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* App ka main container mobile screen ke hisaab se */
.app-container {
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

/* Header Section */
.app-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 20px 20px;
}

.logo-container i {
    font-size: 55px;
    color: #00e5ff; /* Neon Cyan */
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6); /* Glow effect */
}

.app-header h1 {
    font-size: 28px;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
}

.app-header p {
    font-size: 13px;
    color: #8892b0;
}

/* Chat Display Area */
.chat-display {
    flex: 1;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Common Message Box Style */
.message {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 15px;
    border-left: 4px solid #555;
    backdrop-filter: blur(5px);
}

/* User ki message styling */
.user-message {
    border-left-color: #ff2a7a; /* Neon Pink */
    margin-left: 20px;
}

/* SAM ki message styling */
.sam-message {
    border-left-color: #00e5ff; /* Neon Cyan */
    background: rgba(0, 229, 255, 0.05);
    margin-right: 20px;
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.user-message .label {
    color: #ff2a7a;
}

.sam-message .label {
    color: #00e5ff;
}

.message p {
    font-size: 15px;
    line-height: 1.5;
    color: #e2e8f0;
}

/* Controls Section (Mic Area) */
.controls {
    padding: 30px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px 30px 0 0;
}

/* Mic Button Design */
.mic-button {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #00e5ff;
    border: none;
    color: #0d0d12;
    font-size: 30px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

/* Hover effect */
.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
}

/* Jab SAM sune ga tab ye animation chalega (JS control karega) */
.mic-button.listening {
    animation: pulse 1.5s infinite;
    background: #ff2a7a;
    color: white;
    box-shadow: 0 0 30px rgba(255, 42, 122, 0.6);
}

/* Pulse Animation ki coding */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 42, 122, 0.5); }
    50% { transform: scale(1.15); box-shadow: 0 0 40px rgba(255, 42, 122, 0.9); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 42, 122, 0.5); }
}

#status {
    font-size: 14px;
    color: #8892b0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Settings Button */
.settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #8892b0;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.settings-btn:hover { color: #00e5ff; transform: rotate(90deg); }

/* Settings Panel (Modal) */
.settings-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    background: rgba(20, 20, 30, 0.95);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #00e5ff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(10px);
}
.settings-panel.hidden { display: none; }
.settings-panel h3 { color: #fff; text-align: center; font-size: 20px; }
.settings-panel label { font-size: 14px; color: #00e5ff; font-weight: 600; }
.settings-panel select { padding: 10px; border-radius: 8px; background: #0d0d12; color: #fff; border: 1px solid #555; outline: none; }

/* Toggle Switch Design */
.toggle-container { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.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: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #00e5ff; box-shadow: 0 0 10px #00e5ff; }
input:checked + .slider:before { transform: translateX(26px); }

/* Close Button */
#close-settings { margin-top: 15px; padding: 12px; background: #ff2a7a; color: white; border: none; border-radius: 10px; cursor: pointer; font-weight: bold; transition: 0.3s; }
#close-settings:hover { box-shadow: 0 0 15px rgba(255, 42, 122, 0.7); }
