/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    background: linear-gradient(135deg, #AC5E56 0%, #402F3C 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    padding: 2rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    text-align: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.app-title {
    font-family: 'Source Serif 4', serif;
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    letter-spacing: 1px;
}

.app-logo {
    height: 3.75rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }
    50% { 
        transform: translateY(-3px) scale(1.02);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }
}

.app-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 200;
    opacity: 0.9;
    letter-spacing: 1.2px;
    text-transform: lowercase;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Meditation Selection Screen */
.meditation-selection {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.meditation-selection h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.95;
    letter-spacing: 0.8px;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.track-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.track-card:hover::before {
    left: 100%;
}

.track-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.track-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #E18159;
}

.track-card h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.track-card p {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 1rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.duration {
    font-family: 'Nunito', sans-serif;
    display: inline-block;
    background: rgba(225, 129, 89, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Meditation Player Screen */
.meditation-player {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.back-button {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.current-track-info {
    margin-bottom: 3rem;
}

.current-track-info h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.8px;
}

.current-track-info p {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    opacity: 0.85;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
}

/* Glowing Orb */
.orb-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: 2rem 0;
    position: relative;
}

.orb {
    width: 200px;
    height: 200px;
    position: relative;
    cursor: pointer;
}

.orb-svg {
    width: 100%;
    height: 100%;
    animation: orbFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(225, 129, 89, 0.5));
}

#orb-core {
    transform-origin: center;
}

/* Fallback orb style if SVG fails */
.orb::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #E7C9AE, #E18159, #AC5E56);
    border-radius: 50%;
    animation: orbFloat 4s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(225, 129, 89, 0.5);
    z-index: -1;
}

/* Hide fallback when SVG is working */
.orb:has(.orb-svg)::before {
    display: none;
}

.orb-pulse {
    transform-origin: center;
    animation: orbPulse 2s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes orbPulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Orb Active States */
.orb.playing .orb-svg {
    filter: drop-shadow(0 0 50px rgba(225, 129, 89, 0.8));
}

.orb.reacting #orb-core {
    animation: orbReact 0.1s ease-in-out;
}

@keyframes orbReact {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Timer Container */
.timer-container {
    margin: 2rem 0;
}

.timer-display {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-left {
    font-family: 'Source Serif 4', serif;
    font-size: 3.2rem;
    font-weight: 200;
    display: block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.timer-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 200;
    opacity: 0.7;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E18159, #D9C082);
    border-radius: 2px;
    width: 0%;
    transition: width 1s ease;
}

/* Controls */
.controls-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.control-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

#play-pause-btn {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: rgba(225, 129, 89, 0.3);
}

#play-pause-btn:hover {
    background: rgba(225, 129, 89, 0.5);
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #E18159;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-overlay p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.8px;
}

/* Demo Messages */
.demo-message {
    animation: fadeInOut 3s ease-in-out;
}

.demo-message p {
    margin: 0.25rem 0;
}

.demo-message p:first-child {
    font-weight: 600;
}

.demo-message i {
    color: #D9C082;
    margin-right: 0.5rem;
}

.completion-message h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.completion-message button:hover {
    background: rgba(225,129,89,0.5) !important;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .app-logo {
        height: 3.125rem;
    }
    
    .app-subtitle {
        font-size: 1rem;
    }
    
    .track-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .track-card {
        padding: 1.5rem;
    }
    
    .orb {
        width: 150px;
        height: 150px;
    }
    
    .time-left {
        font-size: 2.5rem;
    }
    
    .back-button {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 2rem;
    }
    
    .current-track-info h2 {
        font-size: 1.5rem;
    }
}


