/**
 * WP Cloner - Admin Stilleri
 */

.alldami-wrap {
    max-width: 1200px;
    margin: 20px auto;
}

.alldami-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alldami-wrap h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.alldami-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .alldami-container {
        grid-template-columns: 1fr;
    }
}

.alldami-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.alldami-panel h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.alldami-panel h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1d2327;
}

.alldami-info-table {
    width: 100%;
    border-collapse: collapse;
}

.alldami-info-table th,
.alldami-info-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.alldami-info-table th {
    width: 40%;
    color: #50575e;
    font-weight: 500;
}

.alldami-info-table code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
}

.alldami-size {
    font-weight: 600;
}

.alldami-highlight {
    background: #dff0d8;
    padding: 2px 8px;
    border-radius: 3px;
    color: #3c763d;
}

.alldami-success {
    color: #00a32a;
}

.alldami-warning {
    color: #dba617;
}

.alldami-error {
    color: #d63638;
}

.alldami-info-box {
    background: #f6f7f7;
    border-left: 4px solid #72aee6;
    padding: 15px;
    margin: 15px 0;
}

.alldami-info-box p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alldami-info-box ul {
    margin: 10px 0 0 30px;
}

.alldami-export-actions {
    text-align: center;
    margin: 30px 0;
}

.alldami-export-actions .button-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alldami-export-actions .button-hero .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.alldami-progress-container {
    margin: 20px 0;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 4px;
}

.alldami-progress-bar {
    height: 30px;
    background: #e5e5e5;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.alldami-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.alldami-progress-text {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}

.alldami-steps-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.alldami-steps-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.alldami-steps-list .step-running .step-icon {
    color: #0073aa;
    animation: spin 1s linear infinite;
}

.alldami-steps-list .step-completed .step-icon {
    color: #00a32a;
}

.alldami-steps-list .step-error .step-icon {
    color: #d63638;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.alldami-log {
    background: #1d2327;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    padding: 15px;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.alldami-log .log-time {
    color: #72aee6;
}

.alldami-log .log-info {
    color: #50d450;
}

.alldami-log .log-warning {
    color: #ffba00;
}

.alldami-log .log-error {
    color: #ff6b6b;
}

.alldami-control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.alldami-result-container {
    text-align: center;
    padding: 30px;
}

.alldami-success-message .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #00a32a;
}

.alldami-success-message h3 {
    color: #00a32a;
    font-size: 24px;
}

.alldami-download-box {
    background: #f0f6fc;
    border: 2px dashed #72aee6;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.alldami-upload-area {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.alldami-upload-area:hover,
.alldami-upload-area.drag-over {
    border-color: #0073aa;
    background: #f0f6fc;
}

.alldami-upload-content .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #c3c4c7;
}

.alldami-upload-area:hover .dashicons {
    color: #0073aa;
}

.alldami-uploaded-file {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
    margin-top: 20px;
}

.alldami-file-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #0073aa;
}

.alldami-file-details {
    flex: 1;
}

.alldami-preflight-warnings {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    padding: 15px;
    margin: 15px 0;
}

.alldami-preflight-errors {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 15px;
    margin: 15px 0;
}

.alldami-import-actions {
    text-align: center;
    margin: 30px 0;
}

.alldami-complete-info {
    text-align: left;
    background: #f0f6fc;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.alldami-warning-notice p {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Accordion Log Styles */
.alldami-log-accordion {
    margin-top: 15px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.alldami-log-header {
    background: #f6f7f7;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.alldami-log-header:hover {
    background: #e5e5e5;
}

.alldami-log-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.alldami-accordion-icon {
    transition: transform 0.3s ease;
}

.alldami-log-accordion.collapsed .alldami-accordion-icon {
    transform: rotate(-90deg);
}

/* Daha geniş alan */
.alldami-log-content {
    max-height: 600px;
    /* Yeterince büyük bir değer */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.alldami-log-accordion.collapsed .alldami-log-content {
    max-height: 0;
}

.alldami-log-content .alldami-log {
    border-radius: 0;
    max-height: 300px;
    /* Log penceresi yüksekliği */
    overflow-y: auto;
    /* Scroll burada olacak */
}

/* =====================================================
   Import Confirmation Modal
   ===================================================== */
.alldami-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: alldami-fadeIn 0.25s ease;
}

@keyframes alldami-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes alldami-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alldami-modal {
    background: #fff;
    border-radius: 12px;
    width: 560px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: alldami-slideUp 0.3s ease;
}

.alldami-modal-header {
    text-align: center;
    padding: 20px 24px 0;
}

.alldami-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fef3c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.alldami-modal-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #d97706;
}

.alldami-modal-header h2 {
    margin: 0 0 2px;
    font-size: 17px;
    color: #1d2327;
}

.alldami-modal-subtitle {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
}

.alldami-modal-body {
    padding: 14px 24px;
}

.alldami-modal-warnings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alldami-modal-warning-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s;
}

.alldami-modal-warning-item:hover {
    border-color: #d1d5db;
}

.alldami-modal-warning-item.alldami-warning-critical {
    background: #fef2f2;
    border-color: #fecaca;
}

.alldami-modal-warning-item.alldami-warning-critical:hover {
    border-color: #f87171;
}

.alldami-modal-warning-item>.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-top: 2px;
}

.alldami-modal-warning-item.alldami-warning-critical>.dashicons {
    color: #ef4444;
}

.alldami-modal-warning-item strong {
    display: block;
    font-size: 12.5px;
    color: #1f2937;
    margin-bottom: 1px;
}

.alldami-modal-warning-item p {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.alldami-modal-footer {
    padding: 12px 24px 18px;
    border-top: 1px solid #e5e7eb;
}

.alldami-modal-confirm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #92400e;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.alldami-modal-confirm-label:hover {
    background: #fef3c7;
}

.alldami-modal-confirm-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #d97706;
}

.alldami-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.alldami-modal-buttons .button {
    padding: 6px 20px;
    height: auto;
    line-height: 1.6;
}

.alldami-modal-buttons #alldami-modal-confirm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
    transition: opacity 0.2s;
}

.alldami-modal-buttons #alldami-modal-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.alldami-modal-buttons #alldami-modal-confirm .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}