﻿/* ==========================================================================
   NOTIFICATION MANAGEMENT - BLUE THEME (Synced with App)
   Prefix: .nt-*
   ========================================================================== */

:root {
    /* Blue Theme matches app.css */
    --nt-primary: #1b6ec2;
    --nt-primary-hover: #155594;
    --nt-primary-soft: #eef7ff;
    --nt-success: #22c55e;
    --nt-warning: #f59e0b;
    --nt-danger: #ef4444;
    --nt-danger-soft: #fee2e2;
    --nt-text-main: #1e293b;
    --nt-text-muted: #64748b;
    --nt-bg-body: #f8fafc;
    --nt-bg-white: #ffffff;
    --nt-border: #e2e8f0;
    --nt-radius: 10px;
    --nt-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* --- LAYOUT --- */
.nt-page-container {
    padding: 24px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--nt-bg-body);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--nt-text-main);
}

.nt-animate-fade-in {
    animation: ntFadeIn 0.3s ease-out;
}

@keyframes ntFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CARDS --- */
.nt-card {
    background: var(--nt-bg-white);
    border-radius: var(--nt-radius);
    box-shadow: var(--nt-shadow);
    border: 1px solid var(--nt-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.nt-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--nt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-wrap: wrap;
    gap: 12px;
}

.nt-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nt-text-main);
}

    .nt-card-title .material-icons-round {
        font-size: 28px;
        color: var(--nt-primary);
    }

/* --- TOOLBAR --- */
.nt-toolbar {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid var(--nt-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.nt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nt-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nt-text-muted);
}

.nt-input, .nt-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--nt-border);
    border-radius: 8px;
    font-size: 0.9rem;
    height: 40px;
    transition: all 0.2s;
    background-color: #fff;
}

    .nt-input:focus, .nt-select:focus {
        border-color: var(--nt-primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.15);
    }

.nt-input-wrapper {
    position: relative;
    width: 100%;
}

.nt-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.nt-input-has-icon {
    padding-left: 38px;
}

/* --- BUTTONS --- */
.nt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nt-btn-primary {
    background: var(--nt-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(27, 110, 194, 0.2);
}

    .nt-btn-primary:hover {
        background: var(--nt-primary-hover);
        transform: translateY(-1px);
    }

.nt-btn-outline {
    background: white;
    border-color: var(--nt-border);
    color: var(--nt-text-main);
}

    .nt-btn-outline:hover {
        border-color: var(--nt-primary);
        color: var(--nt-primary);
        background: var(--nt-primary-soft);
    }

.nt-btn-danger-soft {
    background: var(--nt-danger-soft);
    color: var(--nt-danger);
}

    .nt-btn-danger-soft:hover {
        background: #fecaca;
    }

/* --- LIST VIEW --- */
.nt-list-container {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.nt-list-item {
    display: flex;
    padding: 20px 24px;
    border-bottom: 1px solid var(--nt-border);
    transition: background 0.1s;
    cursor: pointer;
    gap: 20px;
    align-items: flex-start;
}

    .nt-list-item:hover {
        background-color: #f8fafc;
    }

.nt-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--nt-primary-soft);
    border-radius: 12px;
    color: var(--nt-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.nt-date-day {
    font-size: 1.4rem;
    line-height: 1;
}

.nt-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.nt-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nt-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--nt-text-main);
}

.nt-item-desc {
    font-size: 0.9rem;
    color: var(--nt-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-item-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.nt-badge {
    padding: 2px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.75rem;
}

/* --- GRID MENU --- */
.nt-menu-viewport {
    flex: 1;
    overflow: auto;
    background: #fff;
    position: relative;
}

.nt-menu-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate;
    border-spacing: 0;
}

    .nt-menu-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #005b9f;
        color: #ffffff;
        font-weight: 700;
        text-transform: uppercase;
        padding: 16px;
        text-align: center;
        border-bottom: 2px solid var(--nt-border);
        border-right: 1px solid var(--nt-border);
    }

    .nt-menu-table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 9;
        background-color: #fff;
        border-right: 2px solid var(--nt-border);
        font-weight: 700;
        color: var(--nt-text-main);
        width: 120px;
        text-align: center;
        vertical-align: middle;
    }

    .nt-menu-table td {
        padding: 12px;
        border-bottom: 1px solid var(--nt-border);
        border-right: 1px solid var(--nt-border);
        vertical-align: top;
        height: 140px;
        transition: background 0.2s;
    }

        .nt-menu-table td:hover {
            background-color: #f8fafc;
        }

.nt-dish-card {
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nt-dish-card img {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        object-fit: cover;
        background: #f3f4f6;
    }

.nt-dish-name {
    font-weight: 600;
    color: #374151;
}

/* --- MODAL --- */
.nt-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.nt-modal-dialog {
    width: 90%;
    max-width: 600px;
    margin: 20px;
}

.nt-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: ntPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes ntPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nt-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--nt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nt-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.nt-modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid var(--nt-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 640px) {
    .nt-page-container {
        padding: 12px;
    }

    .nt-toolbar {
        grid-template-columns: 1fr;
    }

    .nt-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nt-list-item {
        flex-direction: column;
        gap: 12px;
    }

    .nt-date-box {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
}
