/* Custom Modal System Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    margin-bottom: 16px;
    text-align: center;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.modal-icon.info {
    background: #eff6ff;
    color: #3b82f6;
}

.modal-icon.warning {
    background: #fffbeb;
    color: #f59e0b;
}

.modal-icon.danger {
    background: #fef2f2;
    color: #ef4444;
}

.modal-title {
    font-size: 18px;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
}

.modal-body {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 24px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s;
    margin-top: 12px;
}

.modal-input:focus {
    border-color: #3b82f6;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.modal-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}