* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --light-blue-color: #4361ee;
    --dark-blue-color: #3f37c9;
    --dark-sky-blue-color: #4895ef;
    --light-sky-blue-color: #4cc9f0;
    --white-color: #fff;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --black-color: #000;
    --grey-color: #6c757d;
    --light-grey-color: #e9ecef;
    --border-radius-10: 10px;
    --border-radius-20: 20px;
    --border-radius-30: 30px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --lecturer: #3a0ca3;
    --course-adviser: #0ca348;
    --courses: #6ea30c;
    --hod: #a30c5a;
    --requests: #6e0ca3;
    --student: #4361ee;
    --announcements: #f72585;
    --success: #4cc9f0;
    --warning: #f8961e;
    --transition: all 0.3s ease;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif !important;
  scrollbar-color: var(--white-color) !important;
  scrollbar-width: thin !important;

  /* base background (dark or image) */
  background: url('../img/ecu-background.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* glass effect overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;

  background: rgba(0, 0, 0, 0.45); /* dim layer */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  z-index: -1; /* keep it behind dashboard content */
}

/* logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 40px; */
}
.logo i {
    font-size: 36px;
    color: var(--light-blue-color);
    margin-right: 12px;
}
.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}
.login-portal-body {
        min-height: 100vh; /* full height of the viewport */
    display: flex;     /* optional: for centering content */
    justify-content: center;
    align-items: center;

    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../img/ecu-background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 5px;
    display: none !important;
}
::-webkit-scrollbar-track {
    display: none !important;
}
::-webkit-scrollbar-thumb {
    background-color: var(--white-color); /* Thumb color */
    border-radius: 10px !important; /* Roundness of the thumb */
}
/* login header */
.login-header {
     text-align: center;
     margin-bottom: 40px;
}
.login-header h2 {
     font-family: 'Poppins', sans-serif;
     font-size: 20px;
     color: var(--dark-color);
     margin-bottom: 10px;
}
.login-header p {
     color: var(--grey-color);
     font-size: 16px;
}
/* flexbox container */
.flexbox-container{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; 
    justify-content: space-between;
}
.flexbox-item {
    flex: 1 1 calc(33.33% - 1rem); 
    min-width: 250px;
    padding: 1rem;
    box-sizing: border-box;
}
.flexbox-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    gap:1em;
    justify-content: center;
}
/* lazy animation load */
.lazy-animation {
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
.lazy-animation.visible {
    opacity: 1;
    transform: translateX(0);
}
/*grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
/* padding btn */
.padding-btn {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* form style */
.form-content {
    width:450px;
    border-radius: var(--border-radius-10);
     background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    padding:35px;
}
@media(max-width: 767px) {
    .form-content {
        width: 90%;
        padding:15px;
    }
}
/* input and select glass effect */
input[type="text"], 
input[type="number"],
input[type="file"],
input[type="password"],
input[type="email"],
input[type="datetime-local"],
input[type="date"],
select, textarea {
    outline: none !important;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
    backdrop-filter: blur(10px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */
    border-radius: var(--border-radius-10);
    font-size: 16px;
    transition: var(--transition);
    border: none;
    color: rgb(230, 228, 228) !important;
}

/* style dropdown text */
select option {
    background: rgba(194, 194, 194, 0.85); /* darker background for options */
    color: #181818;
    padding: 10px;
}

input::placeholder, textarea::placeholder {
    color:rgb(216, 216, 216);
}
/* checkbox password toggle */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.checkbox-container input[type="checkbox"] {
    accent-color: var(--light-blue-color) !important; /* Custom color for checkbox */
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.checkbox-container label {
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
/* buttons */
.primary-btn {
    background-color: var(--dark-blue-color);
    color: var(--white-color);
    border-radius: var(--border-radius-10);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover {
    background-color: var(--dark-sky-blue-color);
    transform: translateY(-2px);
}
/* sidebar */
.sidebar {
    height: 100vh;
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    color: var(--white-color);
    padding-top: 20px;
    overflow-y: scroll !important;
    transition: var(--transition);
    z-index: 100;
}
#mobile-nav {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    color: var(--white-color);
}


.sidebar .nav-link,
#mobile-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    color: var(--white-color);
    text-decoration: none;
    border-radius: var(--border-radius-10);
    transition: var(--transition);
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Hover effect */
.sidebar .nav-link:hover,
#mobile-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--dark-sky-blue-color);
    color: var(--light-color);
}

/*  Active (persistent highlight) */
.sidebar .nav-link.active,
#mobile-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2); /* slightly stronger than hover */
    border-left: 4px solid var(--dark-sky-blue-color);
    color: var(--light-color);
    font-weight: bold;
}


.content {
    padding: 20px;
}
#user-menu {
    display: block;
}
@media (max-width:991px) {
    .content {
        margin-top: 80px !important;
    }
    #user-menu {
        display: none;
    }
}
/* navbar toggle span bars */
.navbar-toggler {
    box-shadow: none !important;
    border: none !important;
    font-weight: 600 !important;
    margin-right: 10px !important;
}
.navbar-toggler, .toggle {
    padding: 0 !important;
}
#checkbox {
    display: none;
}
.toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition-duration: .5s;
}
.bars {
    width: 100%;
    height: 4px;
    background-color: var(--white-color);
    border-radius: 4px;
}
#bar2 {
    transition-duration: .8s;
}
#bar1, #bar2, #bar3 {
    width: 70%;
}
#checkbox:checked + .toggle .bars {
    position: absolute;
    transition-duration: .5s;
}
#checkbox:checked + .toggle #bar2 {
    transform: scaleX(0);
    transition-duration: .5s;
}
#checkbox:checked + .toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: .5s;
}
#checkbox:checked + .toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: .5s;
}
#checkbox:checked + .toggle {
    transition-duration: .5s;
    transform: rotate(180deg);
}
/* search bar */
.search-bar {
       background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    border-radius: var(--border-radius-30);
    padding: 12px 20px;
    width: 400px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.search-bar input {
    border: none !important;
    outline: none;
    font-size: 16px;
    width: 100%;
    padding: 5px;
    padding-left:15px;
   background: none !important;
  backdrop-filter: none;           /* frosted glass effect */
  -webkit-backdrop-filter: none;   /* Safari support */
    border-radius: 0px;
    font-size: 16px;
    transition: var(--transition);
}
.search-bar i {
    color: var(--light-color);
}
@media (max-width:868px) {
    .search-bar {
        width: 100%;
    }
}
/* Welcome Banner */
.welcome-banner {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    border-radius: var(--border-radius-10);
    padding: 30px;
    color: var(--white-color);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}
.welcome-banner h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}
.welcome-banner p {
    font-size: 16px;
    max-width: 600px;
    opacity: 0.9;
}
/*modal */
.modal-content {
  background: rgba(255, 255, 255, 0.15) !important; /* semi-transparent */
  backdrop-filter: blur(10px) !important;           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px) !important;   /* Safari support */
}
.modal-header bg-transparent border-0 text-white {
    background: transparent !important;
    border: none !important; 
}
/* card layout */
.card {
     background: rgba(255, 255, 255, 0.15) !important; /* semi-transparent */
  backdrop-filter: blur(10px) !important;           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px) !important;   /* Safari support */
    border-radius: var(--border-radius-10) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow) !important;
    transition: var(--transition) !important;
    border: none !important;
}
.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}
.card-header {
    position: relative !important;
    padding: 0px !important;
    
}
.card-header img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
}
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--light-blue-color);
    color: var(--light-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.card-content {
    padding: 20px;
}
.card-content h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: var(--light-color) !important
}
.card-content p {
    color: var(--light-grey-color);
    font-size: 14px;
    margin-bottom: 15px;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--grey-color);
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--light-grey-color);
    padding-bottom: 15px;
}
.card-meta div {
    display: flex;
    align-items: center;
}
.card-meta i {
    margin-right: 5px;
}
.card-actions {
    display: flex;
    gap:.5rem;
}
.card .btn {
    padding: 10px 20px !important;
    border-radius: var(--border-radius-30);
    font-weight: bold !important;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:small;
}
.card .btn i {
    margin-right: 8px;
    font-weight: bold !important;
}
.card .btn-primary {
    background: var(--light-blue-color);
    color: var(--light-color);
    flex: 1;
    margin-right: 10px;
}
.card .btn-primary:hover {
    background: var(--dark-blue-color);
}

