/* assets/css/style.css - Voice Recorder Styles */

:root {
    --primary: #FFD700;
    --primary-dark: #E6C200;
    --primary-light: #FFDF33;
    --secondary: #C0C0C0;
    --success: #FFD700;
    --danger: #ef4444;
    --warning: #FFD700;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gray: #a0a0a0;
    --silver: #C0C0C0;
    --gradient: linear-gradient(135deg, #FFD700 0%, #C0C0C0 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Header */
.app-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 40px;
    width: auto;
}

/* Hero Section */
.hero-section {
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.hero-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #ffffff 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 1rem;
    padding-bottom: 4rem;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step.completed .step-number {
    background: var(--success);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.step.active .step-number {
    background: var(--primary);
}

.step-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #334155;
    margin-bottom: 1rem;
}

/* Recorder Card */
.recorder-card {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(192, 192, 192, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Form Section */
.form-section {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
    color: #fff;
}

.form-control::placeholder {
    color: #64748b;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

/* Status Section */
.status-section {
    text-align: center;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
}

.status-badge.recording {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-badge.recording i {
    color: var(--danger);
}

.recording-timer {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary);
    margin-top: 0.5rem;
    display: none;
}

.recording-timer.active {
    display: block;
}

/* Visualizer */
.visualizer-container {
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

#visualizer {
    width: 100%;
    height: 100%;
}

/* Controls */
.controls-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-record {
    background: linear-gradient(135deg, #FFD700 0%, #E6C200 100%);
    border: none;
    color: #000;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 40px -10px rgba(255, 215, 0, 0.5);
}

.btn-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px -10px rgba(255, 215, 0, 0.6);
    color: #000;
}

.btn-record:active {
    transform: translateY(0);
}

.btn-stop {
    background: var(--danger);
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    animation: pulse 1s ease-in-out infinite;
}

.btn-stop:hover {
    background: #dc2626;
    color: #fff;
}

/* Playback Section */
.playback-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.playback-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #94a3b8;
}

.audio-player {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.playback-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    flex: 1;
    min-width: 120px;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-upload {
    background: linear-gradient(135deg, #FFD700 0%, #E6C200 100%);
    border: none;
    color: #000;
    flex: 2;
    min-width: 150px;
}

.btn-upload:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFDF33 0%, #FFD700 100%);
    color: #000;
}

.btn-upload:disabled {
    background: #374151;
    color: #6b7280;
}

/* Upload Progress */
.upload-progress {
    text-align: center;
    padding: 2rem 0;
}

.upload-progress .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    color: #94a3b8;
    margin-bottom: 1rem;
}

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

.progress-bar {
    background: linear-gradient(90deg, #FFD700 0%, #C0C0C0 100%);
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 2rem 0;
}

.error-icon {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-section h4 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.error-section p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Browser Notice */
.browser-notice {
    max-width: 500px;
    margin: 1.5rem auto 0;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #fbbf24;
}

.browser-notice i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.browser-notice p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.app-footer {
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Admin Styles */
.admin-body {
    background: #000000;
}

.admin-header {
    background: rgba(20, 20, 20, 0.95);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #FFD700;
}

.admin-card {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.admin-table {
    color: #fff;
}

.admin-table th {
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-weight: 600;
}

.admin-table td {
    border-color: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title i {
    font-size: 3rem;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .recorder-card {
        padding: 1.5rem 1rem;
    }
    
    .btn-record, .btn-stop {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .steps-indicator {
        gap: 0.25rem;
    }
    
    .step-line {
        width: 25px;
    }
    
    .playback-actions {
        flex-direction: column;
    }
    
    .btn-outline-secondary,
    .btn-upload {
        width: 100%;
    }
}
