/* =============================================================================
   Laravel Notifyer — Stylesheet
   Package : ajaylove1shi/laravel-notifyer
   Version : 1.0.0
   ============================================================================= */

/* =====================================================
   1. NOTIFYER CONTAINER
   ===================================================== */

.laravel-notifyer-container {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-width: 470px;
}

/* ── Positions ── */

.laravel-notifyer-container.laravel-notifyer-top-left {
    left: 0;
    top: 12px;
    align-items: flex-start;
}

.laravel-notifyer-container.laravel-notifyer-top-right {
    right: 0;
    top: 12px;
    align-items: flex-end;
}

.laravel-notifyer-container.laravel-notifyer-bottom-left {
    left: 0;
    bottom: 12px;
    align-items: flex-start;
}

.laravel-notifyer-container.laravel-notifyer-bottom-right {
    right: 0;
    bottom: 12px;
    align-items: flex-end;
}

.laravel-notifyer-container.laravel-notifyer-top-center {
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    align-items: center;
}

.laravel-notifyer-container.laravel-notifyer-bottom-center {
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    align-items: center;
}


/* =====================================================
   2. NOTIFYER CARD
   ===================================================== */

.laravel-notifyer {
    width: 350px;
    min-width: 250px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    pointer-events: auto;

    opacity: 0;
    transform: translateY(-10px) scale(.98);

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.laravel-notifyer.laravel-notifyer-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* =====================================================
   3. NOTIFYER HEADER
   ===================================================== */

.laravel-notifyer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    justify-content: space-between;

    background: linear-gradient(90deg,
            rgba(59, 130, 246, 0.08),
            transparent);
}

.laravel-notifyer-icon {
    width: 36px;
    height: 36px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
    color: #ffffff;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);

    flex-shrink: 0;
}

.laravel-notifyer-icon .icon {
    font-size: 18px;
}

/* Title */

.laravel-notifyer-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

/* Meta */

.laravel-notifyer-meta {
    margin-left: auto;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}


/* =====================================================
   4. NOTIFYER BODY
   ===================================================== */

.laravel-notifyer-body {
    padding: 12px 15px;
    border-top: 1px solid #f1f5f9;

    font-size: 13px;
    line-height: 1.7;

    color: #4b5563;
}


/* =====================================================
   5. NOTIFYER FOOTER
   ===================================================== */

.laravel-notifyer-footer {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    background: #f9fafb;
    border-top: 1px solid #f1f5f9;

    font-size: 12px;
}

.laravel-notifyer-notice {
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
}

.laravel-notifyer-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

/* Action Buttons */

.laravel-notifyer-actions button {
    border: 1px solid #d1d5db;
    background: #ffffff;

    padding: 6px 10px;
    border-radius: 6px;

    cursor: pointer;
    font-size: 12px;

    transition: all .2s ease;
}

.laravel-notifyer-actions button:hover {
    background: #f3f4f6;
}

/* Close Button */

.laravel-notifyer-close-btn {
    border: none;
    background: transparent;

    cursor: pointer;

    color: #ef4444;
    font-size: 14px;

    transition: opacity .2s ease;
}

.laravel-notifyer-close-btn:hover {
    opacity: .7;
}


/* =====================================================
   6. PROGRESS BAR
   ===================================================== */

.laravel-notifyer-progress-wrap {
    height: 4px;
    background: #e5e7eb;
}

.laravel-notifyer-progress {
    width: 100%;
    height: 4px;
    background: #22c55e;
    transform-origin: left center;
}

.laravel-notifyer-progress.running {
    animation-name: laravel-notifyer-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes laravel-notifyer-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}


/* =====================================================
   7. STATUS VARIANTS
   ===================================================== */

/* ── SUCCESS ── */

.laravel-notifyer-success {
    border-color: #22c55e;
}

.laravel-notifyer-success .laravel-notifyer-icon {
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
}

.laravel-notifyer-success .laravel-notifyer-progress {
    background: #22c55e;
}

/* ── DANGER ── */

.laravel-notifyer-danger {
    border-color: #ef4444;
}

.laravel-notifyer-danger .laravel-notifyer-icon {
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
}

.laravel-notifyer-danger .laravel-notifyer-progress {
    background: #ef4444;
}

/* ── WARNING ── */

.laravel-notifyer-warning {
    border-color: #f59e0b;
}

.laravel-notifyer-warning .laravel-notifyer-icon {
    background: rgba(245, 158, 11, .12);
    color: #f59e0b;
}

.laravel-notifyer-warning .laravel-notifyer-progress {
    background: #f59e0b;
}

/* ── INFO ── */

.laravel-notifyer-info {
    border-color: #0ea5e9;
}

.laravel-notifyer-info .laravel-notifyer-icon {
    background: rgba(14, 165, 233, .12);
    color: #0ea5e9;
}

.laravel-notifyer-info .laravel-notifyer-progress {
    background: #0ea5e9;
}

/* ── PRIMARY ── */

.laravel-notifyer-primary {
    border-color: #6366f1;
}

.laravel-notifyer-primary .laravel-notifyer-icon {
    background: rgba(99, 102, 241, .12);
    color: #6366f1;
}

.laravel-notifyer-primary .laravel-notifyer-progress {
    background: #6366f1;
}


/* =====================================================
   8. MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 420px) {

    .laravel-notifyer-container {
        max-width: 92vw;
        padding: 8px;
    }

    .laravel-notifyer {
        width: calc(100vw - 24px);
        min-width: auto;
    }

    .laravel-notifyer-container.laravel-notifyer-top-left {
        left: 8px;
    }

    .laravel-notifyer-container.laravel-notifyer-top-right {
        right: 8px;
    }

    .laravel-notifyer-container.laravel-notifyer-bottom-left {
        left: 8px;
    }

    .laravel-notifyer-container.laravel-notifyer-bottom-right {
        right: 8px;
    }

    .laravel-notifyer-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .laravel-notifyer-actions {
        margin-left: 0;
        width: 100%;
    }
}