.card .btn-outline {
    background: transparent;
    border: 1px solid var(--light-blue-color);
    color: var(--light-blue-color);
}
.card .btn-outline:hover {
    background: var(--light-blue-color);
    color: var(--light-color);
}
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}
/* Video Modal */
.video-container {
    position: relative;
    padding-top: 56.25% !important; /* 16:9 Aspect Ratio */
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.modal-header bg-transparent border-0 text-white {
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: var(--light-color) !important;
}
.modal-header bg-transparent border-0 text-white h3 {
    font-family: 'Poppins', sans-serif !important;
    color: var(--dark-color) !important;
}
.close-modal {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: var(--grey-color) !important;
}
.modal-body {
    padding: 20px !important;
}
/* Level Filter */
.level-filter {
    display: flex;
    gap: 10px;
    margin: 25px 0 20px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 16px;
    color:#fff;
    border-radius: 30px;
    border: 2px solid var(--light-grey-color);
      background: rgba(255, 255, 255, 0.15) !important; /* semi-transparent */
  backdrop-filter: blur(10px) !important;           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px) !important;   /* Safari support */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: small;
}
.filter-btn i {
    margin-right: 8px;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--light-blue-color);
    color: var(--white-color);
    border-color: var(--dark-blue-color);
}
.filter-btn.active i {
    color: var(--white-color);
}
@media (max-width: 576px) {
    .level-filter {
        gap: 8px;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}
/* Table Styles */
.table-container {
       background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    border-radius: var(--border-radius-10);
    overflow: hidden;
    box-shadow: var(--shadow);
    overflow-x: auto;
}
 table {
    width: 1130px !important;
    border-collapse: collapse;
    
}
th, td {
    padding: 15px 20px;
    text-align: left;
    color: var(--light-color);
    border-bottom: 1px solid var(--light-grey-color);
}
th {
       background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    font-weight: 600;
    color: var(--dark-color);
    font-family: 'Poppins', sans-serif;
    color: var(--light-color);
}
tbody tr:hover {
    background: rgba(67, 97, 238, 0.05);
}
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-completed {
    background: #d4edda;
    color: #155724;
}
.status-submitted {
    background: #cce5ff;
    color: #004085;
}
.status-expired {
    background: #af0f0f;
    color: #fff;
}
/* Assignment Header */
.assignment-header {
    background: var(--white-color);
    border-radius: var(--border-radius-10);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.assignment-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--grey-color);
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 8px;
    color: var(--light-blue-color);
}

