/* CSS Variables - Add these to your root */
:root {
  --cui-blue: #0d6efd;
  --cui-indigo: #6610f2;
  --cui-purple: #6f42c1;
  --cui-pink: #d63384;
  --cui-red: #dc3545;
  --cui-orange: #fd7e14;
  --cui-yellow: #ffc107;
  --cui-green: #198754;
  --cui-teal: #20c997;
  --cui-cyan: #0dcaf0;
  --cui-primary: #153e6f;
  --cui-secondary: #6b7785;
  --cui-success: #2eb85c;
  --cui-info: #747af2;
  --cui-warning: #d1ab66;
  --cui-danger: #dc3545;
  --cui-light: #f3f4f7;
  --cui-dark: #212631;
  --cui-gray-100: #f3f4f7;
  --cui-gray-200: #e7eaee;
  --cui-gray-300: #dbdfe6;
  --cui-gray-600: #6d7d9c;
  --cui-gray-800: #323a49;
}

/* Alert Animation Styles */
.alert-slide {
  position: fixed;
  top: 90px;
  right: -400px; /* Start off-screen */
  max-width: 90vw; /* Limit width on smaller screens */
  min-width: 300px;
  width: 400px; /* Let it expand based on content */
  height: auto;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  animation-timing-function: ease-in-out;
  z-index: 9999;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.alert-slide.show {
  right: 20px;
  opacity: 1;
  align-content: center;
}

.alert-slide.hide {
  right: -400px;
  opacity: 0;
}

/* Custom border colors */
.alert-success {
  border-left-color: #2eb85c;
}

.alert-detail {
  border-left: none;
  margin: 0;
}

.alert-danger {
  border-left-color: #e55353;
}

.alert-warning {
  border-left-color: #f9b115;
}

/* Alert content styling */
.alert-content {
  display: flex;
  align-items: center;
  justify-items: center;
  margin: auto;
}

.alert-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  fill: none;
}

.alert-message {
  flex: 1;
  margin: auto;
  justify-content: center;
}

.alert-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
}

/* Sidebar Styles */
.nav-link.active-link {
  color: #153e6f !important;
  font-weight: bold;
  border-left: 4px solid #153e6f;
  /* border-bottom: 2px solid #153e6f; */
}

.nav-link.active-parent {
  color: #153e6f !important;
  font-weight: bold;
  border-left: 4px solid #153e6f;
  /* border-bottom: 2px solid #153e6f; */
}

#activeMenuIcon {
  color: #d1ab66;
}

#activeSubMenuIcon {
  color: #153e6f;
}




#error-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#error-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(91.2, 119.9, 154.2) 0%, rgb(18.9, 55.8, 99.9) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow-x: hidden;
}

#error-page .error-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

#error-page .error-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

#error-page .error-code {
    font-size: 8rem;
    font-weight: 900;
    color: rgb(56, 104, 162);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

#error-page .error-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background:rgb(56, 104, 162);
    border-radius: 50%;
    margin: 0 20px;
    position: relative;
    animation: bounce 2s infinite;
}

#error-page .error-icon::before {
    content: '😵';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

#error-page .error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

#error-page .error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

#error-page .btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

#error-page .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#error-page .btn-primary {
    background: linear-gradient(45deg, rgb(91.2, 119.9, 154.2), rgb(18.9, 55.8, 99.9));
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#error-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

#error-page .btn-secondary {
    background: transparent;
    color: #153e6f;
    border: 2px solid #153e6f;
}

#error-page .btn-secondary:hover {
    background: #153e6f;
    color: white;
    transform: translateY(-2px);
}

#error-page .floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#error-page .shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

#error-page .shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: #153e6f;
    border-radius: 50%;
    animation-delay: 0s;
}

#error-page .shape:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: #153e6f;
    border-radius: 30%;
    animation-delay: 2s;
}

#error-page .shape:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: #0f2952;
    border-radius: 20%;
    animation-delay: 4s;
}

