.chatterbox-container {
    max-width: 600px;
    margin: 0 auto;
    background: #0d0d22;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(0,255,255,0.2);
    box-shadow: 0 0 40px rgba(0,255,255,0.06);
    font-family: 'Share Tech Mono', monospace;
}

.chatterbox-container p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.chatterbox-container h2 {
    color: #00FFFF;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    margin: 24px 0 12px;
    letter-spacing: 1px;
}

.chatterbox-container h1 {
    text-align: center;
    color: #00FFFF;
    margin-bottom: 30px;
    font-size: 22px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0,255,255,0.5);
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #080818;
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 6px;
    font-size: 14px;
    color: #ddd;
    font-family: 'Share Tech Mono', monospace;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00FFFF;
    box-shadow: 0 0 8px rgba(0,255,255,0.2);
}

.form-group select option {
    background: #0d0d22;
    color: #ddd;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: #555;
    margin-top: 5px;
}

/* Voice section */
.voice-section {
    background: #080818;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,255,255,0.15);
}

.voice-section.recording {
    border-color: #FF0040;
    box-shadow: 0 0 16px rgba(255,0,64,0.15);
}

.voice-section.has-recording {
    border-color: #00FF41;
    box-shadow: 0 0 16px rgba(0,255,65,0.1);
}

.voice-label {
    font-size: 13px;
    font-weight: 600;
    color: #00FFFF;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.check-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,255,65,0.15);
    border: 1px solid #00FF41;
    color: #00FF41;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 10px;
    font-family: 'Share Tech Mono', monospace;
}

.record-btn {
    background: rgba(0,255,255,0.1);
    border: 2px solid #00FFFF;
    color: #00FFFF;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
}

.record-btn:hover {
    background: rgba(0,255,255,0.2);
    box-shadow: 0 0 30px rgba(0,255,255,0.4);
    transform: scale(1.05);
}

.record-btn.recording {
    background: rgba(255,0,64,0.15);
    border-color: #FF0040;
    color: #FF0040;
    box-shadow: 0 0 20px rgba(255,0,64,0.3);
    animation: ctb-pulse 1.5s infinite;
}

@keyframes ctb-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255,0,64,0.3); }
    50%       { transform: scale(1.08); box-shadow: 0 0 35px rgba(255,0,64,0.5); }
}

.record-status {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
}

.record-timer {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #FF0040;
    margin-top: 10px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255,0,64,0.5);
}

.voice-text {
    background: rgba(0,255,255,0.04);
    border: 1px dashed rgba(0,255,255,0.3);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.voice-preview {
    margin-top: 15px;
}

.voice-preview audio {
    width: 100%;
    filter: invert(1) hue-rotate(180deg);
}

.voice-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.voice-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-retry {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #888;
}

.btn-retry:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.btn-use {
    background: rgba(0,255,65,0.1);
    border: 1px solid #00FF41;
    color: #00FF41;
}

.btn-use:hover {
    background: rgba(0,255,65,0.2);
    box-shadow: 0 0 12px rgba(0,255,65,0.3);
}

/* File upload */
.or-divider {
    text-align: center;
    margin: 20px 0;
    color: #444;
    font-size: 12px;
    position: relative;
    letter-spacing: 2px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(0,255,255,0.1);
}

.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

.file-input-wrapper {
    border: 1px dashed rgba(0,255,255,0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 13px;
}

.file-input-wrapper:hover {
    border-color: #00FFFF;
    background: rgba(0,255,255,0.04);
    color: #00FFFF;
}

.file-input-wrapper.has-file {
    border-color: #00FF41;
    background: rgba(0,255,65,0.04);
    color: #00FF41;
}

.file-name {
    margin-top: 10px;
    font-weight: 600;
    color: #00FFFF;
    font-size: 13px;
}

/* Sliders */
.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-group input[type="range"] {
    flex: 1;
    accent-color: #00FFFF;
}

.slider-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #00FFFF;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Submit */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(0,255,65,0.1);
    border: 1px solid #00FF41;
    color: #00FF41;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background: rgba(0,255,65,0.2);
    box-shadow: 0 0 20px rgba(0,255,65,0.3);
}

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

/* Loading */
.loading-block {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 13px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0,255,255,0.15);
    border-top: 2px solid #00FFFF;
    border-radius: 50%;
    animation: ctb-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

/* Error */
.error-block {
    color: #FF0040;
    background: rgba(255,0,64,0.08);
    border: 1px solid rgba(255,0,64,0.3);
    padding: 14px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 13px;
}

/* Result */
.result-block {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: 8px;
}

.result-block h3 {
    margin-bottom: 15px;
    color: #00FF41;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

.result-block audio {
    width: 100%;
    margin-top: 15px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 9px 20px;
    background: rgba(0,255,65,0.1);
    border: 1px solid #00FF41;
    color: #00FF41;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.2s;
}

.download-btn:hover {
    background: rgba(0,255,65,0.2);
}

.complete-btn {
    display: block;
    margin-top: 16px;
    padding: 11px 28px;
    background: rgba(0,255,255,0.1);
    border: 1px solid #00FFFF;
    color: #00FFFF;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.2s;
    width: 100%;
}
.complete-btn:hover {
    background: rgba(0,255,255,0.2);
    box-shadow: 0 0 16px rgba(0,255,255,0.35);
}
