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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #007aff;
}

#status {
    font-size: 16px;
    color: #00d4aa;
    min-height: 24px;
    margin: 20px 0;
    font-weight: 600;
}

.recording-indicator {
    display: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    margin: 15px auto;
    animation: pulse 1.5s infinite;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.recording-indicator.active {
    display: inline-flex;
    align-items: center;
}

.recording-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 0.5s infinite;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #007aff 0%, #005ecb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff3b30 0%, #d02b20 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

.permissions-status {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 12px;
    color: #888;
}

.permissions-status p {
    margin: 5px 0;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.notification.success {
    background: #34c759;
    color: white;
}

.notification.error {
    background: #ff3b30;
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