#error-page .shape:nth-child(4) {
    top: 35%;
    right: 25%;
    width: 30px;
    height: 30px;
    background: #0a1c3d; /* Medium-light variation */
    border-radius: 15%;
    animation-delay: 1s;
}

#error-page .shape:nth-child(5) {
    bottom: 45%;
    right: 8%;
    width: 50px;
    height: 50px;
    background: #0a1c3d; /* Very dark variation */
    border-radius: 40%;
    animation-delay: 3s;
}

#error-page .shape:nth-child(6) {
    top: 20%;
    left: 70%;
    width: 35px;
    height: 35px;
    background: #0a1c3d; /* Light variation */
    border-radius: 25%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #error-page .error-container {
        padding: 40px 20px;
        margin: 20px;
    }

    #error-page .error-code {
        font-size: 6rem;
    }

    #error-page .error-icon {
        width: 60px;
        height: 60px;
        margin: 0 10px;
    }

    #error-page .error-icon::before {
        font-size: 1.5rem;
    }

    #error-page .error-title {
        font-size: 2rem;
    }

    #error-page .error-message {
        font-size: 1rem;
    }

    #error-page .btn-container {
        flex-direction: column;
        align-items: center;
    }

    #error-page .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    #error-page .error-code {
        font-size: 4rem;
    }

    #error-page .error-title {
        font-size: 1.5rem;
    }

    #error-page .error-container {
        padding: 30px 15px;
    }
}


/* Styles for Maintenance page */

#maintenance-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#maintenance-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(91.2, 119.9, 154.2) 0%, rgb(18.9, 55.8, 99.9) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow-x: hidden;
}

#maintenance-page .floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#maintenance-page .shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

#maintenance-page .shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: #153e6f;
    border-radius: 50%;
    animation-delay: 0s;
}

#maintenance-page .shape:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 40px;
    height: 40px;
    background:rgb(17, 54, 100);
    border-radius: 30%;
    animation-delay: 2s;
}

#maintenance-page .shape:nth-child(3) {
    bottom: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: #0f2952;
    border-radius: 20%;
    animation-delay: 4s;
}

#maintenance-page .shape:nth-child(4) {
    top: 35%;
    right: 25%;
    width: 30px;
    height: 30px;
    background: #0a1c3d;
    border-radius: 15%;
    animation-delay: 1s;
}

#maintenance-page .shape:nth-child(5) {
    bottom: 45%;
    right: 8%;
    width: 50px;
    height: 50px;
    background: #0a1c3d;
    border-radius: 40%;
    animation-delay: 3s;
}

#maintenance-page .shape:nth-child(6) {
    top: 10%;
    right: 20%;
    width: 35px;
    height: 35px;
    background: #0a1c3d;
    border-radius: 25%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

#maintenance-page .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 900px;
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

#maintenance-page .container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

#maintenance-page .content-section {
    text-align: left;
    position: relative;
    z-index: 1;
}

#maintenance-page .main-title {
    font-size: 3rem;
    font-weight: 800;
    color: rgb(39, 84, 138);
    margin-bottom: 10px;
    line-height: 1.1;
}

#maintenance-page .subtitle {
    font-size: 2rem;
    margin-bottom: 25px;
}

#maintenance-page .description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

#maintenance-page .btn-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#maintenance-page .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#maintenance-page .btn-primary {
    background: linear-gradient(45deg, rgb(91.2, 119.9, 154.2), rgb(18.9, 55.8, 99.9));
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#maintenance-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

#maintenance-page .btn-secondary {
    background: transparent;
    color: #153e6f;
    border: 2px solid #153e6f;
}

#maintenance-page .btn-secondary:hover {
    background: #153e6f;
    color: white;
    transform: translateY(-2px);
}

#maintenance-page .illustration-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

#maintenance-page .construction-icon {
    width: 400px;
    height: 400px;
    position: relative;
}

#maintenance-page .construction-scene {
    width: 100%;
    height: 100%;
    animation: floatConstruction 3s ease-in-out infinite;
}

