html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff;
    padding-top: 24px; /* offset for fixed topbar */
}

.topbar {
    background-color: #003366;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.topbar h5 {
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.topbar .user {
    display: flex;
    align-items: center;
}

.topbar .user i {
    font-size: 20px;
    margin-left: 10px;
}

.sidebar {
    background-color: #083b77;
    color: white;
    min-height: 95vh;
    padding: 20px 12px;
}

.sidebar .profile {
    margin-bottom: 40px;
}

.sidebar .nav-title {
    font-size: 12px;
    font-weight: bold;
    background-color: #002752;
    margin-bottom: 10px;
    padding: 8px 16px;
}

.sidebar .nav-link {
    background-color: white;
    color: black;
    border-radius: 30px;
    font-weight: bold;
    font-size: 10pt;
    text-align: left;
    display: flex;
    align-items: center;
    transition: 0.3s;
    margin: 8px 0;
    padding: 8px 10px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #00cfff;
    color: black;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.dashboard-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: 0.3s;
    align-items: center;
}

.dashboard-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dashboard-card .icon {
    width: 80px;
    height: 80px;
    background-color: #3dc3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: black;
    flex-shrink: 0;
}

.dashboard-card .info {
    padding: 20px;
    flex-grow: 1;
}

.dashboard-card .info h5 {
    font-weight: bold;
    margin-bottom: 8px;
}

.dashboard-card .info a {
    font-size: 14px;
    color: #003366;
    text-decoration: none;
}

.dashboard-card .info a:hover {
    text-decoration: underline;
}

/*.dropdown-menu {
    animation: dropdownFade 0.3s ease;
}*/

.dropdown-menu {
    visibility: hidden;
    transition: opacity 0.15s ease-in-out;
    opacity: 0;
}

.dropdown.show .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .topbar {
        flex-direction: column;
        text-align: center;
    }

    .sidebar {
        text-align: center;
    }

    .sidebar .nav-link {
        justify-content: center;
    }
}


.hidden {
    display: none !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-circle {
    border-radius: 50% !important;
}

.img-circle {
    border-radius: 50%;
}

.rounded-card {
    border: 1px solid #dee2e6;       /* Light border like Bootstrap cards */
    border-radius: 1rem;             /* Rounded corners */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
    padding: 1rem;                   /* Spacing inside */
    background-color: #fff;          /* White background */
}

.img-hover {
    transition: transform 0.3s ease;
}

.rounded-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu-right-side {
    top: 0 !important;
    left: 100% !important;
    margin-left: 0;
}

.notification-item {
    position: relative;
    padding-right: 70px; /* Space for date */
}

.notification-date {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.75rem;
    color: #888;
}

.attachments .attachment-item {
    width: 100px;
    margin: 5px;
    text-align: center;
    position: relative;
}

.attachments .thumb {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.attachments .thumb img,
.attachments .thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachments .thumb:hover {
    transform: scale(1.05);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3);
}

.attachments small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Delete button inside thumbnail */
.attachments .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}

.attachments .attachment-item:hover .delete-btn {
    display: block;
}


div.gallery {
    position: relative;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    float: left;
    cursor: pointer;
}

/* Hover effect */
div.gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    border-color: transparent;
}

div.gallery img,
div.gallery video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

div.desc {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
}

/* Delete button */
.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Show delete button on hover */
div.gallery:hover .delete-btn {
    display: inline-block;
    animation: fadeIn 0.2s ease;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.semester-cell:hover .set-current-btn {
    display: inline-block !important;
}

#notificationDropdown .dropdown-menu {
  width: 320px; /* fixed width */
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal; /* allow text to wrap */
}

#noti_count {
    border-radius: 50%;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}