:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content grows to fill the page so the footer stays at the bottom */
main {
    flex: 1 0 auto;
    width: 100%;
}

footer {
    flex-shrink: 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* keep the navbar (and the menus that open from it) in front of the page content */
.navbar {
    position: relative;
    z-index: 1030;
}

/* notification bell (admins) */
.notif-toggle {
    font-size: 1.1rem;
}
.notif-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.notif-menu {
    width: 380px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}
.notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}
.notif-mark {
    border: 0;
    background: none;
    padding: 0;
    color: #4f5fc4;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.notif-list {
    max-height: 420px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    color: #1d2140;
    text-decoration: none;
}
.notif-item:last-child {
    border-bottom: 0;
}
.notif-item:hover {
    background: #f8f9fc;
    color: #1d2140;
}
.notif-item.is-unread {
    background: #f3f5ff;
}
.notif-icon {
    width: 36px;
    height: 36px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.notif-icon--order {
    background: #e3f6ec;
    color: #1b8a5a;
}
.notif-icon--expiry {
    background: #fdf1d8;
    color: #a86a0c;
}
.notif-body {
    flex: 1;
    min-width: 0;
}
.notif-title {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
}
.notif-detail {
    display: block;
    font-size: 0.85rem;
    color: #666b8c;
    overflow-wrap: anywhere;
}
.notif-when {
    flex: none;
    font-size: 0.75rem;
    color: #8a8fa8;
    white-space: nowrap;
}
.notif-empty {
    padding: 28px 16px;
    text-align: center;
    color: #666b8c;
}

.brand-logo {
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.btn-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: scale(1.05);
    color: white;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
}
