/* Error Modal Styles */
.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-modal.show {
    display: flex;
    opacity: 1;
}

.error-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.error-modal.show .error-modal-content {
    transform: translateY(0);
}

.error-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    line-height: 1;
}

.error-modal-close:hover {
    color: #343a40;
}

.error-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.error-modal-message {
    margin: 0;
    color: #343a40;
    line-height: 1.5;
}

.error-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.error-modal-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.error-modal-button:hover {
    background-color: #c82333;
}

/* Animation for error message */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-modal.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
