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

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: #f0f4f8;
    color: #1e3a5f;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

/* Steps */
.step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: flex;
}

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

/* Info Card */
.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    font-size: 1.2rem;
    color: #2d5a87;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.info-card ul {
    list-style: none;
    margin-top: 8px;
}

.info-card ul li {
    font-size: 1rem;
    color: #555;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.info-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.checkbox-container.checked {
    border-color: #27ae60;
}

.checkbox-container input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #27ae60;
    cursor: pointer;
}

.checkbox-container label {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-container label a {
    color: #2d5a87;
    font-weight: 700;
}

/* Buttons */
.btn {
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-secondary {
    background: #ecf0f1;
    color: #1e3a5f;
}

.btn-group {
    display: flex;
    gap: 10px; 
    padding-top: 16px;
}

.btn-group .btn {
    flex: 1;
}

/* ===================== */
/* Photo Capture Styles  */
/* ===================== */
.photo-container {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.photo-instruction {
    text-align: center;
    margin-bottom: 16px;
}

.photo-instruction h3 {
    font-size: 1.2rem;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.photo-instruction p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.camera-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.camera-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-wrapper canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-frame {
    width: 80%;
    height: 60%;
    border: 3px dashed rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.camera-frame::before {
    content: 'Fiyat etiketini bu alana yerleştirin';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.photo-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(39, 174, 96, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.photo-tips {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.photo-tips p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.capture-icon {
    font-size: 1.2rem;
}

/* Captured photo mini preview in step 3 */
.captured-photo-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.captured-photo-mini img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.captured-photo-mini span {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 600;
}

/* ===================== */
/* Mic Container         */
/* ===================== */
.mic-container {
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 0px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Recording Note */
.recording-note {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.recording-note h4 {
    font-size: 1rem;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recording-note p {
    font-size: 1rem;
    color: #856404;
    line-height: 1.5;
    font-style: italic;
}

/* Location Badge */
.location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #2e7d32;
}

.location-badge.error {
    background: #ffebee;
    color: #c62828;
}

.location-badge.loading {
    background: #e3f2fd;
    color: #1565c0;
}

/* Wave Container */
.wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 6px;
}

.wave-bar {
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, #2d5a87 0%, #1e3a5f 100%);
    border-radius: 3px;
    transition: height 0.1s ease;
}

/* Timer */
.timer-display {
    text-align: center;
    margin-bottom: 6px;
}

.timer {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #1e3a5f;
}

.timer.recording {
    color: #e74c3c;
}

.timer-limit {
    font-size: 1rem;
    color: #999;
    margin-top: 4px;
}

/* Record Button */
.record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #2d5a87;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0 auto;
}

.record-btn:hover {
    transform: scale(1.05);
}

.record-btn .inner {
    width: 32px;
    height: 32px;
    background: #e74c3c;
    border-radius: 50%;
    transition: all 0.3s;
}

.record-btn.recording {
    border-color: #e74c3c;
    animation: pulse-record 1s ease-in-out infinite;
}

.record-btn.recording .inner {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

@keyframes pulse-record {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
}

.record-status {
    text-align: center;
    font-size: 1rem;
    color: #888;
    margin-top: 12px;
    font-weight: 600;
}

/* Audio Preview */
.audio-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
    display: none;
}

.audio-preview.show {
    display: block;
}

.audio-preview audio {
    width: 100%;
    height: 40px;
}

/* Upload Status */
.upload-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-icon.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 1rem;
    color: #888;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

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

/* Result */
.result-container {
    text-align: center;
    padding: 30px 0;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.result-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}
