﻿/* ============================================================
   Notify.css
   Lightweight notification / confirmation dialog
   ============================================================ */

.notify-wrapper {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;
    transition: opacity 0.25s ease;
}

.notify-wrapper.show {
    opacity: 1;
}

.notify-window {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 420px;
    max-width: calc(100% - 30px);

    background: #ffffff;
    border-radius: 6px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);

    transform: translate(-50%, -45%) scale(0.95);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;

    opacity: 0;
    overflow: hidden;

    font-family: Arial, Helvetica, sans-serif;
}

.notify-wrapper.show .notify-window {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notify-header {
    display: flex;
    align-items: center;
    padding: 18px 20px 10px;
}

.notify-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;

    margin-right: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.notify-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.notify-title {
    margin: 0;
    padding: 0;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.notify-content {
    padding: 5px 20px 20px;
}

.notify-message {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: #555555;

    word-wrap: break-word;
}

.notify-buttons {
    padding: 12px 20px;

    text-align: right;

    border-top: 1px solid #eeeeee;
    background: #fafafa;
}

.notify-btn {
    min-width: 75px;

    padding: 7px 16px;
    margin-left: 8px;

    border: 1px solid #cccccc;
    border-radius: 4px;

    background: #ffffff;
    color: #333333;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.notify-btn:hover {
    background: #f2f2f2;
}

.notify-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.notify-btn-ok {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.notify-btn-ok:hover {
    background: #0069d9;
    border-color: #0062cc;
    color: #ffffff;
}

.notify-btn-cancel {
    background: #ffffff;
    border-color: #cccccc;
}

/* Alert */
.notify-alert .notify-icon,
.notify-alert .notify-title {
    color: #d39e00;
}

/* Error */
.notify-error .notify-icon,
.notify-error .notify-title {
    color: #dc3545;
}

/* Success */
.notify-success .notify-icon,
.notify-success .notify-title {
    color: #198754;
}

/* Confirm */
.notify-confirm .notify-icon,
.notify-confirm .notify-title {
    color: #007bff;
}

/* Mobile */
@media (max-width: 480px) {

    .notify-window {
        width: calc(100% - 20px);
        max-width: none;
    }

    .notify-header {
        padding: 15px 15px 8px;
    }

    .notify-content {
        padding: 5px 15px 15px;
    }

    .notify-buttons {
        padding: 10px 15px;
    }

    .notify-title {
        font-size: 18px;
    }
}
