/* Importing Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    /* ===== Colors ===== */
    --primary-color: #0e4bf1;
    --panel-color: #fff;
    --text-color: #000;
    --text-primary: #242424;
    --text-secondary: #666;
    --black-light-color: #707070;
    --border-color: #e6e5e5;
    --toggle-color: #ddd;
    --white-color: #f9f9f9;
    --dark-card-bg: #1f2937;

    /* ====== Transition ====== */
    --tran-05: all 0.5s ease;
    --tran-03: all 0.3s ease;
    --tran-03: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    background: #f5f6fa;
}

a {
    text-decoration: none;
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ELEGANT LOGIN STYLES */
.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    padding: 48px 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-toggle-wrapper {
    position: absolute;
    top: 20px;
    right: 50px;
}

#theme-toggle {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#theme-toggle:hover {
    transform: scale(1.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 10px;
}

.login-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1d84c6, #136815);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.login-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper-input {
    position: relative;
    /* display: flex; */
    align-items: center;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #999;
    font-size: 18px;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #1d84c6;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-input:focus+.input-icon {
    color: #1d84c6;
}

.form-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* choices 3rd */
.choices__inner {
    border-radius: 8px !important;
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0E6B9F 0%, #0e6b8d 100%);
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    /* box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3); */
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(4px);
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.login-footer p {
    font-size: 12px;
    color: #999;
}

/* Background Decoration */
.login-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


/* Dark Mode Styles */
body.dark-mode.login-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .login-card {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.dark-mode .login-title {
    background: linear-gradient(135deg, #818181, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .login-subtitle {
    color: #9ca3af;
}

body.dark-mode .form-input {
    background: rgba(55, 65, 81, 0.8);
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .form-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
    background: rgba(55, 65, 81, 0.95);
}

body.dark-mode .form-input::placeholder {
    color: #9ca3af;
}

body.dark-mode .input-icon {
    color: #9ca3af;
}

body.dark-mode .form-input:focus+.input-icon {
    color: #60a5fa;
}

body.dark-mode .login-btn {
    background: linear-gradient(135deg, #262626 0%, #000000 100%);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

body.dark-mode .login-btn:hover {
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.4);
}

body.dark-mode .login-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .login-footer p {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .login-title {
        font-size: 24px;
    }

    .form-input {
        padding: 14px 14px 14px 44px;
        font-size: 15px;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* END ELEGANT LOGIN STYLES */

body.dark-mode .sidebar,
body.dark-mode .main-content,
body.dark-mode .search-bar,
body.dark-mode .stat-card,
body.dark-mode .recent-activities {
    background: #1f2937;
    color: #fff;
}

body .dark-mode .sidebar {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

body .dark-mode .sidebar-menu a {
    color: #fff;
}

body.dark-mode .sidebar-menu li:hover:not(.has-dropdown),
body.dark-mode .sidebar-menu li.active:not(.has-dropdown) {
    background: rgba(255, 255, 255, 0.1);
}


body.dark-mode .submenu li:hover,
body.dark-mode .submenu li.active {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .search-bar input {
    color: #fff;
    background: transparent;
}

body.dark-mode .search-bar input::placeholder {
    color: #9ca3af;
}

body.dark-mode .stat-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-card i {
    color: #60a5fa;
}

body.dark-mode .activity-item {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .activity-icon {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sidebar-footer-p p {
    color: #9ca3af;
}

body.dark-mode .sidebar-footer a,
body.dark-mode .sidebar-menu a {
    color: #fff;
}

body.dark-mode .top-header {
    background: rgba(31, 41, 55, 0.8);
    /* Semi-transparent dark background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dark mode scrollbar */
body.dark-mode .recent-activities::-webkit-scrollbar-track {
    background: #2d3748;
}

body.dark-mode .recent-activities::-webkit-scrollbar-thumb {
    background: #4a5568;
}

body.dark-mode .recent-activities::-webkit-scrollbar-thumb:hover {
    background: #718096;
}


.dark-mode {
    background-color: #1f2937;
    color: #ffffff;
}


.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

/* Remove old CSS LOGIN section - replaced with elegant login styles above */

.separator {
    margin: 15px 0;
    font-size: 12px;
    color: gray;
}

.google-login {
    background: white;
    color: rgb(190, 190, 190);
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-login img {
    width: 20px;
}

.theme-toggle-container {
    position: fixed;
    top: 10px;
    right: 10px;
}

#theme-toggle {
    position: fixed;
    top: 10px;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.dark-mode #theme-toggle {
    color: #f4f4f4;
}


@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
}

/* END CSS LOGIN */


/* Dashboard Styles */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    z-index: 1110;
    flex-direction: column;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.logo img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.2));
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    background: linear-gradient(135deg, #1d84c6, #136815);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo:hover .logo-text h2 {
    background: linear-gradient(135deg, #136815, #1d84c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.logo:hover .logo-text span {
    color: #1d84c6;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
    margin-left: 15px;
    margin-right: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* border-radius: 12px; */
    position: relative;
}

.sidebar-menu li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
}

.sidebar-menu li a i {
    font-size: 18px;
    min-width: 20px;
    transition: all 0.3s ease;
}

/* .sidebar-menu li:hover:not(.has-dropdown) {
    background: rgba(76, 175, 80, 0.08);
    transform: translateX(4px);
} */

.sidebar-menu li:hover a {
    color: #1d84c6;
    border-color: rgba(76, 175, 80, 0.2);
}

.sidebar-menu li:hover a i {
    color: #1d84c6;
    transform: scale(1.1);
}

.sidebar-menu li.active {
    background: linear-gradient(135deg, #1c84c6, #1c84c6);
    transform: translateX(4px);
}

.sidebar-menu li.active a {
    color: white;
    border-color: transparent;
}

.sidebar-menu li.active a i {
    color: white;
}

.sidebar-menu li.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #036096;
    border-radius: 0 2px 2px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(76, 175, 80, 0.1);
    margin-top: auto;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.02), rgba(19, 104, 21, 0.01));
}

.sidebar-footer .btn {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-size: 14px;
}

.sidebar-footer .btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.sidebar-footer .btn.danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.sidebar-footer-p {
    text-align: center;
}

.sidebar-footer-p p {
    color: #666;
    font-size: 11px;
    line-height: 1.4;
    margin: 2px 0;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(37, 131, 198, 0.05);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(37, 131, 198, 0.05);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 131, 198, 0.05);
}

/* Dark mode support */
body.dark-mode .sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-right-color: rgba(76, 175, 80, 0.2);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo {
    border-bottom-color: rgba(76, 175, 80, 0.2);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(19, 104, 21, 0.05));
}

body.dark-mode .logo-text h2 {
    background: linear-gradient(135deg, #1d84c6, #136815);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .logo:hover .logo-text h2 {
    background: linear-gradient(135deg, #136815, #1d84c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .logo-text span {
    color: #9ca3af;
}

body.dark-mode .logo:hover .logo-text span {
    color: #9ca3af;
}

body.dark-mode .sidebar-menu li a {
    color: #e5e7eb;
}

body.dark-mode .sidebar-menu li:hover:not(.has-dropdown) {
    background: rgba(76, 175, 80, 0.1);
}

body.dark-mode .sidebar-menu li:hover a {
    color: #1d84c6;
    border-color: rgba(76, 175, 80, 0.3);
}

body.dark-mode .sidebar-menu li.active {
    background: linear-gradient(135deg, #1d84c6, #136815);
}

body.dark-mode .sidebar-footer {
    border-top-color: rgba(76, 175, 80, 0.2);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(19, 104, 21, 0.02));
}

body.dark-mode .sidebar-footer-p p {
    color: #9ca3af;
}

/* Responsive sidebar */
.sidebar-collapsed .sidebar {
    transform: translateX(-280px);
}

.main-content {
    margin-left: 280px;
    height: 100vh;
    transition: margin 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: 0;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar {
        width: 280px;
    }
}

.main-content {
    flex: 1;
    background: #f5f6fa;
    padding: 20px;
    margin-left: 280px;
    width: 999px;
}

.dashboard-content {
    padding-bottom: 40px;
    padding-top: 20px;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e6e5e5;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.07);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s;
    min-height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-left h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0;
    letter-spacing: 0.01em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-menu i {
    font-size: 20px;
    color: #1d84c6;
    background: #f5f6fa;
    border-radius: 50%;
    padding: 7px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.user-menu i:hover {
    background: #e8f5e9;
    color: #136815;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e6e5e5;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.08);
}

#toggle-sidebar {
    background: #f5f6fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

#toggle-sidebar i {
    font-size: 22px;
    color: #1d84c6;
}

#toggle-sidebar:hover {
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.10);
}

@media (max-width: 768px) {
    .top-header {
        padding: 10px 10px;
        border-radius: 0 0 10px 10px;
        min-height: 54px;
    }

    .header-left h2 {
        font-size: 16px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .user-menu i {
        font-size: 18px;
        padding: 5px;
    }

    #toggle-sidebar {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    #toggle-sidebar i {
        font-size: 18px;
    }
}

body.dark-mode .top-header {
    background: #1f2937;
    border-bottom: 1px solid #374151;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.10);
}

body.dark-mode .header-left h2 {
    color: #e5e7eb;
}

body.dark-mode .user-menu i {
    background: #232d3b;
    color: #1d84c6;
}

body.dark-mode .user-menu i:hover {
    background: #374151;
    color: #a7ffb0;
}

body.dark-mode .avatar {
    border: 2px solid #374151;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.13);
}

body.dark-mode #toggle-sidebar {
    background: #232d3b;
}

body.dark-mode #toggle-sidebar:hover {
    background: #374151;
}

body.dark-mode #toggle-sidebar i {
    color: #1d84c6;
}



.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    margin-bottom: -9px;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 10px;
    border-radius: 8px;
    height: 40px;
    gap: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 200px;

}

