/* Control Area Styles */
.control-section {
    flex: 1;
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 10px;
    position: relative;
}

/* Primary Control Button */
.primary-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.start-stop-btn {
    width: 200px;
    height: 60px;
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.start-stop-btn:active {
    transform: scale(0.98);
}

.start-stop-btn.active {
    background: var(--color-text);
    color: var(--color-bg);
}

.start-stop-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Recording Indicator */
.recording-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}

.recording-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-error);
    animation: recordingPulse 1.5s ease infinite;
}

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

.recording-time {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Button Row Controls */
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    gap: 20px;
}

/* Old Bottom Controls - deprecated */
.bottom-controls {
    display: none;
}

.control-icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.control-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text);
}

.control-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
}

/* Connection Status */
.connection-status {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-text-secondary);
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.connection-status.show {
    opacity: 1;
    pointer-events: auto;
}

.connection-status.connected {
    border-color: var(--color-success);
}

.connection-status.disconnected {
    border-color: var(--color-error);
}

.connection-status.connecting {
    border-color: var(--color-warning);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Connect Button */
.connect-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.connect-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

/* Settings Overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.settings-overlay.active {
    display: flex;
}

.settings-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.settings-overlay-title {
    font-size: 24px;
    font-weight: 300;
}

.settings-overlay-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--color-text-secondary);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.settings-overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text);
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.settings-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--color-text);
}

.settings-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.info-value {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.settings-btn-danger {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--color-error);
    color: var(--color-error);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn-danger:hover {
    background: rgba(255, 59, 48, 0.1);
}

.settings-btn-danger:active {
    transform: scale(0.98);
}

.settings-warning {
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.4;
}