.deadline {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.deadline i {
    margin-right: 8px;
}

.assignment-description {
    background: var(--light-color);
    border-radius: var(--border-radius-10);
    padding: 20px;
    margin-top: 20px;
}

.assignment-description h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--dark-color);
}
/* Submission Form */
.submission-form {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}
.form-control {
    width: 100% !important;
    padding: 14px 20px !important;
    border: 2px solid var(--light-grey-color) !important;
    border-radius: var(--border-radius-10) !important;
    font-size: 16px !important;
    transition: var(--transition);
    box-shadow: none !important;
}
.form-control:focus {
    border-color: var(--light-blue-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
}

textarea.form-control {
    min-height: 150px !important;
    resize: vertical !important;
}


/* File Upload */
.file-upload {
    border: 2px dashed var(--light-grey-color);
    border-radius: var(--border-radius-10);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 20px;
}
.file-upload:hover {
    border-color: var(--light-blue-color);
    background: rgba(67, 97, 238, 0.03);
}
.file-upload i {
    font-size: 48px;
    color: var(--light-blue-color);
    margin-bottom: 15px;
}
.file-upload h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--dark-color);
}
.file-upload p {
    color: var(--grey-color);
    margin-bottom: 20px;
}
.browse-btn {
    background: var(--light-blue-color);
    color: var(--white-color) !important;
    padding: 10px;
    border-radius: var(--border-radius-30);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    width: 200px;
}
.browse-btn:hover {
    background: var(--dark-blue-color);
}
.file-list {
    margin-top: 20px;
}
.file-item {
    display: flex;
    align-items: center;
    background: var(--light-color);
    border-radius: var(--border-radius-10);
    padding: 15px;
    margin-bottom: 10px;
}
.file-item i {
    font-size: 24px;
    color: var(--light-blue-color);
    margin-right: 15px;
}
.file-info {
    flex: 1;
}
.file-name {
    font-weight: 600;
    margin-bottom: 5px;
}
.file-size {
    color: var(--grey-color);
    font-size: 14px;
}
.remove-file {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 18px;
    cursor: pointer;
}
/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
}
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-right: 30px;
    border: 5px solid var(--light-color);
    box-shadow: var(--shadow);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.change-photo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white-color);
    text-align: center;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}
