/**
 * Lock Conflict Modal Styles
 * Based on unified modal design pattern
 */

.lock-conflict-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.lock-conflict-modal.fade-out {
    opacity: 0;
}

.lock-conflict-modal.fade-out .lock-conflict-content {
    animation: lockModalFadeOut 0.3s ease-out;
}

.lock-conflict-content {
    background: var(--cream);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 90%;
    max-width: 450px;
    animation: lockModalFadeIn 0.3s ease-out;
    text-align: center;
}

@keyframes lockModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes lockModalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Icon at top of modal */
.lock-conflict-icon {
    margin-bottom: 20px;
}

.lock-conflict-icon .material-symbols-outlined {
    font-size: 64px;
    color: var(--accent-orange);
    animation: lockIconPulse 2s ease-in-out infinite;
}

@keyframes lockIconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Title styling */
.lock-conflict-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0 0 15px 0;
}

/* Message styling */
.lock-conflict-message {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Lock details */
.lock-conflict-details {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.lock-conflict-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.lock-conflict-details .detail-label {
    font-size: 13px;
    color: #666;
}

.lock-conflict-details .detail-value {
    font-size: 13px;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Action buttons container */
.lock-conflict-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Base button styling */
.lock-conflict-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 160px;
    justify-content: center;
}

.lock-conflict-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Primary button (Take Over / Take Back) */
.lock-conflict-btn.primary {
    background: var(--accent-orange);
    color: white;
}

.lock-conflict-btn.primary:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

/* Secondary button (Select Different / Exit) */
.lock-conflict-btn.secondary {
    background: var(--dark-gray);
    color: white;
}

.lock-conflict-btn.secondary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .lock-conflict-content {
        padding: 30px 20px;
    }

    .lock-conflict-actions {
        flex-direction: column;
    }

    .lock-conflict-btn {
        width: 100%;
    }
}
