/* Admin Portal Custom Styles - UFL Corporate Gift Register */

:root{
    --primary: #059669; /* green actions */
    --primary-dark: #047857;
    --brand-red: #dc2626; /* sidebar / important */
    --muted: #6b7280;
}

html {
    min-height: 100vh;
    overscroll-behavior: none;
}

body.admin-portal {
    background: #f6faff;
    color: #111;
    font-family: Georgia, serif;
    font-size: 13px;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior: none;
}
.admin-header {
    padding: 18px 18px 6px 18px;
    background: linear-gradient(90deg, var(--brand-red) 0%, #b91c1c 100%);
    color: #fff;
    text-align: left;
    border-bottom: 4px solid var(--brand-red);
    box-shadow: 0 4px 24px rgba(220,38,38,0.16), 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 0 0 16px 0;
    position: relative;
    overflow: hidden;
}
.admin-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-red) 0%, #f87171 100%);
    opacity: 0.85;
    border-radius: 0 0 12px 0;
}

.admin-header h1 {
    font-size: 1.05rem;
    margin: 0 0 4px 0;
    font-family: Georgia, serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.admin-header h2 {
    font-size: 0.85rem;
    margin: 0 0 0 2px;
    font-family: Georgia, serif;
    font-weight: normal;
    color: #e3eafc;
}

.admin-table-container {
    margin: 24px 16px 0 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 12px;
    font-family: Georgia, serif;
    box-shadow: 0 2px 8px rgba(220,38,38,0.12);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    border: 1px solid var(--brand-red);
    padding: 8px 12px;
    text-align: left;
}

.admin-table th {
    background: var(--brand-red);
    color: #fff;
    font-weight: bold;
}

.admin-table tr:nth-child(even) {
    background: #fef2f2;
}

.admin-table tr:hover {
    background: #fee2e2;
}

.view-form-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 11px;
    transition: background 0.2s;
}

.view-form-btn:hover {
    background: var(--primary-dark);
}

.delete-gift-btn {
    background: #fff;
    color: var(--brand-red);
    border: 1.5px solid var(--brand-red);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 1px 4px #e5393522;
}
.delete-gift-btn:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

.settle-gift-btn {
    background: #f8faf8;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 1px 4px rgba(5,150,105,0.08);
}
.settle-gift-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Modal Styles */
#admin-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    justify-content: center;
    align-items: center;
}

#admin-modal .modal-content {
    background: linear-gradient(135deg, #fff 80%, rgba(220,38,38,0.06) 100%);
    padding: 28px 28px 20px 28px;
    border-radius: 18px 8px 18px 8px;
    min-width: 340px;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(5,150,105,0.2), 0 2px 8px rgba(220,38,38,0.12);
    border: 2.5px solid var(--primary);
    font-family: Georgia, serif;
    color: #222;
    position: relative;
    animation: modalPopIn 0.25s cubic-bezier(.4,2,.6,1) 1;
    transition: box-shadow 0.2s;
}

@keyframes modalPopIn {
    0% { transform: scale(0.92) translateY(40px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

#admin-modal .close-modal {
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    cursor: pointer;
    font-size: 13px;
    font-family: Georgia, serif;
    font-weight: bold;
    position: absolute;
    top: 18px;
    right: 18px;
    box-shadow: 0 2px 8px rgba(5,150,105,0.08);
    transition: background 0.2s;
}
#admin-modal .close-modal:hover {
    background: var(--primary);
}

#modal-details {
    margin-top: 12px;
    font-size: 13px;
    color: #222;
    line-height: 1.7;
    word-break: break-word;
}
.modal-qa {
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f0f0;
}
.modal-q {
    color: #1565c0;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
    display: block;
}
.modal-a {
    color: #222;
    font-size: 13px;
    margin-left: 8px;
    display: block;
}
#modal-details a {
    color: #e30613;
    text-decoration: underline;
    word-break: break-all;
    font-size: 13px;
}

#admin-modal .close-modal {
    background: #e30613;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    float: right;
    font-size: 12px;
}

#admin-modal .close-modal:hover {
    background: #00843d;
}

/* Notification Bell and Popup */
#notification-bell {
    position: fixed;
    top: 24px;
    right: 36px;
    background: #fff;
    color: #fff;
    background: linear-gradient(135deg,var(--primary),#34d399);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 6px 18px rgba(5,150,105,0.18), 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

#notification-bell:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(21,101,192,0.22), 0 4px 10px rgba(0,0,0,0.14);
}

#notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e30613;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16);
    line-height: 1;
}

/* Notification Popup Styles */
#notification-popup {
    position: fixed;
    top: 24px;
    right: 80px;
    min-width: 220px;
    max-width: 320px;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(5,150,105,0.06), 0 1.5px 6px rgba(0,0,0,0.06);
    padding: 18px 20px 14px 20px;
    z-index: 1200;
    display: none;
    font-family: Georgia, serif;
    font-size: 12px;
    transition: box-shadow 0.2s, background 0.2s;
}


#notification-popup .notification-card {
    background: #ecfdf5;
    border-radius: 10px;
    box-shadow: 0 1.5px 6px rgba(5,150,105,0.06);
    margin-bottom: 12px;
    padding: 12px 14px 10px 14px;
    display: flex;
    align-items: flex-start;
    position: relative;
    border-left: 4px solid var(--primary);
    transition: background 0.2s, box-shadow 0.2s;
}
#notification-popup .notification-card:last-child {
    margin-bottom: 0;
}
#notification-popup .notification-message {
    flex: 1;
    color: #222831;
    font-size: 12px;
    font-family: Georgia, serif;
    word-break: break-word;
    font-weight: 500;
}
#notification-popup .close-notification {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 2px;
    box-shadow: 0 1px 4px rgba(5,150,105,0.08);
    transition: background 0.2s;
}
#notification-popup .close-notification:hover {
    background: var(--primary-dark);
}

@media (max-width: 600px) {
    .admin-header, .admin-table-container {
        padding: 12px 4vw 8px 4vw;
    }
    #notification-bell {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    #notification-popup {
        top: 12px;
        right: 48px;
        min-width: 160px;
        font-size: 12px;
    }
}
