﻿html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

form[runat="server"] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#userContentWrapper {
    flex: 1; /* pushes footer down */
    padding: 20px;
}

/* Navbar */
.user-navbar {
    background-color: #007bff;
}

    .user-navbar .nav-link {
        color: #fff;
    }

        .user-navbar .nav-link:hover {
            color: #ffd700;
        }

/* Footer */
#userFooter {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

    #userFooter a {
        color: #ffd700;
        text-decoration: none;
    }

        #userFooter a:hover {
            text-decoration: underline;
        }

@media (max-width: 576px) {
    #userContentWrapper {
        padding: 10px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

    .navbar-nav .nav-link:hover {
        color: #ffd700 !important;
    }

.navbar-brand {
    font-size: 1.25rem;
}

#notifCount {
    font-size: 0.75rem;
    min-width: 18px;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

    .navbar-nav .nav-link:hover {
        color: #ffd700 !important;
    }

.navbar-brand {
    font-size: 1.25rem;
}

.notif-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    padding: 10px;
    z-index: 999;
}

/* Notification Card */
.notif-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f9fafb;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
    border: 1px solid #f1f1f5;
}

    /* Unread Highlight */
    .notif-item.unread {
        background-color: #eef4ff;
        border-left: 4px solid #3b82f6;
    }

    /* Hover */
    .notif-item:hover {
        background: #f1f6ff;
        transform: translateY(-1px);
    }


.notif-text {
    flex-grow: 1;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .notif-text .message {
        display: inline-block;
        font-size: 14px;
        color: #1f2937;
        line-height: 1.3;
    }

.notif-time {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.notif-item.unread {
    background-color: #eef4ff;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(59,130,246,0.15);
}


.notif-footer {
    border-top: 1px solid #eee;
    padding: 8px;
    background: #fafafa;
}

.view-all-link {
    font-size: 13px;
    font-weight: 500;
    color: #198754;
    text-decoration: none;
}

    .view-all-link:hover {
        text-decoration: underline;
    }

    .notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    z-index: 9999;
}

#notifCount .badge {
    position: absolute;
    top: 2px;
    right: -6px;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0;
    text-align: center;
    z-index: 10001;
}


@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 0.5s ease;
}


.notif-item.new-unread {
    background-color: #e8f5e9;
    border-left: 3px solid #2e7d32;
    transition: background-color 0.5s;
}

    .notif-item.new-unread:hover {
        background-color: #d0f0c0;
    }

@keyframes notif-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#notifCount span.pulse {
    animation: pulse 1.2s infinite;
}