.profile-picture:hover .change-photo {
    opacity: 1;
}
.profile-info h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: bold !important;
    color: var(--dark-color);
}
.profile-info span {
    color: var(--grey-color);
    margin-bottom: 15px;
}
.profile-stats {
    display: flex;
    gap: 20px;
}
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-picture {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .profile-stats {
        justify-content: center;
    }
}
/* role selector */
.role-selector {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 15px;
    
}
.role-option {
    flex: 1;
    text-align: center;
    padding: 30px;
    border: 2px solid #e9ecef;
    background-color: var(--light-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}
.role-option:hover {
    border-color: var(--light-blue-color);
}
.role-option i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.role-option.lecturer i {
    color: var(--lecturer);
}
.role-option.student i {
    color: var(--student);
}
 @media (min-width: 992px) {
    .role-selector {
        flex-direction: row;
    }
}
@media (max-width: 768px) {
    .role-selector {
        flex-direction: column;
    }
}
/* User Avatar */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-blue-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: bold;
    font-size: 1.2rem;
}
/* Dashboard Stats */
.stat-card {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.stat-card.students .stat-icon {
    background: rgba(67, 97, 238, 0.15);
    color: var(--student);
}
.stat-card.lecturers .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--lecturer);
}
.stat-card.hod .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--hod);
}
.stat-card.course-adviser .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--course-adviser);
}
.stat-card.students .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--students);
}
.stat-card.requests .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--requests);
}
.stat-card.courses .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--courses);
}
.stat-card.announcements .stat-icon {
    background: rgba(58, 12, 163, 0.15);
    color: var(--announcements);
}
.stat-card.videos .stat-icon {
    background: rgba(247, 37, 133, 0.15);
    color: var(--danger);
}
.stat-card.materials .stat-icon {
    background: rgba(76, 201, 240, 0.15);
    color: var(--success);
}
.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.stat-info p {
    color: #6c757d;
    font-size: 0.95rem;
}
 /* Activity Section */
.activity-section {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.activity-header {
    margin-bottom: 20px;
}
.activity-list {
    list-style: none !important;
}
.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    text-decoration: none;
    padding: 10px;
    transition: var(--transition);
    border-radius: var(--border-radius-20);
}
.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-item.upload .activity-icon {
    background: rgba(76, 201, 240, 0.15);
    color: var(--success);
}
.activity-item.comment .activity-icon {
    background: rgba(248, 150, 30, 0.15);
    color: var(--warning);
}
.activity-content h4 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: medium;
    color: var(--black-color);
}
.activity-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 3px;
}
.activity-time {
    font-size: 0.8rem;
    color: #adb5bd;
}
/* file upload */
.file-upload.dragover {
    border: 2px dashed #007bff;
    background-color: #f0f8ff;
}
/* portal */
         .portal-wrapper {
            width:700px !important;
      max-width: 700px;
      padding: 40px;
       background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
      border-radius: 20px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      text-align: center;
    }

    @media (max-width:750px) {
        .portal-wrapper {
            width:90% !important;
        }
    }

    .portal-logo img {
      width: 120px;
      margin-bottom: 20px;
    }

    .portal-title {
        font-family: 'Poppins', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 10px;
    }

    .role-selector {
      display: flex;
      justify-content: space-around;
      gap: 20px;
    }

    .role-option {
      flex: 1;
       background: rgba(255, 255, 255, 0.15); /* semi-transparent */
  backdrop-filter: blur(10px);           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
      padding: 30px 20px;
      border-radius: 16px;
      transition: 0.3s ease;
      text-align: center;
      border: 2px solid transparent;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .role-option:hover {
      border-color: #0d6efd;
      transform: translateY(-3px);
    }

    .role-option i {
      font-size: 40px;
      margin-bottom: 15px;
      color: #0d6efd;
    }

    .role-option p {
      margin: 0;
      font-weight: 600;
      color: #333;
    }

    @media (max-width: 576px) {
      .role-selector {
        flex-direction: column;
      }
    }
/* Announcement CSS to handle the collapsed/expanded states */
.announcement-card-content.collapsed {
    max-height: 100px; /* Adjust this value as needed */
    overflow: hidden;
}
.announcement-card-content.expanded {
    max-height: none;
    overflow: visible;
}
/* progress bar */
.progress {
     background: rgba(255, 255, 255, 0.15) !important; /* semi-transparent */
  backdrop-filter: blur(10px) !important;           /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px) !important;   /* Safari support */
}