/* TranscribeForm Styles */

.transcribeform-container {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transcribeform-header h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.transcribeform-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.transcribeform-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0073aa;
    color: #fff;
}

.transcribeform-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.transcribeform-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.transcribeform-start {
    background: #46b450;
}

.transcribeform-start:hover {
    background: #3a9b42;
}

.transcribeform-stop {
    background: #dc3232;
}

.transcribeform-stop:hover {
    background: #c12a2a;
}

.transcribeform-analyze {
    background: #00a0d2;
}

.transcribeform-analyze:hover {
    background: #0087be;
}

.transcribeform-clear {
    background: #666;
}

.transcribeform-clear:hover {
    background: #555;
}

.transcribeform-status {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.transcribeform-status:not(:empty) {
    display: block;
}

.transcribeform-status.listening {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.transcribeform-status.stopped {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.transcribeform-status.analyzing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.transcribeform-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.transcribeform-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.transcribeform-status.info {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
    animation: pulse 1.5s ease-in-out infinite;
}

.transcribeform-status.cleared {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    font-weight: 600;
    animation: fadeInOut 3s ease-in-out;
}

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

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}

.transcribeform-transcription {
    margin-top: 15px;
}

.transcribeform-transcription label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.transcribeform-text {
    min-height: 120px;
    max-height: 600px;
    overflow-y: auto;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: max-height 0.3s ease;
}

.transcribeform-text:empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

.transcribeform-text:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Filled field animation */
.transcribeform-filled {
    animation: fillPulse 0.5s ease-in-out;
    border-color: #46b450 !important;
}

@keyframes fillPulse {
    0%, 100% {
        background-color: #fff;
    }
    50% {
        background-color: #d4edda;
    }
}

/* Cleared transcription animation */
.transcribeform-cleared {
    animation: clearFlash 0.6s ease-in-out;
    border-color: #ffc107 !important;
}

@keyframes clearFlash {
    0% {
        background-color: #fff;
        transform: scale(1);
    }
    25% {
        background-color: #fff3cd;
        transform: scale(0.98);
    }
    50% {
        background-color: #ffeaa7;
        transform: scale(0.98);
    }
    75% {
        background-color: #fff3cd;
        transform: scale(1);
    }
    100% {
        background-color: #fff;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .transcribeform-controls {
        flex-direction: column;
    }
    
    .transcribeform-btn {
        width: 100%;
        justify-content: center;
    }
}

