/* ===================================
   Sync Conflict Modal Styles
   css/08-sync-conflict.css
   =================================== */

.sync-conflict-modal {
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Conflict version cards - side by side comparison */
.sync-conflict-version-card {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 2px solid var(--border);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sync-conflict-version-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sync-conflict-version-card.local {
    border-color: #2196f3;
}

.sync-conflict-version-card.cloud {
    border-color: #9c27b0;
}

/* "Newer" badge on version cards */
.sync-conflict-newer-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.sync-conflict-newer-badge.local {
    background: #2196f3;
}

.sync-conflict-newer-badge.cloud {
    background: #9c27b0;
}

/* Version card header */
.sync-conflict-version-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
}

.sync-conflict-version-header.local {
    color: #2196f3;
}

.sync-conflict-version-header.cloud {
    color: #9c27b0;
}

/* Timestamp display */
.sync-conflict-timestamp {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Item preview */
.sync-conflict-preview {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress indicator bar */
.sync-conflict-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    font-size: 13px;
}

/* Batch resolution buttons */
.sync-conflict-batch-btn {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
}

.sync-conflict-batch-btn .btn-title {
    font-weight: 600;
}

.sync-conflict-batch-btn .btn-subtitle {
    font-size: 11px;
    opacity: 0.7;
}

/* Navigation buttons for multiple conflicts */
.sync-conflict-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.sync-conflict-nav-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.sync-conflict-nav-btn:disabled {
    color: var(--text-light);
    cursor: default;
    opacity: 0.5;
}

/* Mobile responsiveness for conflict modal */
@media (max-width: 500px) {
    .sync-conflict-modal {
        max-width: 100% !important;
        margin: 10px;
    }

    /* Stack version cards vertically on mobile */
    .sync-conflict-versions {
        flex-direction: column !important;
    }
}
