/* =========================================================
   SoftITO Sınav Portalı - Modern Modal & Toast Stilleri
   (Mor/Violet renk içermez, modern Slate & Ocean Blue teması)
========================================================= */

.app-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.app-modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.app-modal-box {
    background: #162032;
    border: 1px solid #26354a;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.92) translateY(10px);
    opacity: 0;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-box.visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.app-modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.app-modal-icon.icon-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.app-modal-icon.icon-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.app-modal-icon.icon-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.app-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
    line-height: 1.35;
}

.app-modal-message {
    font-size: 0.94rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 24px;
    white-space: pre-line;
}

.app-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.app-modal-actions .btn {
    flex: 1;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.app-modal-actions .btn-secondary {
    background: #1e2b42;
    color: #cbd5e1;
    border: 1px solid #334460;
}
.app-modal-actions .btn-secondary:hover {
    background: #273752;
    color: #ffffff;
}

.app-modal-actions .btn-primary {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.app-modal-actions .btn-primary:hover {
    background: #0369a1;
}

.app-modal-actions .btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.app-modal-actions .btn-danger:hover {
    background: #dc2626;
}

.app-modal-actions .btn-success {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.app-modal-actions .btn-success:hover {
    background: #059669;
}

/* =========================================================
   Toast Bildirimleri
========================================================= */
.app-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-toast {
    pointer-events: auto;
    background: #162032;
    border: 1px solid #26354a;
    border-radius: 10px;
    padding: 12px 18px;
    color: #f8fafc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.app-toast.toast-success {
    border-left: 4px solid #10b981;
}

.app-toast.toast-danger {
    border-left: 4px solid #ef4444;
}

.app-toast.toast-warning {
    border-left: 4px solid #f59e0b;
}

.app-toast.toast-info {
    border-left: 4px solid #0284c7;
}

.toast-icon {
    font-size: 1.15rem;
}

.toast-msg {
    line-height: 1.4;
}
