/* Speech to Text - Transcribe Files Styles */

/* PRO Overlay Notice */
.mementor-stt-content-wrapper {
    position: relative;
    min-height: 100vh;
}

.mementor-stt-pro-overlay {
    position: fixed !important;
    top: 32px !important;
    left: 160px !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(1px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px !important;
    pointer-events: all !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Adjust for folded menu */
@media screen and (max-width: 960px) {
    .mementor-stt-pro-overlay {
        left: 36px;
    }
}

/* Adjust for mobile */
@media screen and (max-width: 782px) {
    .mementor-stt-pro-overlay {
        top: 46px;
        left: 0;
    }
}

.mementor-stt-pro-notice {
    background: white !important;
    border: 1px solid #e2e4e7 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    padding: 48px !important;
    max-width: 600px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mementor-stt-pro-notice-icon {
    margin-bottom: 24px;
}

.mementor-stt-pro-notice-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #7854E4;
}

.mementor-stt-pro-notice h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.mementor-stt-pro-subtitle {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #646970;
}

.mementor-stt-pro-notice .mementor-tts-feature-list {
    text-align: left;
    margin: 24px 0 32px 0;
}

.mementor-stt-pro-notice .button-hero {
    font-size: 16px;
    padding: 12px 36px;
    height: auto;
}

/* Override main container width for full-width layout */
.mementor-tts-main.full-width {
    width: 100% !important;
    max-width: 100% !important;
}

/* Card body padding */
.mementor-tts-card-body {
    padding: 24px;
}

/* Feature list styling for PRO upsell */
.mementor-tts-feature-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.mementor-tts-feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mementor-tts-feature-list .dashicons-yes {
    color: #00a32a;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Upload Area */
.mementor-stt-upload-area {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f6f7f7;
}

.mementor-stt-upload-area:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.mementor-stt-upload-area.mementor-stt-drag-over {
    border-color: #2271b1;
    background: #f0f6fc;
    border-style: solid;
}

.mementor-stt-upload-icon {
    margin-bottom: 20px;
}

.mementor-stt-upload-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #2271b1;
}

.mementor-stt-upload-area h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1d2327;
}

.mementor-stt-upload-area p {
    margin: 10px 0;
    color: #50575e;
}

.mementor-stt-upload-info {
    font-size: 13px;
    color: #646970;
    margin-top: 20px !important;
}

/* File Preview */
.mementor-stt-file-preview {
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.mementor-stt-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mementor-stt-file-info .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
}

.mementor-stt-file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mementor-stt-file-details strong {
    font-size: 14px;
    color: #1d2327;
}

.mementor-stt-file-details span {
    font-size: 13px;
    color: #646970;
}

/* Transcription Options */
.mementor-stt-options {
    margin-top: 24px;
    padding-top: 0;
}

.mementor-stt-options h3 {
    margin: 0 0 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    grid-column: 1 / -1;
}

.mementor-stt-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mementor-stt-option-row {
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.mementor-stt-option-row:hover {
    border-color: #c3c4c7;
    background: #f0f0f1;
}

.mementor-stt-option-row label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.mementor-stt-option-row strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

.mementor-stt-option-row .description {
    display: block;
    font-size: 13px;
    color: #646970;
    margin-top: 6px;
    line-height: 1.5;
}

/* Checkbox styling */
.mementor-stt-option-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

.mementor-stt-option-row label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mementor-stt-option-row label:has(input[type="checkbox"]) strong {
    margin-bottom: 4px;
}

.mementor-stt-option-row label:has(input[type="checkbox"]) .description {
    margin-left: 0;
}

/* Select styling */
.mementor-stt-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mementor-stt-select:hover {
    border-color: #2271b1;
}

.mementor-stt-select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Actions */
.mementor-stt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dcdcde;
}

.mementor-stt-actions .button-large {
    padding: 10px 24px;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.mementor-stt-actions .button-large .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mementor-stt-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #646970;
}

.mementor-stt-credits .dashicons {
    color: #2271b1;
}

/* Progress Bar */
.mementor-stt-progress {
    margin-top: 24px;
}

.mementor-stt-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mementor-stt-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2271b1 0%, #1557a0 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.mementor-stt-progress p {
    text-align: center;
    color: #646970;
    font-size: 14px;
    margin: 0;
}

/* Results Section */
.mementor-stt-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mementor-stt-results-header h2 {
    margin: 0;
    flex: 1;
}

.mementor-stt-export-buttons {
    display: flex;
    gap: 8px;
}

.mementor-stt-export-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mementor-stt-export-buttons .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mementor-stt-results-content {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 24px;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
}

.mementor-stt-transcription-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #1d2327;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.mementor-stt-results-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dcdcde;
}

.mementor-stt-results-footer .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mementor-stt-results-footer .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* History Table */
.mementor-stt-history-table {
    margin-top: 0;
}

.mementor-stt-history-table td {
    vertical-align: middle;
}

.mementor-stt-history-table .description {
    font-size: 12px;
    color: #646970;
}

.mementor-stt-history-table td .button {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mementor-stt-history-table td .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mementor-stt-export-group {
    display: inline-block;
    margin-right: 8px;
}

.mementor-stt-export-group .button {
    margin-right: 4px;
}

.button-link-delete {
    color: #b32d2e;
}

.button-link-delete:hover {
    color: #dc3232;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .mementor-stt-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 782px) {
    .mementor-stt-upload-area {
        padding: 40px 20px;
    }

    .mementor-stt-options-grid {
        grid-template-columns: 1fr;
    }

    .mementor-stt-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .mementor-stt-actions .button-large {
        justify-content: center;
    }

    .mementor-stt-credits {
        justify-content: center;
    }

    .mementor-stt-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .mementor-stt-export-buttons {
        flex-wrap: wrap;
        width: 100%;
    }

    .mementor-stt-export-buttons .button {
        flex: 1;
        justify-content: center;
    }
}
