/* =========================================
   O İŞ BENDE - GLOBAL UI CORE CSS
   Branded Loading & Notification System
   ========================================= */

/* GLOBAL LOADING OVERLAY */
.nar-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nar-loader-overlay.show {
    display: flex;
    opacity: 1;
}

.nar-loader-content {
    text-align: center;
    max-width: 300px;
}

.nar-loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nar-loader-logo {
    width: 80px;
    z-index: 2;
    animation: narPulse 2s infinite ease-in-out;
}

.nar-loader-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 4px solid transparent;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: narRotate 2s linear infinite;
}

.nar-loader-ring::before,
.nar-loader-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ec4899;
    border-radius: 50%;
    top: 50%;
    left: -6px;
}

.nar-loader-ring::after {
    left: auto;
    right: -6px;
    background: #ff9700;
}

.nar-loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 15px;
    min-height: 1.5rem;
}

@keyframes narRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes narPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* NOTIFICATION TOAST SYSTEM */
.nar-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nar-toast {
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 5px solid #7c3aed;
    animation: narToastIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.nar-toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nar-toast-message {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

.nar-toast-close {
    margin-left: auto;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0.7;
}

.nar-toast-close:hover {
    opacity: 1;
}

/* Toast Variants */
.nar-toast.success { border-left-color: #10b981; }
.nar-toast.success .nar-toast-icon { color: #10b981; }

.nar-toast.error { border-left-color: #ef4444; }
.nar-toast.error .nar-toast-icon { color: #ef4444; }

.nar-toast.warning { border-left-color: #f59e0b; }
.nar-toast.warning .nar-toast-icon { color: #f59e0b; }

.nar-toast.info { border-left-color: #3b82f6; }
.nar-toast.info .nar-toast-icon { color: #3b82f6; }

@keyframes narToastIn {
    0% { transform: translateY(-100px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes narToastOut {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-20px) scale(0.9); opacity: 0; }
}

.nar-toast.fade-out {
    animation: narToastOut 0.4s ease forwards;
}

/* GLOBAL CONFIRM MODAL SYSTEM */
.nar-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nar-confirm-overlay.show {
    display: flex;
    opacity: 1;
}

.nar-confirm-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nar-confirm-overlay.show .nar-confirm-modal {
    transform: scale(1);
}

.nar-confirm-icon {
    width: 64px;
    height: 64px;
    background: #fef3c7;
    color: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.nar-confirm-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.nar-confirm-message {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 28px;
}

.nar-confirm-actions {
    display: flex;
    gap: 12px;
}

.nar-confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.nar-confirm-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.nar-confirm-btn.cancel:hover {
    background: #e2e8f0;
}

.nar-confirm-btn.confirm {
    background: #7c3aed;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.nar-confirm-btn.confirm:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .nar-confirm-modal { padding: 24px; }
    .nar-confirm-actions { flex-direction: column-reverse; }
}
