/**
 * PDF Image Creator - Admin Styles
 *
 * @package PDFImageCreator
 */

/* Settings Page Container */
.rapls-pic-settings {
    max-width: 800px;
}

/* Tabs Navigation */
.rapls-pic-tabs {
    margin-bottom: 20px;
}

.rapls-pic-tabs .nav-tab-wrapper {
    border-bottom: 1px solid #c3c4c7;
    padding: 0;
    margin: 0;
}

.rapls-pic-tabs .nav-tab {
    margin-left: 0;
    margin-right: 4px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.71428571;
    background: #dcdcde;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    color: #50575e;
    text-decoration: none;
    cursor: pointer;
}

.rapls-pic-tabs .nav-tab:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.rapls-pic-tabs .nav-tab-active,
.rapls-pic-tabs .nav-tab-active:hover {
    background: #f0f0f1;
    border-bottom: 1px solid #f0f0f1;
    color: #1d2327;
    margin-bottom: -1px;
}

/* Tab Content */
.rapls-pic-tab-content {
    display: none;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    padding: 20px;
}

.rapls-pic-tab-content.active {
    display: block;
}

/* Range Input with Output */
.rapls-pic-range {
    width: 200px;
    vertical-align: middle;
}

.rapls-pic-range + output {
    display: inline-block;
    margin-left: 10px;
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

/* Progress Bar */
.rapls-pic-progress-bar {
    width: 100%;
    height: 24px;
    background: #dcdcde;
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.rapls-pic-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Stats Table */
.rapls-pic-stats-table {
    width: auto;
    min-width: 300px;
    margin: 15px 0;
}

.rapls-pic-stats-table td {
    padding: 8px 12px;
}

.rapls-pic-stats-table td:first-child {
    font-weight: 600;
    width: 180px;
}

/* Capabilities Table */
.rapls-pic-capabilities-table {
    margin: 15px 0;
}

.rapls-pic-capabilities-table th,
.rapls-pic-capabilities-table td {
    padding: 10px 12px;
    vertical-align: top;
}

.rapls-pic-capabilities-table th {
    text-align: left;
    background: #f6f7f7;
}

/* Requirements List */
.rapls-pic-requirements-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rapls-pic-requirements-list li {
    margin: 4px 0;
    padding: 2px 0;
}

/* Status Indicators */
.rapls-pic-status-ok {
    color: #00a32a;
}

.rapls-pic-status-error {
    color: #d63638;
}

/* Media Library Column */
.column-rapls_pic_thumbnail {
    width: 80px;
    text-align: center;
}

.rapls-pic-status {
    font-size: 18px;
    line-height: 1;
}

.rapls-pic-status-yes {
    color: #00a32a;
}

.rapls-pic-status-no {
    color: #d63638;
}

/* Log Container */
.rapls-pic-log-container {
    margin-top: 20px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    max-height: 300px;
    overflow: hidden;
}

.rapls-pic-log-container h4 {
    margin: 0;
    padding: 10px 12px;
    background: #dcdcde;
    font-size: 13px;
}

.rapls-pic-log-content {
    padding: 10px 12px;
    max-height: 250px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;
}

.rapls-pic-log-content .log-success {
    color: #00a32a;
}

.rapls-pic-log-content .log-error {
    color: #d63638;
}

.rapls-pic-log-content .log-info {
    color: #72aee6;
}

/* Buttons */
#pic-bulk-start,
#pic-bulk-stop {
    margin-left: 5px;
}

#pic-bulk-stop {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

#pic-bulk-stop:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

#pic-bulk-stop:disabled {
    background: #dcdcde !important;
    border-color: #dcdcde !important;
    color: #a7aaad !important;
}

/* Bulk Status Message */
#pic-bulk-status {
    font-weight: 600;
    margin: 10px 0;
}

/* Form Table Adjustments */
.rapls-pic-settings .form-table th {
    width: 200px;
}

.rapls-pic-settings .form-table td fieldset label {
    margin: 0;
}

/* Support Section */
.rapls-pic-support-section {
    margin-top: 30px;
    padding: 20px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-align: center;
}

.rapls-pic-support-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.rapls-pic-support-section p {
    margin-bottom: 15px;
    color: #50575e;
}

.rapls-pic-bmc-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #ffdd00;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.rapls-pic-bmc-button:hover {
    background: #e5c700;
    color: #000;
}

.rapls-pic-bmc-icon {
    margin-right: 8px;
    font-size: 18px;
}

.rapls-pic-support-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rapls-pic-review-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #2271b1;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #2271b1;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.rapls-pic-review-button:hover {
    background: #2271b1;
    color: #fff;
}

.rapls-pic-review-icon {
    margin-right: 8px;
    font-size: 18px;
    color: #f0b849;
}

.rapls-pic-review-button:hover .rapls-pic-review-icon {
    color: #ffdd00;
}

.rapls-pic-review-note {
    margin-top: 12px;
    font-size: 12px;
    color: #787c82 !important;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .rapls-pic-settings .form-table th {
        width: auto;
    }

    .rapls-pic-range {
        width: 100%;
        max-width: 200px;
    }

    .rapls-pic-stats-table {
        width: 100%;
    }
}