/* SEARCH TABLE */
.search-action-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8f9fa;
}


@media (max-width: 768px) {
    .search-action-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}

/* SEARCH TABLE */

/* NAVBAR TABLE */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.table-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
}


.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 
.search-bar-table {
    position: relative;
    min-width: 250px;

} */

/* .search-bar-table i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-bar-table input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
} */


/* Responsive design */
@media (max-width: 768px) {
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-group {
        flex-wrap: wrap;
    }

    /* .search-bar-table {
        min-width: 100%;
    } */
}

/* NAVBAR TABLE */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    /* default gradient */
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 28px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
}

/* Tambahkan kelas untuk variasi warna */
.stat-card.blue {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.stat-card.green {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.stat-card.red {
    background: linear-gradient(135deg, #e52d27, #b31217);
}

.stat-card.orange {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

.stat-card.purple {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.stat-card.teal {
    background: linear-gradient(135deg, #1de9b6, #1dc4e9);
}

.stat-card.pink {
    background: linear-gradient(135deg, #f953c6, #b91d73);
}

.stat-card.gray {
    background: linear-gradient(135deg, #bdc3c7, #2c3e50);
}

.stat-card.gold {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.stat-card.indigo {
    background: linear-gradient(135deg, #3f2b96, #a8c0ff);
}

.stat-card.lime {
    background: linear-gradient(135deg, #a1ffce, #faffd1);
}

.stat-card.sky {
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
}

.stat-card.white {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
}


/* Recent Activities */
.recent-activities {
    background: #fff;
    padding: 20px;
    border-radius: 10px;

    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-icon {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}

.time {
    color: #666;
    font-size: 0.9em;
}

/* Add scrollbar styling */
.recent-activities::-webkit-scrollbar {
    width: 8px;
}

.recent-activities::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recent-activities::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.recent-activities::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Responsive Design Updates */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        z-index: 1100;
        background: #fff;
        transition: var(--tran-05);
    }

    .sidebar-collapsed .sidebar {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        width: 100%;
        padding: 15px;
        margin-left: 0;
    }

    .header-right {
        flex-direction: row-reverse;
    }

    .search-bar {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        padding: 10px 15px;
        background: #fff;
        z-index: 999;
        transition: var(--tran-05);
    }

    .search-bar.active {
        top: 0;
    }

    .search-bar input {
        width: 100%;
    }

    .stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .activity-item {
        flex-direction: column;
    }

    .activity-icon {
        align-self: flex-start;
    }

    .top-header {
        margin-bottom: 20px;
    }

    .header-left h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px;
    }

    .recent-activities {
        padding: 15px;
    }

    .user-menu {
        gap: 5px;
    }

    .avatar {
        width: 35px;
        height: 35px;
    }
}

.user-menu {
    font-size: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}


/* NOTIFIKASI */

.notification-icon {
    position: relative;
    display: inline-block;
}

.notif-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pop 0.3s ease-in-out;
}

@keyframes pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Opsional: efek warna ikon notifikasi */
.notification-icon.has-notification i {
    color: red;
}



/* NOTIFIKASI MODAL UNTUK DASHBOARD USER */
.notification-modal {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 310px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.notification-header h2 {
    font-size: 18px;
    margin: 0;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.notification-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.view-all {
    color: #0e4bf1;
    text-decoration: none;
    font-size: 14px;
}

/* Dark mode support */
body.dark-mode .notification-modal {
    background: #1f2937;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .notification-header,
body.dark-mode .notification-item {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .notification-item:hover {
    background-color: #2d3748;
}

body.dark-mode .notification-content p {
    color: #fff;
}

body.dark-mode .notification-time {
    color: #9ca3af;
}

body.dark-mode .notification-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.show-notification {
    display: block;
}

/* END SECTION NOTIFICATION */

/* START PROFILE */

.profile-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-section {
    background: linear-gradient(135deg, #f8f9fa 80%, #e8f5e9 100%);
    border-radius: 18px;
    padding: 32px 24px 18px 24px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #136815;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.profile-picture {
    text-align: center;
    margin: 0;
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.13);
    border: 3px solid #e8f5e9;
    background: #fff;
    transition: box-shadow 0.2s, border 0.2s;
}

.profile-picture img:hover {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.18);
    border-color: #1d84c6;
}

.settings-section {
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-section form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-weight: 400;
    color: #616161;
    margin-bottom: 4px;
    font-size: 13px;
    text-align: left;
}

.form-control,
.settings-section input[type="text"],
.settings-section input[type="date"],
.settings-section input[type="file"],
.settings-section select,
.settings-section textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #f8f9fa;
    color: #222;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.settings-section input[type="text"]:focus,
.settings-section input[type="date"]:focus,
.settings-section input[type="file"]:focus,
.settings-section select:focus,
.settings-section textarea:focus {
    border-color: #1d84c6;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.10);
    outline: none;
    background: #fff;
}

/* .form-control {
    height: 50px;
} */

textarea.form-control {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    resize: none;
    /* hilangkan drag resize */
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .profile-container {
        padding: 18px 4vw;
    }
}

@media (max-width: 700px) {
    .profile-container {
        padding: 10px 2vw;
    }

    .profile-picture img {
        width: 90px;
        height: 90px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 4px 0;
        gap: 12px;
    }

    .profile-section,
    .settings-section {
        padding: 32px 15px 15px 15px;
        border-radius: 10px;
    }

    .profile-section h2 {
        font-size: 16px;
    }

    .profile-picture img {
        width: 204px;
        height: 200px;
        border-radius: 100px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-control,
    .settings-section input[type="text"],
    .settings-section input[type="date"],
    .settings-section input[type="file"],
    .settings-section select,
    .settings-section textarea {
        font-size: 13px;
        padding: 8px 10px;
    }

    .form-actions .btn.primary {
        font-size: 13px;
        padding: 10px 12px;
    }
}

body.dark-mode .profile-section,
body.dark-mode .settings-section {
    background: #1f2937;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.13);
}

body.dark-mode .profile-section h2,
body.dark-mode .form-group label {
    color: #a7ffb0;
}

body.dark-mode .profile-picture img {
    background: #232d3b;
    border-color: #374151;
}

body.dark-mode .settings-section input,
body.dark-mode .settings-section select,
body.dark-mode .settings-section textarea,
body.dark-mode .form-control {
    background: #232d3b;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark-mode .settings-section input:focus,
body.dark-mode .settings-section select:focus,
body.dark-mode .settings-section textarea:focus,
body.dark-mode .form-control:focus {
    border-color: #1d84c6;
    background: #1f2937;
}

body.dark-mode .form-actions .btn.primary {
    background: linear-gradient(135deg, #136815, #1d84c6);
    color: #fff;
}

body.dark-mode .form-actions .btn.primary:hover {
    background: linear-gradient(135deg, #1d84c6, #136815);
}


/* Services Styles */
.services-container {
    padding: 20px;
}

.service-category {
    margin-bottom: 40px;
}

.service-category h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.service-category h2 i {
    color: #4a90e2;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.service-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #4a90e2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.service-btn:hover {
    background: #357abd;
}

/* Dark mode support */
body.dark-mode .service-category h2 {
    color: #fff;
}

body.dark-mode .service-card {
    background: #1f2937;
}

body.dark-mode .service-card h3 {
    color: #fff;
}

body.dark-mode .service-card p {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }
}


/* LIST USER/MAHASISWA */
.student-list-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: left;
    margin-bottom: 24px;
}

.list-title h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.list-title p {
    color: #666;
    font-size: 14px;
}

.list-filters {
    display: flex;
    gap: 16px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    cursor: pointer;
}

.date-filter {
    display: flex;
    gap: 12px;
}

.date-input {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input i {
    position: absolute;
    left: 12px;
    color: #666;
}

.date-input input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.filter-dropdown {
    display: flex;
    align-items: center;
}

.student-table {
    overflow-x: auto;
    position: relative;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.table-responsive table {
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 100%;
}

/* Dark mode support */
body.dark-mode .table-responsive::-webkit-scrollbar-track {
    background: #2d3748;
}

body.dark-mode .table-responsive::-webkit-scrollbar-thumb {
    background: #4a5568;
}

body.dark-mode .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 16px;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    white-space: normal;
    /* Default: teks bisa turun ke baris berikutnya */
    word-wrap: break-word;
    word-break: break-word;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

th.sort-asc::after {
    content: " â†‘";
}

th.sort-desc::after {
    content: " â†“";
}

td {
    padding: 16px;
    font-size: 14px;
    white-space: nowrap;
    /* Default: teks bisa turun ke baris berikutnya */
    word-wrap: break-word;
    word-break: break-word;
    border-bottom: 1px solid #eee;
    text-transform: capitalize;
}

/* Responsif untuk perangkat mobile */
@media screen and (max-width: 768px) {

    th,
    td {
        white-space: nowrap;
        /* Teks tetap dalam satu baris */
        overflow: hidden;
        text-overflow: ellipsis;
        /* Menampilkan '...' jika teks terlalu panjang */
    }
}



.student-info {
    display: flex;
    align-items: left;
    gap: 12px;
}

.student-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #00a40d;
    color: #ffffff;
}

.status-badge.waiting {
    background-color: #ffd900;
    color: #ffffff;
}

.status-badge.rejected {
    background-color: #e30000;
    color: #ffffff;
}

.status-badge.cancelled {
    background: #fde7e9;
    color: #dc3545;
}

.status-badge.processing {
    background-color: #EF6C00;
    color: #ffffff;
}

.status-badge.progress {
    background: #e8eaf6;
    color: #3f51b5;
    white-space: nowrap;
}

/* STATUS BADGE DI TABLE */
.grade-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.grade-badge.a {
    background-color: #00a40d;
    color: #ffffff;
    /* border: 1px solid #ffffff; */
}

.grade-badge.b {
    background-color: #0074ca;
    color: #ffffff;
    /* border: 1px solid #008dff; */
}

.grade-badge.c {
    background-color: #EF6C00;
    color: #ffffff;
    /* border: 1px solid #FFCC80; */
}

.grade-badge.d {
    background-color: #C62828;
    color: #ffffff;
    /* border: 1px solid #EF9A9A; */
}

.grade-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* HASIL CONTENT STYLING */
.hasil-content {
    margin-bottom: 8px;
    line-height: 1.4;
    color: #495057;
    font-size: 13px;
}

/* Responsive adjustments for the new column */
@media (max-width: 768px) {
    .student-table table {
        min-width: 700px;
        /* Increased to accommodate new column */
    }

    .hasil-content {
        font-size: 12px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .student-table table {
        min-width: 600px;
        /* Adjusted for smaller screens */
    }

    .hasil-content {
        font-size: 11px;
        margin-bottom: 4px;
    }

}

.upload-btn {
    padding: 4px 10px;
    border-radius: 4px;
    background: #4a90e2;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: inline-block;
}

.upload-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
}

/* Improved Response Text UI */
.response-text {
    font-size: 10px;
    color: #0d967b;
    margin-top: 10px;
    line-height: 1.5;
    overflow: hidden;
}


body.dark-mode .response-text {
    background: #162032;
    border-left-color: #4a90d9;
    color: #90caf9;
}

body.dark-mode .response-text::before {
    color: #42a5f5;
}

@media (max-width: 600px) {
    .response-text {
        font-size: 11px;
        padding: 5px 7px;
        gap: 5px;
    }

    .response-text::before {
        font-size: 13px;
    }
}

/* Layanan content styling */
.layanan-content {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}



/* Dark mode support */
body.dark-mode .student-list-container {
    background: #1f2937;
}

body.dark-mode .list-title p {
    color: #9ca3af;
}

body.dark-mode th {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode td {
    border-color: #374151;
    color: #e5e7eb;
}

body.dark-mode .filter-btn,
body.dark-mode .date-input input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}


@media (max-width: 768px) {
    .list-header {
        flex-direction: column;
        gap: 16px;
    }

    .list-filters {
        flex-direction: column;
        width: 100%;
    }

    .date-filter {
        flex-direction: column;
    }
}

/* Elemen Messages Conateiner */
/* Messages Container */
.messages-container {
    display: flex;
    background: #fff;
    border-radius: 10px;
    /* height: calc(100vh - 100px); */
    margin: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Contacts Sidebar */
.contacts-sidebar {
    width: 320px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.contacts-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-message-btn {
    padding: 8px 16px;
    background: #1d84c6;
    color: white;
    border: none;
    width: 150px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.contacts-search {
    padding: 15px;
    position: relative;
}

.contacts-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
}

.contacts-search i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
}

.contact-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-item.active {
    background: #e8f5e9;
}

.contact-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h4 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.contact-info p {
    margin: 2px 0;
    font-size: 13px;
    color: #666;
}

.contact-info .last-message {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.contact-meta .time {
    font-size: 12px;
    color: #666;
}

.contact-meta .unread-count {
    background: #1d84c6;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-contact-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-actions button {
    padding: 8px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
}

.chat-actions button:hover {
    background: #f8f9fa;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-date {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 10px 0;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    align-self: flex-end;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 100%;
}

.message.received .message-bubble {
    background: #f8f9fa;
    border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
    background: #e3f2fd;
    border-bottom-right-radius: 4px;
    color: #1565c0;
}

.message-attachment {
    margin-top: 5px;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-info span {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-info small {
    color: #666;
    font-size: 12px;
}

.message-time {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    align-items: center;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
}

.chat-input button {
    padding: 12px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
}

.chat-input .send-btn {
    color: #000000;
}

.chat-input button:hover {
    background: #f8f9fa;
}

/* Dark mode support */
body.dark-mode .messages-container {
    background: #1f2937;
}

body.dark-mode .contacts-sidebar,
body.dark-mode .chat-header,
body.dark-mode .chat-input {
    border-color: #374151;
}

body.dark-mode .contact-item:hover {
    background: #374151;
}

body.dark-mode .contact-item.active {
    background: #3b4252;
}

body.dark-mode .message.received .message-bubble {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .message.sent .message-bubble {
    background: #3b4252;
    color: #e5e7eb;
}

body.dark-mode .message-attachment {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .chat-input input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .messages-container {
        flex-direction: column;
    }

    .contacts-sidebar {
        width: 100%;
    }

    .contacts-header {
        padding: 15px;
    }

    .new-message-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .chat-area {
        width: 100%;
        margin-top: 30px;
        height: calc(100vh - 200px);
        background: #ffffff;
        border-top: 1px solid #eee;
    }

    .contacts-list {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* PANDUAN ELEMEN */
/* Guide Container Styles */
.guide-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-header {
    text-align: center;
    margin-bottom: 30px;
}

.guide-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.guide-header p {
    color: #666;
    font-size: 16px;
}

/* Video Categories */
.video-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: #1d84c6;
    color: white;
    border-color: #1d84c6;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #f5f5f5;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-btn {
    opacity: 1;
}

.play-btn i {
    font-size: 24px;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.video-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 12px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    margin: 0 auto;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #e0e0e0;
}

/* Dark Mode Support */
body.dark-mode .video-item {
    background: #1f2937;
}

body.dark-mode .video-info h3 {
    color: #e5e7eb;
}

body.dark-mode .video-info p {
    color: #9ca3af;
}

body.dark-mode .category-btn {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .category-btn.active,
body.dark-mode .category-btn:hover {
    background: #1d84c6;
    border-color: #1d84c6;
}

body.dark-mode .load-more-btn {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .load-more-btn:hover {
    background: #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-container {
        padding: 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .guide-header h2 {
        font-size: 24px;
    }

    .category-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
}


/* SUCCESS MODAL */
.modal-edit {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-content: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.modal-content-edit {
    background-color: #fefefe;
    margin: auto;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: zoomIn 0.3s ease-out;
}

.modal-large {
    max-width: 900px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 4rem;
    color: #c81e1d;
    /* danger color */
    line-height: 1;
    margin-bottom: 1rem;
}

.modal-content-edit h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content-edit p {
    color: #555;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-content-edit .form-actions {
    margin-top: 20px;
    text-align: left;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ... existing modal styles ... */

/* Dark mode modal styles */
body.dark-mode .modal-edit {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .modal-content-edit {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .modal-icon {
    color: #e53e3e;
}

body.dark-mode .modal-content-edit h2 {
    color: #e2e8f0;
}

body.dark-mode .modal-content-edit p {
    color: #a0aec0;
}

body.dark-mode .close {
    color: #9ca3af;
}

body.dark-mode .close:hover,
body.dark-mode .close:focus {
    color: #e5e7eb;
}

/* ... rest of the CSS ... */


/* END MODAL */


/* START COMPONNET BOTTON */
/* Base Button Styling */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 6px;
    white-space: nowrap;
}

.btn-block {
    width: 100%;
    box-sizing: border-box;
}

.btn.top {
    margin-top: 10px;
}

.btn i {
    font-size: 20px;
}

/* Hover and Active Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Button Variations */
.btn.success {
    background: #03ad00;
    color: white;
}

.btn.success:hover {
    background: #058c03;
}

.btn.primary {
    background: #1d84c6;
    color: white;
}

.btn.primary:hover {
    background: #1976D2;
}

.btn.secondary {
    background: #757575;
    color: white;
}

.btn.secondary:hover {
    background: #616161;
}

.btn.warning {
    background: #FFC107;
    color: black;
}

.btn.warning:hover {
    background: #FFA000;
}

.btn.danger {
    background: #c81e1d;
    color: white;
}

.btn.danger:hover {
    background: #D32F2F;
}

.btn.info {
    background: #00BCD4;
    color: white;
}

.btn.info:hover {
    background: #0097A7;
}

.btn.waiting {
    background: #299d00;
    color: white;
}

.btn.waiting:hover {
    background: #299d00;
}

.btn.logout {
    background: #a50b00;
    /* Original background for visibility */
    color: #ffffff;
    width: 95px;
    /* border-radius: 20px; */
    font-weight: 600;
    /* Slightly less bold than 'bold' for elegance */
    padding: 10px 20px;
    /* border: 1px solid #a50b00; */
    /* Subtle border matching the background */
    cursor: pointer;
    transition: all 0.3s ease;
    /* Smooth transition for all changes */
    box-sizing: border-box;
    /* Ensures padding and border are included in the width */
}

.btn.logout:hover {
    background: transparent;
    /* Transparent background on hover */
    color: #a50b00;
    /* Text color matches original background/border */
    border-color: #a50b00;
    /* Ensure border remains the same color */
}

/* Button Sizes */

/* Button Sizes */
.btn.x-small {
    padding: 4px 10px;
    font-size: 12px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.btn.x-small:hover {
    background: transparent;
    /* Transparent background on hover */
    color: #01a40d;
    /* Text color matches original background/border */
    border-color: #01a40d;
    /* Ensure border remains the same color */
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn.medium {
    padding: 12px 24px;
    font-size: 16px;
}

.btn.large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn.x-large {
    padding: 20px 40px;
    font-size: 20px;
}

/* Outlined Variations */
.btn.outlined {
    background: transparent;
    border: 2px solid currentColor;
    box-shadow: none;
}

.btn.outlined:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn.outlined.success {
    color: #1d84c6;
    border-color: #1d84c6;
}

.btn.outlined.primary {
    color: #1c4ed8;
    border-color: #1c4ed8;
}

.btn.outlined.secondary {
    color: #757575;
    border-color: #757575;
}

.btn.outlined.warning {
    color: #FFC107;
    border-color: #FFC107;
}

.btn.outlined.danger {
    color: #F44336;
    border-color: #F44336;
}

.btn.outlined.info {
    color: #00BCD4;
    border-color: #00BCD4;
}

/* Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


/* END COMPONNET BUTTON */

/* SOCIAL MEDIA PROFIEL */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 18px;
}


/* CSS FOR ALERT/NOTIF */
.alert {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #f4f1e6;
    color: #ea8227;
    border: 1px solid #e6d9c3;
}

.alert-danger {
    background-color: #fde7e9;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 20px;
    margin-right: 10px;
}

/* CLOSING CSS FOR NNOTIF */


/* CSS FOR ALERT/NOTIF 002 */
.alert2-container {
    position: fixed;
    top: 110px;
    /* Tambah jarak dari header */
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert2 {
    position: relative;
    min-width: 280px;
    max-width: 350px;
    padding: 15px 20px 20px 20px;
    /* beri ruang bawah untuk garis */
    border-radius: 8px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.95;
    overflow: hidden;
}

/* Garis loading di bawah */
.alert2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    animation: alert2Progress 4s linear forwards;
}

@keyframes alert2Progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Tambahan jenis alert */

.alert2-skripsi {
    background-color: #1d84c6;
}

.alert2-chatpa {
    background-color: #1c4ed8;
}

.alert2-acc_judul {
    background-color: #28a745;
}

.alert2-success {
    background-color: #28a745;
}

.alert2-danger {
    background-color: #dc3545;
}

.alert2-error {
    background-color: #d61124;
}

.alert2-warning {
    background-color: #ffc107;
    color: #333;
}

.alert2-info {
    background-color: #17a2b8;
}

/* Animasi muncul */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}





/* FOOTER DASHBOARD */
.dashboard-footer {
    margin-top: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left p {
    color: #666;
    font-size: 0.9rem;
}

.footer-center {
    display: flex;
    gap: 20px;
}

.footer-center a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3 ease;
}

.footer-center a:hover {
    color: #136815;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #666;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #136815;
    transform: translateY(-2px);
}

body.dark-mode .dashboard-footer {
    background: rgba(31, 41, 55, 0.8);
    border-top: 1px solid rbga (255, 255, 255, 0.1);
}

body.dark-mode .footer-left p,
body.dark-mode .footer-center a,
body.dark-mode .social-links a {
    color: #9ca3af;
}


body.dark-mode .footer-center a:hover,
body.dark-mode .social-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-center {
        display: none;
    }

    .social-links {
        justify-content: center;
    }
}

/* CSS FOR TIMELINE */
.timeline-content {
    padding: 20px;
    background: var(--panel-color);
    border-radius: 10px;
    position: relative;
}


.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    right: -48px;
    top: 32px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -48px;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #2196f3;
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .timeline-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-dot::before {
        animation: pulse 1.5s infinite;
    }
}


.timeline-content {
    padding: 20px;
    background: var(--panel-color);
    border-radius: 10px;
    position: relative;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 15px;
    width: fit-content;
}

.timeline-status.completed {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.timeline-status.active {
    background: rgba(54, 162, 235, 0.15);
    color: #36a2eb;
}

.timeline-status.pending {
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.timeline-status.failed {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 23px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }

    .timeline-content {
        padding: 15px;
    }
}

.dark-mode .timeline-container {
    background: var(--dark-card-bg);
}

.dark-mode .timeline-dot {
    border-color: var(--dark-card-bg);
}

.dark-mode .timeline-content {
    background: var(--dark-card-bg);
}

/* CSS FOR TIMELINE */

/* Toggle Sidebar Button Styles */
#toggle-sidebar {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#toggle-sidebar i {
    font-size: 24px;
    color: #333;
}

#toggle-sidebar:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: scale(1.05);
}

#toggle-sidebar:active {
    transform: scale(0.95);
}

/* Dark mode support for toggle button */
body.dark-mode #toggle-sidebar i {
    color: #e5e7eb;
}

body.dark-mode #toggle-sidebar:hover {
    background: rgba(76, 175, 80, 0.15);
}

/* Main Content Styles */

/* ELEGANT HERO PROFILE SECTION */
.hero-profile-elegant {
    display: flex;
    flex-direction: column;
    /* Default to column for mobile first */
    align-items: center;
    gap: 30px;
    /* Space between photo and info */
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
    /* Subtle border */
}

.hero-profile-elegant:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.hero-photo-elegant {
    flex-shrink: 0;
    /* Prevent photo from shrinking */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #1d84c6;
    /* Green border around photo */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    /* Fallback background */
    transition: all 0.3s ease;
}

.hero-photo-elegant:hover {
    transform: scale(1.03);
    border-color: #136815;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-photo-elegant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-info-elegant {
    flex-grow: 1;
    /* Allow info section to take remaining space */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-welcome-text {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

.hero-name-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    background: linear-gradient(135deg, #8f978f, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle text shadow */
}

.hero-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 15px 30px;
    /* Row gap, column gap */
    width: 100%;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align text to the left within its item */
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    /* Subtle separator */
}

.detail-item:last-child {
    border-bottom: none;
    /* No border for the last item in the grid */
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #939393;
    /* Label color */
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    /* Value color */
    font-weight: 500;
}

.hero-action-area {
    margin-top: 10px;
    width: 100%;
}

.hero-action-area a {
    display: block;
    /* Make the anchor tag take full width for button centering */
    text-align: left;
}

/* Ensure button styles from your existing CSS are applied */
.hero-action-area .btn {
    padding: 12px 28px;
    /* Adjust button padding for better appearance */
    font-size: 1rem;
    /* Adjust font size */
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    /* Stronger shadow for primary action */
}

.hero-action-area .btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.hero-action-area .btn.danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

.hero-action-area .btn.primary {
    background: linear-gradient(135deg, #1d84c6, #136815);
    /* Keep consistent green for primary */
}

.hero-action-area .btn.primary:hover {
    background: linear-gradient(135deg, #136815, #1d84c6);
}


/* Responsive adjustments */
@media (min-width: 768px) {
    .hero-profile-elegant {
        flex-direction: row;
        /* Layout side-by-side on larger screens */
        text-align: left;
        /* Align text within hero-info-elegant */
    }

    .hero-info-elegant {
        text-align: left;
        /* Align info content to the left */
        align-items: flex-start;
        /* Align content to the left */
    }

    .hero-name-display {
        font-size: 3rem;
        /* Larger font for larger screens */
    }

    .hero-photo-elegant {
        margin-right: 20px;
        /* Space between photo and text */
    }

    .hero-action-area a {
        text-align: left;
        /* Align button to the left */
    }
}

@media (max-width: 480px) {
    .hero-profile-elegant {
        padding: 25px 20px;
        gap: 20px;
    }

    .hero-photo-elegant {
        width: 120px;
        height: 120px;
    }

    .hero-name-display {
        font-size: 1.5rem;
    }

    .hero-details-grid {
        /* grid-template-columns: 1fr; Stack details vertically on very small screens */
        gap: 10px;
    }

    .detail-label,
    .detail-value {
        font-size: 0.9rem;
        text-align: left;
    }

    .hero-action-area .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* Dark Mode Support for Elegant Profile */
body.dark-mode .hero-profile-elegant {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(76, 175, 80, 0.2);
}

body.dark-mode .hero-profile-elegant:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero-photo-elegant {
    border-color: #1d84c6;
    /* Keep green border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: #2d3748;
    /* Darker background for photo div */
}

body.dark-mode .hero-photo-elegant:hover {
    border-color: #136815;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-welcome-text {
    color: #9ca3af;
}

body.dark-mode .hero-name-display {
    color: #e5e7eb;
    /* Light text for name in dark mode */
    background: linear-gradient(135deg, #1d84c6, #136815);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    /* Remove text shadow in dark mode */
}

body.dark-mode .detail-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    /* Lighter border in dark mode */
}

body.dark-mode .detail-label {
    color: #a7ffb0;
    /* Adjust label color for dark mode */
}

body.dark-mode .detail-value {
    color: #e5e7eb;
    /* Adjust value color for dark mode */
}

body.dark-mode .hero-action-area .btn.danger {
    background: linear-gradient(135deg, #bd2130, #a11b27);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

body.dark-mode .hero-action-area .btn.danger:hover {
    background: linear-gradient(135deg, #a11b27, #bd2130);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

body.dark-mode .hero-action-area .btn.primary {
    background: linear-gradient(135deg, #136815, #1d84c6);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

body.dark-mode .hero-action-area .btn.primary:hover {
    background: linear-gradient(135deg, #1d84c6, #136815);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* STATS CARDS - MODERN COLORS & RESPONSIVE */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}

.stat-card {
    background: linear-gradient(135deg, #e8f5e9 60%, #f8f9fa 100%);
    color: #222;
    padding: 24px 18px 18px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 120px;
}

.stat-card i,
.stat-card img {
    font-size: 38px;
    min-width: 38px;
    color: #1d84c6;
    margin-right: 8px;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-info p {
    font-size: 13px;
    color: #136815;
    margin-bottom: 2px;
    font-weight: 600;
}

.stat-card .stat-info h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #222;
}

.stat-card .stat-info h5 {
    font-size: 15px;
    color: #136815;
    margin-bottom: 4px;
    font-weight: 700;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.13);
}

/* Custom gradients for each card */
.stat-card.orange {
    background: linear-gradient(135deg, #ffe29f 0%, #ffb347 100%);
    color: #7a4c00;
}

.stat-card.blue {
    background: linear-gradient(135deg, #e0ecff 0%, #90caf9 100%);
    color: #0d47a1;
}

.stat-card.green {
    background: linear-gradient(135deg, #d0f8ce 0%, #43e97b 100%);
    color: #136815;
}

.stat-card.red {
    background: linear-gradient(135deg, #ffd6d6 0%, #ff6161 100%);
    color: #b71c1c;
}

.stat-card.purple {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #5e35b1;
}

.stat-card.indigo {
    background: linear-gradient(135deg, #b3c6fc 0%, #5c6bc0 100%);
    color: #283593;
}

.stat-card.white {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    color: #136815;
}

@media (max-width: 900px) {
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 14px;
    }

    .stat-card {
        padding: 16px 10px 12px 10px;
        border-radius: 12px;
        min-height: 90px;
    }

    .stat-card i,
    .stat-card img {
        font-size: 28px;
        min-width: 28px;
    }

    .stat-card .stat-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 10px 6px 8px 6px;
        border-radius: 8px;
        min-height: 60px;
    }

    .stat-card i,
    .stat-card img {
        font-size: 20px;
        min-width: 20px;
    }

    .stat-card .stat-info h3 {
        font-size: 13px;
    }
}

body.dark-mode .stat-card {
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.13);
}

body.dark-mode .stat-card.orange {
    background: linear-gradient(135deg, #b28900 0%, #ffb347 100%);
    color: #fff3e0;
}

body.dark-mode .stat-card.blue {
    background: linear-gradient(135deg, #23395d 0%, #90caf9 100%);
    color: #e3f2fd;
}

body.dark-mode .stat-card.green {
    background: linear-gradient(135deg, #1b5e20 0%, #43e97b 100%);
    color: #d0f8ce;
}

body.dark-mode .stat-card.red {
    background: linear-gradient(135deg, #b71c1c 0%, #ff6161 100%);
    color: #ffd6d6;
}

body.dark-mode .stat-card.purple {
    background: linear-gradient(135deg, #5e35b1 0%, #8ec5fc 100%);
    color: #e0c3fc;
}

body.dark-mode .stat-card.indigo {
    background: linear-gradient(135deg, #283593 0%, #b3c6fc 100%);
    color: #b3c6fc;
}

body.dark-mode .stat-card.white {
    background: linear-gradient(135deg, #232d3b 0%, #1f2937 100%);
    color: #a7ffb0;
}

/* ===== LAYANAN FORM STYLES ===== */
.layanan-form-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Enhanced Breadcrumb Styles */
.container-breadcrumb {
    margin-bottom: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

.container-breadcrumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}

.container-breadcrumb ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.container-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    position: relative;
}

.container-breadcrumb li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #1d84c6;
    border-radius: 50%;
    opacity: 0.6;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.breadcrumb-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-link:hover::before {
    left: 100%;
}

.breadcrumb-link:hover {
    color: #1d84c6;
    background: rgba(76, 175, 80, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.breadcrumb-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.breadcrumb-link:hover i {
    transform: scale(1.1);
}

.breadcrumb-current {
    color: #1d84c6;
    font-weight: 700;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(19, 104, 21, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.breadcrumb-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.breadcrumb-current:hover::before {
    opacity: 1;
}

/* Enhanced Form Card */
.form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #d9e0e5 0%, #e1ebf2 100%);
}

.form-header {
    background: linear-gradient(135deg, #1d84c6 0%, #015d97 100%);
    color: white;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.form-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.form-header-content {
    position: relative;
    z-index: 1;
}

.form-header-content h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-header-content p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    line-height: 1.5;
}

/* Enhanced Form Layout */
.layanan-form {
    padding: 40px 32px;
}

.form-section {
    margin-bottom: 36px;
}

.form-section:last-child {
    margin-bottom: 0;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 28px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: #1d84c6;
    font-size: 18px;
    background: rgb(144 144 144 / 10%);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}


/* Enhanced Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 16px;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #1d84c6;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: #fff;
    transform: translateY(-1px);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.select-wrapper select:focus+.select-arrow {
    color: #1d84c6;
    transform: translateY(-50%) rotate(180deg);
}

/* Enhanced Textarea Wrapper */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 16px;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: #1d84c6;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: #fff;
    transform: translateY(-1px);
}

.textarea-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 13px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Enhanced Info Card */
.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.info-card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e9ecef;
}

.info-card-header i {
    color: #1976d2;
    font-size: 20px;
    background: rgba(25, 118, 210, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.info-card-header h4 {
    margin: 0;
    color: #1976d2;
    font-size: 18px;
    font-weight: 700;
}

.info-card-content {
    padding: 24px;
}

.info-card-content p {
    margin: 0;
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

/* Enhanced File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #f9fbf9 100%);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-area:hover {
    border-color: #1d84c6;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(19, 104, 21, 0.03));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.file-upload-area.drag-over {
    border-color: #1d84c6;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(19, 104, 21, 0.08));
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 56px;
    color: #6c757d;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.file-upload-area:hover i {
    color: #1d84c6;
    transform: scale(1.1);
}

.file-upload-area p {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #495057;
    font-weight: 600;
}

.file-format {
    font-size: 14px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Enhanced File Preview */
.file-preview {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    background: #fff;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-info i {
    font-size: 28px;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-name {
    font-weight: 700;
    color: #495057;
    font-size: 16px;
}

.file-size {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.file-remove {
    color: white;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.file-remove:hover {
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Enhanced Form Errors */
.form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc3545;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

.form-error i {
    font-size: 16px;
    background: rgba(220, 53, 69, 0.1);
    padding: 6px;
    border-radius: 6px;
}

/* Enhanced Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    padding-top: 32px;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.form-actions .btn {
    padding: 16px 32px;
    border-radius: 1px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.form-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-actions .btn:hover::before {
    left: 100%;
}

/* Enhanced Dark Mode Support */
body.dark-mode .container-breadcrumb {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15);
}

body.dark-mode .breadcrumb-link {
    color: #9ca3af;
}

body.dark-mode .breadcrumb-link:hover {
    color: #1d84c6;
    background: rgba(76, 175, 80, 0.15);
}

body.dark-mode .breadcrumb-current {
    color: #1d84c6;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(19, 104, 21, 0.08));
    border-color: rgba(76, 175, 80, 0.3);
}

body.dark-mode .form-card {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-header {
    background: linear-gradient(135deg, #136815 0%, #1d84c6 100%);
}

body.dark-mode .form-label {
    color: #e5e7eb;
}

body.dark-mode .select-wrapper select,
body.dark-mode .textarea-wrapper textarea {
    background: #232d3b;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark-mode .select-wrapper select:focus,
body.dark-mode .textarea-wrapper textarea:focus {
    border-color: #1d84c6;
    background: #1f2937;
}

body.dark-mode .info-card {
    background: linear-gradient(135deg, #232d3b 0%, #1f2937 100%);
    border-color: #374151;
}

body.dark-mode .info-card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #374151;
}

body.dark-mode .info-card-header h4 {
    color: #93c5fd;
}

body.dark-mode .info-card-content p {
    color: #e5e7eb;
}

body.dark-mode .file-upload-area {
    background: linear-gradient(135deg, #232d3b 0%, #1f2937 100%);
    border-color: #374151;
}

body.dark-mode .file-upload-area:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(19, 104, 21, 0.08));
}

body.dark-mode .file-preview {
    background: #232d3b;
    border-color: #374151;
}

body.dark-mode .file-name {
    color: #e5e7eb;
}

body.dark-mode .form-actions {
    border-color: #374151;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {

    .container-breadcrumb {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .container-breadcrumb ul {
        gap: 8px;
    }

    .breadcrumb-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .breadcrumb-current {
        padding: 6px 12px;
        font-size: 13px;
    }

    .form-header {
        padding: 28px 24px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .form-header-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .form-header-content h2 {
        font-size: 24px;
    }

    .form-header-content p {
        font-size: 14px;
    }

    .layanan-form {
        padding: 28px 24px;
    }

    .form-actions {
        flex-direction: column;
        gap: 16px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .form-label {
        font-size: 14px;
    }

    .select-wrapper select,
    .textarea-wrapper textarea {
        font-size: 15px;
        padding: 14px 18px;
    }

    .file-upload-area {
        padding: 40px 24px;
    }

    .file-upload-area i {
        font-size: 48px;
    }

    .file-upload-area p {
        font-size: 16px;
    }

    .info-card-header {
        padding: 16px 20px;
    }

    .info-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {

    .container-breadcrumb {
        padding: 12px 16px;
        border-radius: 12px;
    }

    .container-breadcrumb ul {
        font-size: 12px;
        gap: 6px;
    }

    .breadcrumb-link {
        padding: 4px 8px;
        font-size: 12px;
    }

    .breadcrumb-current {
        padding: 4px 8px;
        font-size: 12px;
    }

    .form-header {
        padding: 24px 20px;
    }

    .form-header-content h2 {
        font-size: 20px;
    }

    .form-header-content p {
        font-size: 13px;
    }

    .layanan-form {
        padding: 24px 20px;
    }

    .form-section {
        margin-bottom: 28px;
    }

    .form-label {
        font-size: 13px;
    }

    .select-wrapper select,
    .textarea-wrapper textarea {
        font-size: 14px;
        padding: 12px 16px;
    }

    .file-upload-area {
        padding: 30px 20px;
    }

    .file-upload-area i {
        font-size: 40px;
    }

    .file-upload-area p {
        font-size: 14px;
    }

    .info-card-header {
        padding: 12px 16px;
    }

    .info-card-content {
        padding: 16px;
    }

    .form-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Enhanced Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ri-loader-4-line {
    animation: spin 1s linear infinite;
}

/* Enhanced hover effects for breadcrumb */
.container-breadcrumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}

/* Enhanced focus states */
.form-group:focus-within .form-label {
    color: #1d84c6;
}

.form-group:focus-within .form-label i {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.1);
}

/* ===== ENHANCED SKRIPSI TIMELINE STYLES ===== */

/* Enhanced Header Section */
.skripsi-header {
    background: linear-gradient(135deg, #1d84c6 0%, #00578e 100%);
    border-radius: 8px;
    padding: 40px 32px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.skripsi-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.header-icon {
    width: 100px;
    height: 100px;
}

.header-icon:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.header-text h1 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-text p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    line-height: 1.6;
}

.header-progress {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.progress-percentage {
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #e8f5e9);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced Timeline Container */
.timeline-container {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, #8e838a 0%, #1d84c6 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;

}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Markers */
.timeline-marker {
    position: absolute;
    top: 20px;
    right: -21.5px;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -21.5px;
    right: auto;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1d84c6, #136815);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #1d84c6, 0 4px 12px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1d84c6;
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Timeline Content */
.timeline-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Timeline Header */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.timeline-badge {
    background: linear-gradient(135deg, #1d84c6, #1d84c6);
    color: white;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3); */
}

.timeline-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* Timeline Body */
.timeline-body {
    margin-bottom: 20px;
}

.timeline-description {
    margin-bottom: 20px;
}

.timeline-description p {
    margin: 0 0 16px 0;
    color: #495057;
    line-height: 1.6;
    font-size: 15px;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

/* Timeline Actions */
.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}


/* Timeline Status */
.timeline-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.timeline-status.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.timeline-status.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(19, 104, 21, 0.05));
    color: #1d84c6;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.timeline-status.pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.timeline-status i {
    font-size: 16px;
    animation: spin 1s linear infinite;
}

.timeline-status.completed i {
    animation: none;
}

/* Special Elements */
.approved-title {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    margin-top: 12px;
}

.approved-title i {
    color: #28a745;
    font-size: 20px;
}

.approved-title span {
    color: #28a745;
    font-weight: 600;
    font-style: italic;
}

.supervisor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.supervisor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.supervisor-item i {
    color: #1d84c6;
    font-size: 16px;
}

.supervisor-item span {
    color: #495057;
    font-weight: 500;
}

.sk-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.sk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    text-decoration: none;
    color: #28a745;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sk-item:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.08));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.sk-item i {
    font-size: 18px;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 8px;
    width: fit-content;
}

.notification-time i {
    font-size: 14px;
}

.warning-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    color: #ffc107;
    font-weight: 600;
    font-size: 14px;
}

.warning-message i {
    font-size: 18px;
}

/* Dark Mode Support */
body.dark-mode .skripsi-header {
    background: linear-gradient(135deg, #136815 0%, #1d84c6 100%);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

body.dark-mode .timeline-content {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .timeline-header h3 {
    color: #e5e7eb;
}

body.dark-mode .timeline-description p {
    color: #d1d5db;
}

body.dark-mode .approved-title {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.08));
    border-color: rgba(40, 167, 69, 0.3);
}

body.dark-mode .supervisor-item {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
}

body.dark-mode .supervisor-item span {
    color: #e5e7eb;
}

body.dark-mode .sk-item {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.08));
    border-color: rgba(40, 167, 69, 0.3);
}

body.dark-mode .notification-time {
    background: rgba(108, 117, 125, 0.2);
    color: #9ca3af;
}

body.dark-mode .warning-message {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.08));
    border-color: rgba(255, 193, 7, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {

    .skripsi-header {
        padding: 28px 24px;
        margin-bottom: 32px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .header-text h1 {
        font-size: 24px;
    }

    .header-text p {
        font-size: 14px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-right: 20px;
    }

    .timeline-marker {
        left: 21px !important;
        right: auto !important;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .timeline-header h3 {
        font-size: 18px;
    }

    .timeline-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .skripsi-header {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .header-text p {
        font-size: 13px;
    }

    .timeline-item {
        padding-left: 60px;
        padding-right: 16px;
    }

    .timeline-marker {
        left: 16px !important;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-header h3 {
        font-size: 16px;
    }

    .timeline-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .timeline-status {
        font-size: 12px;
        padding: 6px 12px;
    }

    .approved-title,
    .supervisor-item,
    .sk-item {
        padding: 12px;
    }

    .notification-time {
        font-size: 12px;
        padding: 4px 8px;
    }

    .warning-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Enhanced Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ri-loader-4-line {
    animation: spin 1s linear infinite;
}

/* Enhanced hover effects */
.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px #1d84c6, 0 6px 20px rgba(76, 175, 80, 0.4);
}

.timeline-item:hover .timeline-content::before {
    background: linear-gradient(135deg, #136815 0%, #1d84c6 100%);
}


/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {

    .timeline-dot::before,
    .progress-fill::after {
        animation: none;
    }

    .timeline-content,
    .timeline-dot {
        transition: none;
    }
}

/* ===== ENHANCED SKRIPSI TIMELINE STYLES ===== */

/* ===== UJIAN REGISTRATION FORM STYLES ===== */
.profile-section-ujian {
    background: linear-gradient(135deg, #f8f9fa 80%, #e8f5e9 100%);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.07);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.requirement-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "info actions";
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.1);
    border-color: #1d84c6;
}

.requirement-info {
    grid-area: info;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.requirement-icon {
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.1);
    color: #1d84c6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.requirement-text {
    min-width: 0;
}

.requirement-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.requirement-desc {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.requirement-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Custom styling for Django's file input */
.requirement-actions input[type="file"] {
    font-size: 14px;
    color: #495057;
}

.requirement-actions input[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1d84c6;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.requirement-actions input[type="file"]::file-selector-button:hover {
    background-color: rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
}

.system-generated-info {
    font-size: 14px;
    color: #495057;
    font-style: italic;
    text-align: right;
}

.requirement-actions .btn,
.system-generated-action .btn {
    margin-bottom: 0px;
}

@media (max-width: 992px) {
    .requirement-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "actions";
        align-items: stretch;
    }

    .requirement-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .system-generated-info {
        text-align: left;
        margin-top: 0;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .requirement-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .requirement-desc {
        white-space: normal;
    }
}


body.dark-mode .profile-section-ujian {
    background: #1f2937;
}

body.dark-mode .requirement-item {
    background: linear-gradient(135deg, #232d3b 0%, #1f2937 100%);
    border-color: #374151;
}

body.dark-mode .requirement-item:hover {
    border-color: #1d84c6;
}

body.dark-mode .requirement-icon {
    background: rgba(76, 175, 80, 0.2);
}

body.dark-mode .requirement-title {
    color: #e5e7eb;
}

body.dark-mode .requirement-desc {
    color: #9ca3af;
}

body.dark-mode .system-generated-info {
    color: #d1d5db;
}

body.dark-mode .requirement-actions input[type="file"] {
    color: #d1d5db;
}

body.dark-mode .requirement-actions input[type="file"]::file-selector-button {
    color: #a7ffb0;
    background-color: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

body.dark-mode .requirement-actions input[type="file"]::file-selector-button:hover {
    background-color: rgba(76, 175, 80, 0.3);
}

/* Final Action Section for Ujian Reg */
.final-action-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #d8e9da 100%);
    border-top: 3px solid #1d84c6;
    border-radius: 16px;
    padding: 32px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

.final-action-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
}

.final-action-section p {
    color: #136815;
    font-size: 16px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.final-action-section h2 {
    margin: 0;
}

.final-action-section .btn {
    padding: 14px 32px;
    font-size: 16px;
}

body.dark-mode .final-action-section {
    background: linear-gradient(135deg, #1f2937 0%, #2a3b4e 100%);
    border-top-color: #1d84c6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark-mode .final-action-section p {
    color: #a7ffb0;
}

/* Title Selection Detail Styles */
.judul-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.judul-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.similarity-badge {
    display: flex;
    justify-content: flex-start;
}

.similarity-badge .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.journal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.journal-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.journal-number {
    font-weight: 600;
    color: #666;
    min-width: 1.5rem;
}

.journal-title {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #333;
}

.journal-link {
    text-decoration: none;
}


/* Dark mode styles for title selection */
body.dark-mode .judul-content h4 {
    color: #e2e8f0;
}

body.dark-mode .journal-number {
    color: #a0aec0;
}

body.dark-mode .journal-title {
    color: #e2e8f0;
}


/* Responsive styles for title selection */
@media (max-width: 768px) {
    .judul-content h4 {
        font-size: 0.8rem;
    }

    .similarity-badge .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .journal-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .journal-title {
        font-size: 0.75rem;
    }
}

/* Requirement Details Styles */
.requirement-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section strong {
    color: #374151;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-section:not(:last-child) {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Dark mode styles for requirement details */
body.dark-mode .requirement-details {
    border-top-color: #4b5563;
}

body.dark-mode .detail-section strong {
    color: #d1d5db;
}

body.dark-mode .detail-section:not(:last-child) {
    border-bottom-color: #4b5563;
}

/* Responsive styles for requirement details */
@media (max-width: 768px) {
    .requirement-details {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .detail-section {
        margin-bottom: 0.75rem;
    }

    .detail-section:not(:last-child) {
        padding-bottom: 0.5rem;
    }
}

/* Similarity Modal Styles */
.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header .modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.modal-header .modal-title h2 {
    margin: 0 0 4px 0;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-header .modal-title p {
    text-align: left;
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    max-width: 400px;
    word-wrap: break-word;
}

.similarity-content {
    max-height: 60vh;
    overflow-y: auto;
}

.similarity-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-value.text-danger {
    color: #dc3545;
}

.summary-value.text-warning {
    color: #ffc107;
}

.summary-value.text-primary {
    color: #0d6efd;
}

.summary-value.text-success {
    color: #198754;
}

.similarity-table {
    margin-bottom: 20px;
}

.similarity-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.similarity-table th {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 1px solid #e1e5e9;
}

.similarity-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
}

.similarity-table tr:last-child td {
    border-bottom: none;
}

.similarity-table tr.similarity-high {
    background: rgba(220, 53, 69, 0.05);
}

.similarity-table tr.similarity-medium {
    background: rgba(255, 193, 7, 0.05);
}

.similarity-table tr.similarity-low {
    background: rgba(13, 110, 253, 0.05);
}

.similarity-table tr.similarity-safe {
    background: rgba(25, 135, 84, 0.05);
}

.similarity-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.title-cell {
    width: 50%;
}

.title-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-text {
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    word-wrap: break-word;
}

.student-cell {
    width: 25%;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.student-name {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.student-nim {
    font-size: 12px;
    color: #666;
}

.percentage-cell {
    width: 20%;
    text-align: center;
}

.percentage-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.percentage-badge.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.percentage-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #b45309;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.percentage-badge.primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.percentage-badge.success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.similarity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-color.danger {
    background: #dc3545;
}

.legend-color.warning {
    background: #ffc107;
}

.legend-color.primary {
    background: #0d6efd;
}

.legend-color.success {
    background: #198754;
}

.legend-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Dark mode styles for similarity modal */
body.dark-mode .modal-header .modal-title h2 {
    color: #e5e7eb;
}

body.dark-mode .modal-header .modal-title p {
    color: #9ca3af;
}

body.dark-mode .similarity-summary {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .summary-label {
    color: #9ca3af;
}

body.dark-mode .summary-value {
    color: #e5e7eb;
}

body.dark-mode .similarity-table table {
    background: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .similarity-table th {
    background: #4b5563;
    color: #e5e7eb;
    border-bottom-color: #6b7280;
}

body.dark-mode .similarity-table td {
    border-bottom-color: #4b5563;
    color: #e5e7eb;
}

body.dark-mode .similarity-table tr.similarity-high {
    background: rgba(220, 53, 69, 0.1);
}

body.dark-mode .similarity-table tr.similarity-medium {
    background: rgba(255, 193, 7, 0.1);
}

body.dark-mode .similarity-table tr.similarity-low {
    background: rgba(13, 110, 253, 0.1);
}

body.dark-mode .similarity-table tr.similarity-safe {
    background: rgba(25, 135, 84, 0.1);
}

body.dark-mode .similarity-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .title-text {
    color: #e5e7eb;
}

body.dark-mode .student-name {
    color: #e5e7eb;
}

body.dark-mode .student-nim {
    color: #9ca3af;
}

body.dark-mode .similarity-legend {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .legend-text {
    color: #9ca3af;
}

/* Responsive styles for similarity modal */
@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .modal-header .modal-title p {
        max-width: 100%;
    }

    .similarity-summary {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .similarity-table {
        overflow-x: auto;
    }

    .similarity-table table {
        min-width: 600px;
    }

    .similarity-table th,
    .similarity-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .title-cell {
        width: 45%;
    }

    .student-cell {
        width: 30%;
    }

    .percentage-cell {
        width: 25%;
    }

    .similarity-legend {
        flex-direction: column;
        gap: 12px;
    }

    .legend-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content-edit {
        /* margin: 10px; */
        padding: 20px;
        max-height: 90vh;
    }

    .similarity-table table {
        min-width: 500px;
    }

    .similarity-table th,
    .similarity-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .percentage-badge {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 50px;
    }

    .title-text {
        font-size: 13px;
    }

    .student-name {
        font-size: 13px;
    }

    .student-nim {
        font-size: 11px;
    }
}

.sidebar-menu .submenu {
    display: none;
    padding-left: 20px;
    background: none;
    border: none;
}

.sidebar-menu li.has-dropdown.active>.submenu,
.sidebar-menu li.has-dropdown.open>.submenu {
    display: block;
}

/* Student Info Grid */
.student-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Scoring Grid */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scoring-item {
    background: var(--panel-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.scoring-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 75, 241, 0.1);
}

.scoring-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.scoring-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.scoring-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.scoring-input {
    position: relative;
}

.scoring-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.scoring-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 75, 241, 0.1);
}

.input-label {
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    background: var(--panel-color);
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Final Score Card */
.final-score-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976D2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    text-align: center;
}

.score-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.score-header i {
    font-size: 2rem;
}

.score-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.score-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.score-value.angka {
    color: #FFD700;
}

.score-value.huruf {
    color: #90EE90;
}

/* Grade Legend */
.grade-legend {
    background: var(--panel-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.grade-legend h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.grade-legend h4 i {
    color: var(--primary-color);
}

.grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.grade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--white-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.grade-range {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.grade-letter {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    min-width: 2rem;
    text-align: center;
}

.grade-letter.a {
    background: #1d84c6;
    color: white;
}

.grade-letter.a-minus {
    background: #66BB6A;
    color: white;
}

.grade-letter.b-plus {
    background: #81C784;
    color: white;
}

.grade-letter.b {
    background: #A5D6A7;
    color: #2E7D32;
}

.grade-letter.b-minus {
    background: #C8E6C9;
    color: #2E7D32;
}

.grade-letter.c {
    background: #FFEB3B;
    color: #F57F17;
}

.grade-letter.d {
    background: #FF9800;
    color: white;
}

.grade-letter.e {
    background: #F44336;
    color: white;
}

.grade-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: 8px;
    color: #E65100;
    font-size: 0.875rem;
    font-weight: 500;
}

.grade-note i {
    color: #FF9800;
}

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

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

    .grade-grid {
        grid-template-columns: 1fr;
    }

    .student-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support */
body.dark-mode .scoring-item {
    background: var(--dark-card-bg);
    border-color: #374151;
}

body.dark-mode .scoring-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 75, 241, 0.2);
}

body.dark-mode .grade-legend {
    background: var(--dark-card-bg);
    border-color: #374151;
}

body.dark-mode .grade-item {
    background: #374151;
    border-color: #4B5563;
}

body.dark-mode .grade-range {
    color: #D1D5DB;
}

body.dark-mode .grade-note {
    background: #451A03;
    border-color: #92400E;
    color: #FCD34D;
}

body.dark-mode .grade-note i {
    color: #F59E0B;
}


/* ===== Custom DataTables ===== */
.dataTables_wrapper {
    font-family: 'Roboto', sans-serif;
    color: #222;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    background: #f8f9fa;
    color: #222;
    margin-left: 8px;
    transition: border 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #1d84c6;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    padding: 6px 10px;
    border: 1.5px solid #e0e0e0;
    background: #f8f9fa;
    color: #222;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #1d84c6;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    margin: 0 2px;
    padding: 6px 12px;
    font-size: 13px;
    transition: background 0.2s;
}


.dataTables_wrapper .dataTables_info {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.dataTables_wrapper .dt-buttons .dt-button {
    background: linear-gradient(135deg, #1d84c6, #1d84c6);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin-right: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.08);
}

.dataTables_wrapper .dt-buttons .dt-button:hover {
    background: linear-gradient(135deg, #136815, #1d84c6);
    color: #000000 !important;
}

.dataTables_wrapper .dataTables_scrollBody {
    background: #fff;
}

.dataTables_wrapper table.dataTable thead th {
    background: #f8f9fa;
    color: #808080;
    font-weight: 700;
    border-bottom: 2px solid #1d84c6;
    font-size: 15px;
}

.dataTables_wrapper table.dataTable tbody td {
    color: #222;
    font-size: 14px;
    background: #fff;
}

.dataTables_wrapper table.dataTable {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.05);
}

/* Responsive DataTables */
@media (max-width: 768px) {

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        font-size: 12px;
        padding: 6px 8px;
    }

    .dataTables_wrapper .dt-buttons .dt-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* DataTables Buttons: Default (desktop) tetap kanan */
.dataTables_wrapper .dt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

/* DataTables Buttons: Mobile (max-width: 600px) rata kiri */
@media (max-width: 600px) {
    .dataTables_wrapper .dt-buttons {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }
}

/* Dark mode support */
body.dark-mode .dataTables_wrapper {
    color: #e5e7eb;
}

body.dark-mode .dataTables_wrapper .dataTables_filter input,
body.dark-mode .dataTables_wrapper .dataTables_length select {
    background: #232d3b;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #136815;
    color: #fff !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #1d84c6 !important;
    color: #fff !important;
}

body.dark-mode .dataTables_wrapper .dt-buttons .dt-button {
    background: linear-gradient(135deg, #136815, #1d84c6);
    color: #fff !important;
}

body.dark-mode .dataTables_wrapper table.dataTable thead th {
    background: #374151;
    color: #a7ffb0;
    border-bottom: 2px solid #1d84c6;
}

body.dark-mode .dataTables_wrapper table.dataTable tbody td {
    color: #e5e7eb;
    background: #1f2937;
}

body.dark-mode .dataTables_wrapper table.dataTable {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.13);
}

/* DataTables */
/* ===== Enhanced DataTables Search Box ===== */
.dataTables_filter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 18px;
    gap: 10px;
}

.dataTables_filter label {
    font-weight: 500;
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.dataTables_filter input[type="search"] {
    border: 1.5px solid #e0e0e0;
    padding: 10px 16px 10px 38px;
    font-size: 16px;
    color: #222;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    width: 300px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.04);
}

.dataTables_filter input[type="search"]:hover,
.dataTables_filter input[type="search"]:focus {
    border-color: #1d84c6;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 2px #1d84c640;
}

@media (max-width: 600px) {
    .dataTables_filter {
        justify-content: stretch;
    }

    .dataTables_filter input[type="search"] {
        width: 200px;
        min-width: 0;
        font-size: 15px;
        padding: 8px 12px 8px 36px;
    }

    .dataTables_filter label {
        font-size: 18px;
    }
}

/* Dark mode support */
body.dark-mode .dataTables_filter label {
    color: #a7ffb0;
}

body.dark-mode .dataTables_filter input[type="search"] {
    color: #e5e7eb;
    border-color: #1d84c6;
}

body.dark-mode .dataTables_filter input[type="search"]:hover,
body.dark-mode .dataTables_filter input[type="search"]:focus {
    background-color: #1f2937;
    border-color: #a7ffb0;
    box-shadow: 0 0 0 2px #1d84c680;
}

/* JENIS LAYANAN */
/* Jenis Layanan Badge */
.jenis-layanan-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #ffffff;
    color: #606060;
    border: 1px solid #212121;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

body.dark-mode .jenis-layanan-badge {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
}


/* ================================================
   LAYANAN ME — REDESIGNED UI
   ================================================ */

/* Container overrides */
.layanan-me-container {
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

body.dark-mode .layanan-me-container {
    background: #1f2937;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* --- IMPROVED JENIS LAYANAN BADGE --- */
.layanan-me-container .jenis-layanan-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    color: #5a5c61;
    border: 1px solid #d4d6db;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

body.dark-mode .layanan-me-container .jenis-layanan-badge {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2d4d 100%);
    color: #90b8f8;
    border-color: #2d4a6f;
}

/* --- IMPROVED STATUS BADGES --- */
.layanan-me-container .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.layanan-me-container .status-badge i {
    font-size: 13px;
}

.layanan-me-container .status-badge.completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.layanan-me-container .status-badge.waiting {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    border: 1px solid #fde047;
}

.layanan-me-container .status-badge.processing {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #9a3412;
    border: 1px solid #fdba74;
}

.layanan-me-container .status-badge.rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Dark mode status badges */
body.dark-mode .layanan-me-container .status-badge.completed {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    color: #86efac;
    border-color: #22c55e40;
}

body.dark-mode .layanan-me-container .status-badge.waiting {
    background: linear-gradient(135deg, #713f12 0%, #854d0e 100%);
    color: #fde047;
    border-color: #eab30840;
}

body.dark-mode .layanan-me-container .status-badge.processing {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
    color: #fdba74;
    border-color: #f9731640;
}

body.dark-mode .layanan-me-container .status-badge.rejected {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
    border-color: #ef444440;
}

/* --- TABLE STATUS CELL --- */
.layanan-status-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layanan-status-row {
    display: flex;
    align-items: center;
}

/* --- RESPONSE MESSAGE (in table) --- */
.layanan-response-msg {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    padding: 6px 10px;
    border-left: 1px solid #cbd5e1;
    border-radius: 0 6px 6px 0;
    word-break: break-word;
    white-space: normal;
}

body.dark-mode .layanan-response-msg {
    background: #1e293b;
    border-left-color: #475569;
    color: #94a3b8;
}

/* --- RESULT ACTION BUTTONS (in table) --- */
.layanan-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.layanan-result-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.layanan-result-link:hover {
    background: #dbeafe;
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.12);
    transform: translateY(-1px);
}

.layanan-result-link i {
    font-size: 14px;
}

body.dark-mode .layanan-result-link {
    background: #1e3a5f;
    color: #93c5fd;
    border-color: #2d4a6f;
}

body.dark-mode .layanan-result-link:hover {
    background: #264a73;
    color: #bfdbfe;
}

/* --- ATTACHMENT LINKS (in table Lampiran column) --- */
.layanan-attachments {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.layanan-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    background: #f9f9f9;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.layanan-attachment-link:hover {
    color: #5b21b6;
    transform: translateY(-1px);
}

.layanan-attachment-link i {
    font-size: 14px;
}

body.dark-mode .layanan-attachment-link {
    background: #2e1065;
    color: #c4b5fd;
    border-color: #4c1d95;
}

body.dark-mode .layanan-attachment-link:hover {
    background: #3b1382;
    color: #ddd6fe;
}

.layanan-no-attachment {
    color: #cbd5e1;
    font-size: 14px;
}

body.dark-mode .layanan-no-attachment {
    color: #475569;
}

/* --- TABLE: better row styling --- */
.layanan-me-container table.dataTable tbody tr {
    transition: background 0.15s ease;
}

.layanan-me-container table.dataTable tbody tr:hover {
    background: #f8fafc !important;
}

body.dark-mode .layanan-me-container table.dataTable tbody tr:hover {
    background: #1e293b !important;
}

.layanan-me-container table.dataTable tbody td {
    vertical-align: top;
    padding: 14px 16px;
    white-space: normal;
    word-break: break-word;
}

/* Date styling */
.layanan-date {
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
}

body.dark-mode .layanan-date {
    color: #94a3b8;
}

#layananTable td {
    white-space: normal;
    vertical-align: top;
    word-break: break-word;
}

/* Wrapper untuk konten dalam td Detail & Status Layanan */
.layanan-cell-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

/* Info text inside layanan table cells (isi layanan & hasil test) */
.layanan-info-text {
    display: block;
    padding: 4px 7px;
    background: #f0f6ff;
    border-left: 1px solid #c9c9c9;
    border-radius: 0 5px 5px 0;
    font-size: 11px;
    color: #6a6a6a;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
}

/* Kolom */

.mhs-cell {
    min-width: 160px;
    white-space: normal;
    word-break: break-word;
}

.mhs-name {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.4;
    display: block;
}

.mhs-nim {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 1px;
}


.judul-cell {
    max-width: 380px;
    min-width: 220px;
}

.student-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
    .judul-cell {
        max-width: 260px;
        min-width: 180px;
    }

    .judul-text {
        font-size: 13px;
    }

    .mhs-cell {
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .judul-cell {
        max-width: 200px;
        min-width: 160px;
    }

    .judul-text {
        -webkit-line-clamp: 3;
        font-size: 13px;
    }

    .mhs-cell {
        min-width: 120px;
    }

    .mhs-name {
        font-size: 12px;
    }

    .mhs-nim {
        font-size: 10px;
    }

    .pembimbing-cell {
        min-width: 120px;
    }

    .pembimbing-item {
        font-size: 12px;
    }

    .status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}


/* Person cell (Pembimbing / Penguji) */
.person-cell {
    min-width: 170px;
    white-space: normal;
}

.dsn-person-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    white-space: nowrap;
}

.dsn-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #686868, #cbcbcb);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.35);
}

/* Penguji — purple variant */
.dsn-num-badge.penguji {
    background: linear-gradient(135deg, #686868, #595959);
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.35);
}

.dsn-person-name {
    font-size: 12.5px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

/* Dark mode */
body.dark-mode .dsn-num-badge {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.25);
}

body.dark-mode .dsn-num-badge.penguji {
    background: linear-gradient(135deg, #6d28d9, #4c1d95);
    box-shadow: 0 1px 4px rgba(109, 40, 217, 0.25);
}

body.dark-mode .dsn-person-name {
    color: #cbd5e1;
}