/* imageToPdf.css */

.imagetopdf-config-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.config-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 1rem;
}

.orientation-selector,
.margin-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.orientation-card,
.margin-card {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 140px;
}

.orientation-card i {
    font-size: 2.5rem;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.orientation-card i.landscape {
    transform: rotate(90deg);
}

.orientation-card span,
.margin-card span {
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

.orientation-card:hover,
.margin-card:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.orientation-card.active,
.margin-card.active {
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.orientation-card.active i,
.orientation-card.active span,
.margin-card.active span {
    color: #3b82f6;
}

/* Margin Icons */
.margin-icon {
    width: 60px;
    height: 60px;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8fafc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.margin-icon i {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.margin-card.active .margin-icon {
    border-color: #3b82f6;
    border-style: solid;
    background-color: #fffefb;
}

.margin-card.active .margin-icon i {
    color: #3b82f6;
}

.margin-icon.small {
    padding: 8px;
}

.margin-icon.small i {
    font-size: 1.2rem;
}

.margin-icon.big {
    padding: 14px;
}

.margin-icon.big i {
    font-size: 0.9rem;
}

.margin-icon.none i {
    font-size: 1.8rem;
}

/* Custom Checkbox */
.custom-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    border: 2px solid #cbd5e1;
}

.custom-checkbox .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
}

/* Image List Rotation Controls */
.png-file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.png-rotate-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.png-rotate-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.png-rotate-btn:hover,
.doc-rotate-btn:hover {
    color: #3b82f6;
}

.doc-rotate-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.doc-rotate-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

/* Sortable Ghost Class */
.pdf-file-item-dragging {
    opacity: 0.5;
    background: #dbeafe !important;
    border: 2px dashed #3b82f6 !important;
}

@media (max-width: 640px) {
    .imagetopdf-config-panel {
        padding: 1.25rem;
    }

    .orientation-card,
    .margin-card {
        padding: 1rem;
        min-width: 100px;
    }
}

/* HTML to PDF Config Panel */
.htmltopdf-config-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Config Cards (Generic) */
.config-card {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.config-card:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.config-card.active {
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.15);
}

.config-card-icon {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.config-card.active .config-card-icon {
    color: #3b82f6;
}

.config-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

.config-card.active .config-card-label {
    color: #3b82f6;
}

.config-cards-row {
    flex-wrap: wrap;
}

/* Reset button styling */
.htmltopdf-reset-btn {
    text-decoration: none;
    font-weight: 600;
}

.htmltopdf-reset-btn:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .htmltopdf-config-panel {
        padding: 1.25rem;
    }

    .config-card {
        min-width: 80px;
        padding: 1rem 0.75rem;
    }
}