/* custom-notify.css - Apple-style notification styles */

.custom-notify-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-notify {
    pointer-events: auto;
    min-width: 320px;
    max-width: 400px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(255, 255, 255, 0.1);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.custom-notify.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-notify.hide {
    transform: translateX(400px);
    opacity: 0;
}

.custom-notify-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.custom-notify-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-notify-icon svg {
    width: 100%;
    height: 100%;
}

.custom-notify-success .custom-notify-icon {
    color: #34c759;
}

.custom-notify-error .custom-notify-icon {
    color: #ff3b30;
}

.custom-notify-warning .custom-notify-icon {
    color: #ff9500;
}

.custom-notify-info .custom-notify-icon {
    color: #007aff;
}

.custom-notify-text {
    flex: 1;
}

.custom-notify-title {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: FiraSans, Krasar, sans-serif;
}

.custom-notify-message {
    font-size: 13px;
    color: #98989d;
    line-height: 1.4;
    font-family: FiraSans, Krasar, sans-serif;
}

.custom-notify-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: #98989d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    font-family: FiraSans, Krasar, sans-serif;
}

.custom-notify-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.custom-notify-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-end;
}

.custom-notify-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: FiraSans, Krasar, sans-serif;
}

.custom-notify-btn-yes {
    background: #007aff;
    color: white;
}

.custom-notify-btn-yes:hover {
    background: #0051d5;
    transform: scale(0.98);
}

.custom-notify-btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.custom-notify-btn-no:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.custom-notify-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.custom-notify-progress-bar {
    height: 100%;
    width: 100%;
    background: #007aff;
    animation: customNotifyProgress linear forwards;
    transform-origin: left;
}

.custom-notify-success .custom-notify-progress-bar {
    background: #34c759;
}

.custom-notify-error .custom-notify-progress-bar {
    background: #ff3b30;
}

.custom-notify-warning .custom-notify-progress-bar {
    background: #ff9500;
}

/* Input field styles */
.custom-notify-input-wrapper {
    margin-top: 8px;
    margin-bottom: 4px;
}

.custom-notify-input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.custom-notify-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: white;
}

.custom-notify-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.custom-notify-input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

/* Type-specific input styles */
.custom-notify-error .custom-notify-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.custom-notify-success .custom-notify-input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
}

.custom-notify-warning .custom-notify-input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.1);
}

@keyframes customNotifyProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}