@keyframes floatConstruction {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #maintenance-page .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
        text-align: center;
    }

    #maintenance-page .content-section {
        text-align: center;
        order: 2;
    }

    #maintenance-page .illustration-section {
        order: 1;
    }

    #maintenance-page .main-title {
        font-size: 2.5rem;
    }

    #maintenance-page .subtitle {
        font-size: 1.1rem;
    }

    #maintenance-page .construction-icon {
        width: 300px;
        height: 300px;
    }

    #maintenance-page .btn-container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    #maintenance-page .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    #maintenance-page .main-title {
        font-size: 2rem;
    }

    #maintenance-page .construction-icon {
        width: 250px;
        height: 250px;
    }

    #maintenance-page .container {
        padding: 20px 15px;
    }
}

/* Focus states for accessibility */
#maintenance-page .btn:focus {
    outline: 2px solid rgba(92, 119, 230, 0.5);
    outline-offset: 2px;
}



/* Student Home Page Styles */

/* Dashboard Cards */
.graduation-status-card,
.performance-card,
.progress-card,
.financial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.graduation-status-card:hover,
.performance-card:hover,
.progress-card:hover,
.financial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.graduation-status-card .card-body,
.performance-card .card-body,
.progress-card .card-body,
.financial-card .card-body {
  padding: 1.5rem;
}