@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .app-logo {
        height: 2.5rem;
    }
    
    
    .meditation-selection h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .orb {
        width: 120px;
        height: 120px;
    }
    
    .orb-container {
        height: 200px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    #play-pause-btn {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}

/* Password Protection Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #AC5E56 0%, #402F3C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Nunito', sans-serif;
}

.password-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    text-align: center;
    min-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.password-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.password-app-title {
    font-family: 'Source Serif 4', serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    letter-spacing: 1px;
    color: white;
}

.password-app-logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

.password-app-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 200;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.coming-soon-title {
    font-family: 'Source Serif 4', serif;
    font-size: 2.5rem;
    color: white;
    margin: 0 0 1rem 0;
    font-weight: 300;
    letter-spacing: 2px;
}

.coming-soon-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    font-weight: 300;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.password-input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.password-button {
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #E18159, #D9C082);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    font-family: 'Nunito', sans-serif;
}

.password-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 129, 89, 0.3);
}

.password-button:active {
    transform: translateY(0);
}

.password-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.password-message.error {
    color: #ff6b6b;
    animation: shake 0.5s ease-in-out;
}

.password-message.success {
    color: #51cf66;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .password-container {
        min-width: 90%;
        padding: 2rem 1.5rem;
    }

    .password-app-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .password-app-logo {
        height: 2rem;
    }

    .password-app-subtitle {
        font-size: 0.8rem;
    }
}

/* Bluetooth Styles */
.bluetooth-container {
    margin-left: 1rem;
}

.bluetooth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bluetooth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.bluetooth-btn.connected {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.bluetooth-btn.scanning {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.bluetooth-btn.scanning #bluetooth-icon {
    animation: bluetoothScan 2s ease-in-out infinite;
}

.bluetooth-status {
    font-size: 0.85rem;
    font-weight: 400;
}

/* Bluetooth Modal */
.bluetooth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.bluetooth-modal-content {
    background: linear-gradient(135deg, #AC5E56 0%, #402F3C 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bluetooth-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bluetooth-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.bluetooth-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.bluetooth-status-section {
    margin-bottom: 2rem;
}

.bluetooth-connection-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-dot.disconnected {
    background: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

.status-dot.scanning {
    background: #2196f3;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.connected {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.status-text {
    font-size: 1rem;
    font-weight: 500;
}

.connected-device-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.device-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.device-signal, .device-battery {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.device-list-section {
    margin-bottom: 1rem;
}

.device-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.device-list-header h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
}

.scan-btn {
    background: rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(33, 150, 243, 0.5);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background: rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

.scan-btn.scanning {
    background: rgba(33, 150, 243, 0.5);
}

.scan-btn.scanning #scan-icon {
    animation: rotation 2s linear infinite;
}

.device-list {
    min-height: 120px;
}

.device-list-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.device-list-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.device-list-empty p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.device-list-empty small {
    font-size: 0.85rem;
}

.device-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.device-item.connecting {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    cursor: not-allowed;
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.device-name-item {
    font-weight: 500;
    font-size: 1rem;
    color: white;
}

.device-type {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.device-signal-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.bluetooth-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn.primary {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.modal-btn.primary:hover {
    background: rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

.modal-btn.secondary {
    background: rgba(244, 67, 54, 0.3);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.modal-btn.secondary:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: translateY(-1px);
}

/* Bluetooth Animations */
@keyframes bluetoothScan {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Bluetooth Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-left {
        text-align: center;
    }

    .bluetooth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .bluetooth-modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .bluetooth-modal-header h2 {
        font-size: 1.25rem;
    }

    .bluetooth-modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        justify-content: center;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-subtitle {
        font-size: 1rem;
    }
}

/* Analytics Dashboard */
.analytics-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.analytics-content {
    max-width: 1200px;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    color: white;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.analytics-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric {
    font-size: 2rem;
    font-weight: bold;
    color: #E18159;
}

.analytics-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.analytics-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #D9C082;
}

.sessions-list, .stats-list {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.session-item, .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.session-item:last-child, .stat-item:last-child {
    border-bottom: none;
}

.session-date {
    font-size: 0.8rem;
    opacity: 0.7;
}

.session-duration, .stat-count {
    font-weight: bold;
    color: #E18159;
}

.analytics-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.analytics-btn {
    background: rgba(225, 129, 89, 0.3);
    border: 1px solid rgba(225, 129, 89, 0.5);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.analytics-btn:hover {
    background: rgba(225, 129, 89, 0.5);
    transform: translateY(-2px);
}

.analytics-btn.danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.analytics-btn.danger:hover {
    background: rgba(220, 53, 69, 0.5);
}

@media (max-width: 768px) {
    .analytics-content {
        margin: 1rem;
        padding: 1rem;
    }

    .analytics-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-details {
        grid-template-columns: 1fr;
    }

    .metric {
        font-size: 1.5rem;
    }
}