/* public/style.css */
.ld-ai-recorder-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	width:100%;
}

.ld-ai-recorder-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.ld-ai-start.button.button-primary{
	background: linear-gradient(131deg, #32888d 2%, #e85842 100%) !important;
}
.ld-ai-start, .ld-ai-stop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ld-ai-start {
    background: #007cba;
    color: white;
}

.ld-ai-start:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

.ld-ai-stop {
    background: #dc3545;
    color: white;
}

.ld-ai-stop:hover:not(:disabled) {
    background: #c82333;
}

.ld-ai-start:disabled, .ld-ai-stop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ld-ai-timer {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.ld-ai-recorder-status {
    margin: 15px 0;
}

.ld-ai-visualizer {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px;
    height: 60px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 8px;
    padding: 10px;
}

.ld-ai-bar {
    width: 6px;
    background: linear-gradient(180deg, #007cba 0%, #005a87 100%);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.ld-ai-transcript-display {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-height: 60px;
    font-size: 14px;
    line-height: 1.5;
}

.ld-ai-feedback-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

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

.ld-ai-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

.ld-ai-feedback-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
}

.ld-ai-score {
    font-size: 16px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
}

.ld-ai-score.high-score {
    background: #d4edda;
    color: #155724;
}

.ld-ai-score.medium-score {
    background: #fff3cd;
    color: #856404;
}

.ld-ai-score.low-score {
    background: #f8d7da;
    color: #721c24;
}

.ld-ai-feedback-content > div {
    margin-bottom: 15px;
}

.ld-ai-transcript-text, .ld-ai-feedback-text {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

.ld-ai-feedback-text {
    border-left-color: #28a745;
}

/* Progress bar */
.ld-ai-progress-bar {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.ld-ai-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.ld-ai-progress-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.ld-ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .ld-ai-recorder-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ld-ai-start, .ld-ai-stop {
        justify-content: center;
    }
    
    .ld-ai-timer {
        text-align: center;
    }
    
    .ld-ai-feedback-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ld-ai-recorder-container,
    .ld-ai-feedback-container,
    .ld-ai-progress-fill {
        transition: none;
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ld-ai-recorder-container {
        border-width: 3px;
    }
    
    .ld-ai-start, .ld-ai-stop {
        border: 2px solid;
    }
}
.ld-ai-recorder-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ld-ai-recorder-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ld-ai-start, .ld-ai-stop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ld-ai-start {
    background: #007cba;
    color: white;
}

.ld-ai-start:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

.ld-ai-stop {
    background: #dc3545;
    color: white;
}

.ld-ai-stop:hover:not(:disabled) {
    background: #c82333;
}

.ld-ai-start:disabled, .ld-ai-stop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ld-ai-timer {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.ld-ai-recorder-status {
    margin: 15px 0;
}

.ld-ai-visualizer {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px;
    height: 60px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 8px;
    padding: 10px;
}

.ld-ai-bar {
    width: 6px;
    background: linear-gradient(180deg, #007cba 0%, #005a87 100%);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.ld-ai-transcript-display {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-height: 60px;
    font-size: 14px;
    line-height: 1.5;
}

.ld-ai-feedback-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

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

.ld-ai-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

.ld-ai-feedback-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
}

.ld-ai-score {
    font-size: 16px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
}

.ld-ai-score.high-score {
    background: #d4edda;
    color: #155724;
}

.ld-ai-score.medium-score {
    background: #fff3cd;
    color: #856404;
}

.ld-ai-score.low-score {
    background: #f8d7da;
    color: #721c24;
}

.ld-ai-feedback-content > div {
    margin-bottom: 15px;
}

.ld-ai-transcript-text, .ld-ai-feedback-text {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

.ld-ai-feedback-text {
    border-left-color: #28a745;
}

/* Live Transcription Styles */
.ld-ai-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

.ld-ai-live-dot {
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.ld-ai-mode-toggle {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.ld-ai-mode-toggle:hover {
    background: #5a6268 !important;
    transform: translateY(-1px);
}

/* Dual input mode styles */
.ld-ai-text-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.ld-ai-text-input:focus {
    border-color: #007cba;
    outline: none;
}

.ld-ai-input-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ld-ai-input-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ld-ai-input-option.active {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.ld-ai-input-option:hover:not(.active) {
    border-color: #007cba;
}

/* Progress bar */
.ld-ai-progress-bar {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.ld-ai-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.ld-ai-progress-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.ld-ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .ld-ai-recorder-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ld-ai-start, .ld-ai-stop {
        justify-content: center;
    }
    
    .ld-ai-timer {
        text-align: center;
    }
    
    .ld-ai-feedback-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .ld-ai-input-toggle {
        flex-direction: column;
    }
    
    .ld-ai-mode-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ld-ai-recorder-container,
    .ld-ai-feedback-container,
    .ld-ai-progress-fill {
        transition: none;
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ld-ai-recorder-container {
        border-width: 3px;
    }
    
    .ld-ai-start, .ld-ai-stop {
        border: 2px solid;
    }
}