/* Card Icons */
.graduation-icon,
.performance-icon,
.progress-icon,
.financial-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graduation-icon {
  background: linear-gradient(135deg, #5a6acf 0%, #4c63d2 100%);
  color: white;
}

.performance-icon {
  background: linear-gradient(135deg, #4273af 0%, #153e6f 100%);
  color: white;
}

.progress-icon {
  background: linear-gradient(135deg, #e4d1ad 0%, #d1ab66 100%);
  color: white;
}

.financial-icon {
  background: linear-gradient(135deg, #57d380 0%, #2eb85c 100%);
  color: white;
}

/* Status Badges */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-cleared {
  background-color: #d1edff;
  color: #0c5460;
}

/* Grade Indicator */
.grade-indicator {
  background: linear-gradient(135deg, #4273af 0%, #153e6f 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Progress Percentage */
.progress-percentage {
  background: linear-gradient(135deg, #d1ab66 0%, #d1ab66 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Performance Trend */
.performance-trend {
  margin-top: 0.5rem;
}

.trend-up {
  color: #28a745;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.trend-up .icon {
  margin-right: 0.25rem;
  width: 16px;
  height: 16px;
}

/* Mini Progress Bar */
.mini-progress {
  width: 100%;
  height: 6px;
  background-color: #dbdfe6;
  border-radius: 3px;
  margin-top: 0.5rem;
}

.mini-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #d1ab66 0%, #d1ab66 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Clearance Status */
.clearance-status {
  display: flex;
  align-items: center;
  color: #2eb85c;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.clearance-status .icon {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
}

/* Activity Card */
.activity-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.activity-list {
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.activity-icon .icon {
  width: 20px;
  height: 20px;
  color: white;
}

.activity-content h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.activity-content p {
  margin: 0 0 0.25rem 0;
  color: #6c757d;
  font-size: 0.85rem;
}

.activity-time {
  font-size: 0.75rem;
  color: #adb5bd;
}

/* Requirements Card */
.requirements-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.requirement-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.requirement-item:last-child {
  border-bottom: none;
}

.requirement-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.requirement-type {
  font-weight: 600;
  color: #495057;
}

.requirement-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: auto;
}

.requirement-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.requirement-status.completed {
  background-color: #d4edda;
  color: #155724;
}

.requirement-details p {
  margin: 0;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Quick Actions Card */
.quick-actions-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  text-decoration: none;
  color: #495057;
  transition: all 0.2s ease;
}

.quick-action-item:hover {
  border-color: #007bff;
  color: #007bff;
  text-decoration: none;
  transform: translateY(-2px);
}

.action-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #5a6acf 0%, #4c63d2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.action-icon .icon {
  width: 36px;
  height: 36px;
  color: white;
}

.quick-action-item span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* Notices Card */
.notices-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.notice-item.urgent .notice-icon {
  background-color: #dc3545;
  color: white;
}

.notice-item.info .notice-icon {
  background-color: #17a2b8;
  color: white;
}

.notice-icon .icon {
  width: 18px;
  height: 18px;
}

.notice-content h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.notice-content p {
  margin: 0;
  color: #6c757d;
  font-size: 0.85rem;
}

/* Deadlines Card */
.deadlines-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.deadline-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.deadline-item:last-child {
  border-bottom: none;
}

.deadline-date {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1rem;
  flex-shrink: 0;
}

.deadline-date .day {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.deadline-date .month {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.deadline-info h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.deadline-type {
  margin: 0;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quick-action-grid {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .requirement-item,
  .notice-item,
  .deadline-item {
    padding: 0.75rem 1rem;
  }

  .graduation-status-card .card-body,
  .performance-card .card-body,
  .progress-card .card-body,
  .financial-card .card-body {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .deadline-date {
    width: 50px;
    height: 50px;
  }

  .deadline-date .day {
    font-size: 1rem;
  }

  .deadline-date .month {
    font-size: 0.625rem;
  }
}

form .btn:not(.button-form-container .btn),
form .btn.btn-primary:not(.button-form-container .btn),
form .btn.btn-secondary:not(.button-form-container .btn),
form .btn.btn-outline-primary:not(.button-form-container .btn),
form .btn.btn-outline-secondary:not(.button-form-container .btn) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.app-shell .body {
  padding-top: var(--digradsys-header-offset, 5.5rem);
}

.app-header-fixed {
  left: var(--cui-sidebar-occupy-start, 0);
  margin-bottom: 0 !important;
  position: fixed !important;
  right: var(--cui-sidebar-occupy-end, 0);
  top: 0;
  z-index: 1030;
}

/* Unified page banner styling */
.card.shadow-sm.mb-4.bg-primary.bg-gradient,
.card.shadow-sm.mb-4.config-hero,
.bio-hero {
  border: 0 !important;
  border-left: 5px solid #d1ab66 !important;
  border-radius: 0.5rem !important;
  min-height: 214px;
  overflow: hidden;
}

.card.shadow-sm.mb-4.bg-primary.bg-gradient > .card-body,
.card.shadow-sm.mb-4.config-hero > .card-body {
  display: flex;
  flex-direction: column;
  min-height: 214px;
}

.bio-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .card.shadow-sm.mb-4.bg-primary.bg-gradient,
  .card.shadow-sm.mb-4.config-hero,
  .bio-hero,
  .card.shadow-sm.mb-4.bg-primary.bg-gradient > .card-body,
  .card.shadow-sm.mb-4.config-hero > .card-body {
    min-height: auto;
  }
}

/* Professional modal headers */
.modal .professional-modal-header,
.modal-header.professional-modal-header {
  background: var(--cui-primary, #153e6f) !important;
  border-bottom: 1px solid var(--cui-primary, #153e6f) !important;
  color: #ffffff !important;
  padding: 0.85rem 1rem !important;
}

.professional-modal-header .modal-title,
.professional-modal-title {
  align-items: center;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 0.98rem !important;
  font-weight: 600;
  gap: 0.55rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.professional-modal-title-icon {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.25rem;
  justify-content: center;
  width: 1.25rem;
}

.professional-modal-title-icon .icon {
  color: #ffffff;
  height: 1rem;
  width: 1rem;
}

.professional-modal-header .modal-title .icon,
.professional-modal-header .modal-title svg {
  color: #ffffff !important;
  fill: currentColor;
}

.modal-header.bg-primary .btn-close,
.modal-header.text-white .btn-close,
.professional-modal-header .btn-close,
.professional-modal-header .digradsys-close-icon-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  opacity: 0.95;
}

.modal-header.bg-primary .btn-close:not(.digradsys-close-icon-button),
.modal-header.text-white .btn-close:not(.digradsys-close-icon-button),
.professional-modal-header .btn-close:not(.digradsys-close-icon-button) {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-header.bg-primary .btn-close svg,
.modal-header.bg-primary .btn-close .icon,
.modal-header.bg-primary .btn-close use,
.modal-header.text-white .btn-close svg,
.modal-header.text-white .btn-close .icon,
.modal-header.text-white .btn-close use,
.professional-modal-header .btn-close svg,
.professional-modal-header .btn-close .icon,
.professional-modal-header .btn-close use,
.professional-modal-header .digradsys-close-icon-button svg,
.professional-modal-header .digradsys-close-icon-button .icon,
.professional-modal-header .digradsys-close-icon-button use {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.modal-header.bg-primary .btn-close:hover,
.modal-header.bg-primary .btn-close:focus,
.modal-header.text-white .btn-close:hover,
.modal-header.text-white .btn-close:focus,
.professional-modal-header .btn-close:hover,
.professional-modal-header .btn-close:focus,
.professional-modal-header .digradsys-close-icon-button:hover,
.professional-modal-header .digradsys-close-icon-button:focus {
  opacity: 1;
}

/* Unified record table styling */
.digradsys-standard-table,
table.dataTable.digradsys-standard-table {
  border-color: #d8dee8 !important;
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 0;
  width: 100% !important;
}

.digradsys-standard-table thead,
.digradsys-standard-table .digradsys-standard-table-head {
  background: var(--cui-primary, #153e6f) !important;
  color: #ffffff !important;
}

.digradsys-standard-table thead th,
.digradsys-standard-table thead td,
table.dataTable.digradsys-standard-table thead th {
  background: var(--cui-primary, #153e6f) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  padding: 0.72rem 0.85rem;
  vertical-align: middle;
  white-space: nowrap;
}

.digradsys-standard-table tbody td,
.digradsys-standard-table tbody th {
  border-color: #e6eaf0 !important;
  font-size: 0.875rem !important;
  line-height: 1.35;
  padding: 0.68rem 0.85rem;
  vertical-align: middle;
}

.digradsys-standard-table tfoot th,
.digradsys-standard-table tfoot td,
table.dataTable.digradsys-standard-table tfoot th {
  font-size: 0.875rem !important;
  line-height: 1.35;
}

.digradsys-standard-table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(21, 62, 111, 0.035);
  color: inherit;
}

.digradsys-standard-table.table-hover > tbody > tr:hover > * {
  background-color: rgba(21, 62, 111, 0.08);
  color: inherit;
}

.table-responsive > .digradsys-standard-table {
  margin-bottom: 0;
}

.dataTables_wrapper .digradsys-standard-table {
  border-collapse: collapse !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem !important;
}

.dataTables_scrollBody table.digradsys-standard-table > tfoot {
  display: none;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d8dee8;
  border-radius: 0.375rem;
  color: #1f2937;
  min-height: 2.2rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--cui-primary, #153e6f);
  box-shadow: 0 0 0 0.15rem rgba(21, 62, 111, 0.16);
  outline: 0;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button,
.digradsys-table-toolbar .btn[id*="download" i],
.digradsys-table-toolbar .btn[id*="export" i],
.digradsys-table-toolbar .btn[id*="generate" i],
.academic-records-action[id*="download" i],
.academic-records-action[id*="export" i],
.complaint-table-actions .btn[id*="download" i],
.button-form-container .btn[onclick*="downloadReport" i],
.card-header .btn[id*="download" i],
.card-header .btn[id*="export" i],
.card-header .btn[id*="generate" i] {
  background-color: var(--cui-primary, #153e6f) !important;
  border-color: var(--cui-primary, #153e6f) !important;
  color: #ffffff !important;
}

.dataTables_wrapper .dt-buttons .btn:hover,
.dataTables_wrapper .dt-buttons .btn:focus,
.dataTables_wrapper .dt-buttons .dt-button:hover,
.dataTables_wrapper .dt-buttons .dt-button:focus,
.digradsys-table-toolbar .btn[id*="download" i]:hover,
.digradsys-table-toolbar .btn[id*="download" i]:focus,
.digradsys-table-toolbar .btn[id*="export" i]:hover,
.digradsys-table-toolbar .btn[id*="export" i]:focus,
.digradsys-table-toolbar .btn[id*="generate" i]:hover,
.digradsys-table-toolbar .btn[id*="generate" i]:focus,
.academic-records-action[id*="download" i]:hover,
.academic-records-action[id*="download" i]:focus,
.academic-records-action[id*="export" i]:hover,
.academic-records-action[id*="export" i]:focus,
.complaint-table-actions .btn[id*="download" i]:hover,
.complaint-table-actions .btn[id*="download" i]:focus,
.button-form-container .btn[onclick*="downloadReport" i]:hover,
.button-form-container .btn[onclick*="downloadReport" i]:focus,
.card-header .btn[id*="download" i]:hover,
.card-header .btn[id*="download" i]:focus,
.card-header .btn[id*="export" i]:hover,
.card-header .btn[id*="export" i]:focus,
.card-header .btn[id*="generate" i]:hover,
.card-header .btn[id*="generate" i]:focus {
  background-color: var(--cui-primary, #153e6f) !important;
  border-color: var(--cui-primary, #153e6f) !important;
  color: #ffffff !important;
  filter: brightness(0.92);
}

.dataTables_wrapper .dt-buttons .btn:disabled,
.dataTables_wrapper .dt-buttons .dt-button:disabled,
.dataTables_wrapper .dt-buttons .btn.disabled,
.dataTables_wrapper .dt-buttons .dt-button.disabled,
.digradsys-table-toolbar .btn[id*="download" i]:disabled,
.digradsys-table-toolbar .btn[id*="export" i]:disabled,
.digradsys-table-toolbar .btn[id*="generate" i]:disabled,
.academic-records-action[id*="download" i]:disabled,
.academic-records-action[id*="export" i]:disabled,
.complaint-table-actions .btn[id*="download" i]:disabled,
.button-form-container .btn[onclick*="downloadReport" i]:disabled,
.card-header .btn[id*="download" i]:disabled,
.card-header .btn[id*="export" i]:disabled,
.card-header .btn[id*="generate" i]:disabled {
  filter: none;
  opacity: 0.65;
}

.digradsys-table-responsive {
  display: block;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container,
.container-fluid,
.container-lg,
.row,
.card,
.card-body,
.modal-body,
.tab-content,
.tab-pane,
.dataTables_wrapper {
  max-width: 100%;
  min-width: 0;
}

.table-responsive,
.dataTables_wrapper,
.dataTables_scroll,
.dataTables_scrollHead,
.dataTables_scrollBody {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.digradsys-table-scroll-surface,
.table-responsive:has(.digradsys-standard-table),
.dataTables_wrapper:has(.digradsys-standard-table),
.dataTables_scrollBody:has(.digradsys-standard-table) {
  display: block;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
}

.digradsys-table-responsive > .digradsys-standard-table,
.dataTables_wrapper table.dataTable {
  min-width: 100%;
  width: auto !important;
}

.digradsys-sortable-header {
  cursor: pointer;
  padding-right: 26px !important;
  position: relative;
  user-select: none;
}

.digradsys-sortable-header::before,
.digradsys-sortable-header::after {
  color: #ffffff;
  display: block;
  font-size: 0.8em;
  line-height: 9px;
  opacity: 0.125;
  position: absolute;
  right: 10px;
}

.digradsys-sortable-header::before {
  bottom: 50%;
  content: "▲";
}

.digradsys-sortable-header::after {
  content: "▼";
  top: 50%;
}

.digradsys-sortable-header.is-sorted-asc::before,
.digradsys-sortable-header.is-sorted-desc::after {
  opacity: 0.6;
}

.digradsys-sortable-header:focus {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: -3px;
}
