<style>
/* ==========================================================================
   AKSUM UNIVERSITY — ACE ADMIN ONLY STYLES
   All custom colors removed. Uses native Ace palette.
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL
   ========================================================================== */
::selection { background: #428bca; color: #ffffff; }
::-moz-selection { background: #428bca; color: #ffffff; }

table.dataTable {
    white-space: nowrap !important;
}

body.login-layout-page {
    background-color: #f7f7f7 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* ==========================================================================
   2. SMART HEADER — Ace Blue Theme
   ========================================================================== */
.smart-header.fitted-blue-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #438eb9;
    color: #ffffff;
    padding: 8px 20px;
    box-shadow: 0 2px 8px rgba(67, 142, 185, 0.25);
    border-bottom: 3px solid #62a8d1;
    position: relative;
    z-index: 1035;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    will-change: transform;
    animation: headerSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.smart-header.fitted-blue-theme .logo-section img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #ffffff;
    padding: 1px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.smart-header.fitted-blue-theme .logo-section img:hover {
    transform: scale(1.05);
}

.smart-header.fitted-blue-theme .text-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    margin: 0;
}

.smart-header.fitted-blue-theme .animated-header-container.horizontal-flow {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto;
}

.smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .main-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateX(-15px);
    animation: smartHorizontalReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .divider-line {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    opacity: 0;
    will-change: transform, opacity;
    transform: scaleY(0);
    animation: smartVerticalBar 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .sub-title {
    font-size: 15px;
    color: #d9edf7;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateX(15px);
    animation: smartHorizontalReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.25s;
}

/* ==========================================================================
   3. SMART TIMESTAMP BADGE — Ace Green
   ========================================================================== */
.smart-header.fitted-blue-theme .year {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    background: #87b87f;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.smart-header.fitted-blue-theme .year:hover {
    background: #629b58;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(135, 184, 127, 0.3),
        0 0 8px rgba(255, 255, 255, 0.2);
}
.smart-header.fitted-blue-theme .year i.ace-icon {
    color: #dff0d8;
    transition: transform 0.25s ease, color 0.25s ease;
}
.smart-header.fitted-blue-theme .year:hover i.ace-icon {
    transform: scale(1.1);
    color: #ffffff;
}

/* ==========================================================================
   4. ACE BLUE UNIFIED FOOTER
   ========================================================================== */
.custom-footer-dark .footer-content {
    background-color: #438eb9 !important;
    border-top: 3px solid #62a8d1 !important;
    padding: 12px 20px;
}
.custom-footer-dark .footer-content .white {
    color: #ffffff !important;
}
.custom-footer-dark .footer-content .text-muted {
    color: #d9edf7 !important;
}

.public-footer {
    background-color: #438eb9;
    color: #d9edf7;
    border-top: 4px solid #62a8d1;
}

.footer-title {
    color: #ffffff !important;
    font-weight: 700;
    margin-top: 0;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.border-primary {
    border-top-color: rgba(255, 255, 255, 0.25) !important;
}

.blue2 { color: #ffffff !important; }
.font-bold { font-weight: 700; }

.p-t-30 { padding-top: 30px; }
.p-b-20 { padding-bottom: 20px; }
.m-b-20 { margin-bottom: 20px; }
.m-t-2  { margin-top: 2px; }

.footer-text {
    line-height: 1.6;
    font-size: 13px;
    color: #d9edf7;
    text-align: justify;
}

.contact-list > li,
.partner-links > li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #d9edf7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-list i,
.partner-links i {
    width: 20px;
    color: #ffffff !important;
}

.public-footer a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease-in-out;
}
.public-footer a:hover {
    color: #ffd700;
    text-decoration: none;
    border-bottom-color: #ffd700;
}

/* Developer Widget */
.developer-scroll-zone {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}
.custom-dev-badge {
    background: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px;
    padding: 10px !important;
    margin-bottom: 8px !important;
}
.custom-dev-badge:last-child { margin-bottom: 0 !important; }
.custom-dev-badge b.text-primary {
    color: #ffffff !important;
    font-weight: 600;
}
.dev-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-right: 12px;
    object-fit: cover;
}
.dev-avatar-fallback {
    display: inline-block;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    margin-right: 12px;
    border: 2px solid #ffffff;
}
.dev-avatar-fallback i { color: #ffffff !important; }
.custom-dev-badge .time {
    font-size: 11px !important;
    color: #d9edf7 !important;
    line-height: 1.5;
}
.custom-dev-badge .time i {
    color: #ffffff !important;
    width: 14px;
}

.developer-scroll-zone::-webkit-scrollbar { width: 5px; }
.developer-scroll-zone::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }
.developer-scroll-zone::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }
.developer-scroll-zone::-webkit-scrollbar-thumb:hover { background: #ffffff; }

/* ==========================================================================
   5. LOGIN LAYOUT (Ace-native)
   ========================================================================== */
.login-container-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.login-card-wrapper {
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 950px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.login-box-custom { display: none; }
.login-box-custom.visible { display: block; }

.form-actions-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #e3e8ee;
    padding-top: 15px;
}

.captcha-display-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.captcha-image-frame {
    border: 1px solid #c5d0dc;
    border-radius: 4px;
    height: 45px;
    width: 180px;
    background: #eeeeee;
    overflow: hidden;
}
.refresh-captcha-btn {
    padding: 11px 14px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

@keyframes customShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.card-shake { animation: customShake 0.35s ease-in-out; }

/* ==========================================================================
   6. HOVER DROPDOWN (ACE ADMIN)
   ========================================================================== */
.navbar-nav li.dropdown:hover > .dropdown-menu {
    display: block;
}
.navbar-nav .dropdown-menu {
    margin-top: 0;
}
.navbar-nav li.dropdown > a {
    cursor: pointer;
}

.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-menu > li > a {
    padding: 6px 15px;
}

/* ==========================================================================
   7. MODAL VALIDATION (Ace colors)
   ========================================================================== */
.modal .form-group.has-error .form-control {
    border-color: #d15b47;
    box-shadow: 0 0 6px rgba(209, 91, 71, 0.5);
}
.modal .form-group.has-success .form-control {
    border-color: #87b87f;
}
.modal .help-block.error {
    color: #d15b47;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.modal .form-group.has-error .help-block.error {
    display: block;
}
.modal .required-star {
    color: #d15b47;
    font-weight: 700;
}
.modal .row { margin-bottom: 6px; }
.modal select.form-control { padding: 4px 6px; }

/* ==========================================================================
   8. RESPONSIVE — MOBILE OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
    table.dataTable {
        white-space: normal !important;
    }

    .smart-header.fitted-blue-theme {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
    }
    .smart-header.fitted-blue-theme .text-section {
        padding: 5px 0;
        width: 100%;
    }
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow {
        flex-direction: column;
        gap: 6px;
    }
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .divider-line {
        display: none !important;
    }
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .main-title {
        font-size: 17px;
        white-space: normal;
    }
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .sub-title {
        font-size: 13px;
        white-space: normal;
    }

    .text-center-xs { text-align: center !important; }

    .contact-list > li,
    .partner-links > li {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .public-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==========================================================================
   9. ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes headerSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
@keyframes smartHorizontalReveal {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes smartVerticalBar {
    to { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   10. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .smart-header.fitted-blue-theme,
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .main-title,
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .sub-title,
    .smart-header.fitted-blue-theme .animated-header-container.horizontal-flow .divider-line,
    .smart-header.fitted-blue-theme .year {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
</style>