/* Portal Sekolah - Modern Dashboard Styles */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #f3f4f6;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f3f4f6;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}



.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* --- New Collapsible Sidebar --- */
/* BACKUP STYLE SIDEBAR (ORIGINAL - PUTIH):
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
*/

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    box-shadow: 4px 0 24px rgba(30, 64, 175, 0.3) !important;
    transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar .sidebar-header .logo-text {
    opacity: 0;
    visibility: hidden;
}

body.sidebar-collapsed .sidebar .components a span,
body.sidebar-collapsed .sidebar .components a .bi-chevron-down {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

body.sidebar-collapsed .sidebar .components a {
    justify-content: center;
}

body.sidebar-collapsed .sidebar .components a i {
    margin-right: 0;
}

/* BACKUP STYLE SIDEBAR HEADER (ORIGINAL):
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
*/

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* BACKUP STYLE LOGO (ORIGINAL):
.sidebar-header .logo-image {
    max-height: 32px;
    width: auto;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}
*/

.sidebar-header .logo-text-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

body.sidebar-collapsed .sidebar-header .logo-text {
    opacity: 0;
    visibility: hidden;
}

.sidebar .components {
    padding: 0.75rem;
    padding-bottom: 120px; /* Space for AI promo section */
    list-style: none;
    flex: 1;
    margin-bottom: 0.5rem; /* mb-2 equivalent */
}

.sidebar .components li {
    margin-bottom: 0.2rem;
}

/* BACKUP STYLE SIDEBAR LINKS (ORIGINAL):
.sidebar .components a {
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar .components a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.sidebar .components a.active {
    color: #fff;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
*/

.sidebar .components a {
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar .components a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(4px);
}

.sidebar .components a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.sidebar .components a i {
    margin-right: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    transition: margin var(--transition-speed) ease;
}

.sidebar .components a span {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Sidebar AI Promo Section */
.sidebar-ai-promo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    padding: 0.75rem;
    z-index: 1031;
    transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
}

body.sidebar-collapsed .sidebar-ai-promo {
    width: var(--sidebar-collapsed-width);
    padding: 0.5rem;
}

.ai-promo-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.sidebar-collapsed .sidebar-ai-promo .ai-promo-card {
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
}

.ai-promo-title {
    font-size: 12px;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
    font-weight: 600;
    text-align: center;
}

.ai-promo-subtitle {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

body.sidebar-collapsed .sidebar-ai-promo .ai-promo-title,
body.sidebar-collapsed .sidebar-ai-promo .ai-promo-subtitle,
body.sidebar-collapsed .sidebar-ai-promo .ai-promo-button span {
    opacity: 0;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
    display: none;
}

.ai-promo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
}

.ai-promo-button:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.ai-promo-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

.ai-promo-button i {
    font-size: 14px;
    flex-shrink: 0;
}

body.sidebar-collapsed .sidebar-ai-promo .ai-promo-button {
    padding: 0.75rem;
    width: 100%;
    justify-content: center;
    min-width: auto;
}

body.sidebar-collapsed .sidebar-ai-promo .ai-promo-button i {
    margin: 0;
}

/* Floating Chat Ilmuna AI Button - Hidden on desktop by default */
.floating-ai-button {
    display: none !important;
}

/* --- Content & Header --- */
.content {
    width: 100%;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
    transition: margin-left var(--transition-speed) ease;
    background-color: #f3f4f6;
}

body.sidebar-collapsed .content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.dashboard-top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin-left: var(--sidebar-width);
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: margin-left var(--transition-speed) ease;
}

#sidebar-toggle {
    font-size: 1.25rem;
}

.search-input {
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: #f8fafc;
    width: 250px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    font-size: 1.1rem;
}
.icon-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}
.icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 7px;
    font-size: 9px;
    color: #fff;
    font-weight: 600;
    padding: 0 3px;
    border: 1.5px solid #fff;
}

.dashboard-top-header .user-profile-section .dropdown {
    position: relative;
}

.dashboard-top-header .user-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 10px;
    background: #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.dashboard-top-header .user-profile-info::after {
    display: none !important;
}

.dashboard-top-header .user-profile-info:hover {
    background: #e5e7eb;
}

.dashboard-top-header .user-profile-info .dropdown-arrow {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.2s ease;
    margin-left: 2px;
    flex-shrink: 0;
    display: block;
}

.dashboard-top-header .user-profile-info[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-profile-dropdown {
    min-width: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    margin-top: 6px !important;
}

.user-profile-dropdown .dropdown-item {
    padding: 8px 14px;
    font-size: 13px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.user-profile-dropdown .dropdown-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.user-profile-dropdown .dropdown-item:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

.user-profile-dropdown .dropdown-item.text-danger {
    color: #ef4444;
}

.user-profile-dropdown .dropdown-item.text-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.user-profile-dropdown .dropdown-divider {
    margin: 6px 0;
    border-color: #e5e7eb;
}

.dashboard-top-header .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.dashboard-top-header .user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.dashboard-top-header .user-details .user-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.dashboard-top-header .user-details .user-role {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

/* Main Content Container */
.container-fluid {
    padding: 24px;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    min-height: calc(100vh - var(--header-height));
    position: relative;
}

.container-fluid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container-fluid > * {
    position: relative;
    z-index: 1;
}

/* Statistics Cards - Horizontal Layout */
.statistics-row {
    margin-bottom: 32px;
    position: relative;
}

.statistics-row::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.06);
    border-color: #3b82f6;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05) rotate(5deg);
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stat-card .stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: none;
}

/* Modern Stat Cards - Matching Dashboard Design */
.stat-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.stat-card-modern .stat-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}

.stat-card-modern .stat-value-modern {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-card-modern .stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-modern .stat-change i {
    font-size: 10px;
}

.stat-card-modern .stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.stat-card-modern .stat-bar-fill {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.3;
}

.stat-card-modern .stat-bar-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
}

/* Color variants */
.stat-card-blue .stat-bar-line {
    background-color: #3b82f6;
}

.stat-card-blue .stat-bar-fill {
    background-color: #3b82f6;
}

.stat-card-green .stat-bar-line {
    background-color: #10b981;
}

.stat-card-green .stat-bar-fill {
    background-color: #10b981;
}

.stat-card-orange .stat-bar-line {
    background-color: #f97316;
}

.stat-card-orange .stat-bar-fill {
    background-color: #f97316;
}

.stat-card-purple .stat-bar-line {
    background-color: #8b5cf6;
}

.stat-card-purple .stat-bar-fill {
    background-color: #8b5cf6;
}

/* Dashboard Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #3b82f6 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.dashboard-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.dashboard-card .card-header { 
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.dashboard-card .card-header .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.dashboard-card .card-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dashboard-card .card-header h5 i {
    font-size: 18px;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-header h5 i {
    transform: scale(1.1) rotate(10deg);
    color: #2563eb;
}

.dashboard-card .card-header a {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
}

.dashboard-card .card-header a:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(2px);
}

.dashboard-card .card-body {
    padding: 20px;
    background: #ffffff;
    position: relative;
    z-index: 1;
    color: #1e293b;
}

/* Tables */
.table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}

.table thead {
    background: #f8fafc;
}

.table thead th {
    border: none;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: #64748b;
    padding: 16px;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-card .table thead {
    background: #f8fafc;
}

.dashboard-card .table thead th {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 18px 16px;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-card .table tbody td {
    padding: 18px 16px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dashboard-card .table tbody tr {
    transition: all 0.2s ease;
}

.dashboard-card .table tbody tr:hover {
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: #fff !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e293b;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    background: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.empty-state > * {
    position: relative;
    z-index: 1;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
    color: #3b82f6;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state h5 {
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 18px;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}

/* DataTables */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-left: 8px;
    background: #ffffff;
    color: #1e293b;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #9ca3af;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0 8px;
    background: #ffffff;
    color: #1e293b;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3b82f6;
    color: #fff !important;
    border-color: #3b82f6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

.dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: 13px;
}

/* Modal */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Prevent tooltip on hidden elements */
form[style*="display: none"],
form.hidden,
.d-none form {
    pointer-events: none;
}

form[style*="display: none"] input,
form[style*="display: none"] select,
form[style*="display: none"] textarea,
form.hidden input,
form.hidden select,
form.hidden textarea,
.d-none form input,
.d-none form select,
.d-none form textarea {
    pointer-events: none;
}

.modal {
    z-index: 1060 !important; /* Lebih tinggi dari watermark */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Modal yang tersembunyi tidak boleh menerima click events */
.modal:not(.show) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.modal.show {
    display: block !important;
    pointer-events: none !important; /* Modal container tidak menerima klik, hanya backdrop */
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1065 !important; /* Lebih tinggi dari backdrop dan watermark */
}

/* Modal dialog dan content harus bisa menerima klik */
.modal.show .modal-dialog {
    pointer-events: auto !important;
    z-index: 1070 !important; /* Jauh lebih tinggi dari backdrop */
    position: relative;
}

.modal.show .modal-content {
    pointer-events: auto !important;
    z-index: 1071 !important; /* Paling tinggi */
    position: relative;
}

.modal-backdrop {
    z-index: 1055 !important; /* Di bawah modal tapi di atas watermark */
    background-color: rgba(0, 0, 0, 0.5) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Backdrop yang tersembunyi tidak boleh menerima click events */
.modal-backdrop:not(.show) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.modal-backdrop.show {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1055 !important; /* Di bawah modal tapi di atas watermark */
}

.modal-dialog {
    z-index: 1070 !important; /* Jauh lebih tinggi dari backdrop */
    margin: 1.75rem auto !important;
    position: relative !important;
    pointer-events: auto !important;
}

.modal-dialog.modal-lg {
    max-width: 800px !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
    pointer-events: auto !important;
    z-index: 1070 !important;
    position: relative;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    position: relative;
    z-index: 1071 !important; /* Paling tinggi, di atas semua */
    pointer-events: auto !important;
}

/* Pastikan semua elemen di dalam modal bisa diklik */
.modal-content * {
    pointer-events: auto !important;
}

.modal-content input,
.modal-content select,
.modal-content textarea,
.modal-content button,
.modal-content a,
.modal-content .btn,
.modal-content label,
.modal-content .form-label,
.modal-content .form-control,
.modal-content .form-select {
    pointer-events: auto !important;
    z-index: 1072 !important; /* Paling tinggi untuk elemen interaktif */
    position: relative;
}

.modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 1072 !important;
    pointer-events: auto !important;
}

.modal-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
}

.modal-body {
    padding: 24px;
    color: #1e293b;
    position: relative;
    z-index: 1072 !important;
    pointer-events: auto !important;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    position: relative;
    z-index: 1072 !important;
    pointer-events: auto !important;
}

/* Scrollbar */
/* BACKUP STYLE SIDEBAR SCROLLBAR (ORIGINAL):
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
*/

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar .components a i {
    color: inherit !important;
}

/* Watermark */
.watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Lebih rendah dari modal */
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

/* Watermark tidak boleh menutupi modal */
body.modal-open .watermark {
    z-index: 1040; /* Lebih rendah dari modal (1055) */
    pointer-events: none; /* Tidak bisa diklik saat modal terbuka */
}

.watermark:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.watermark a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.watermark a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    body {
        padding-left: var(--sidebar-collapsed-width);
    }
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
        left: var(--sidebar-collapsed-width);
    }
    body.sidebar-visible .sidebar {
        transform: translateX(0);
        left: 0;
    }
    .content, .dashboard-top-header {
        margin-left: 0;
    }
}

/* Mobile view */
@media (max-width: 768px) {
    body,
    body.sidebar-collapsed {
        padding-left: 0;
        padding-bottom: 70px; /* Space for bottom navigation */
    }

    /* Hide sidebar header on mobile */
    .sidebar-header {
        display: none !important;
    }

    /* Hide sidebar AI promo card on mobile */
    .sidebar-ai-promo {
        display: none !important;
    }

    /* Transform sidebar to bottom navigation */
    .sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 70px !important;
        transform: translateX(0) !important;
        background: #ffffff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        border-top: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        z-index: 1040 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    body.sidebar-visible .sidebar {
        transform: translateX(0) !important;
    }

    /* Transform components to horizontal navigation */
    .sidebar .components {
        display: flex !important;
        flex-direction: row !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE and Edge */
    }

    .sidebar .components::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
    }

    .sidebar .components li {
        margin: 0 !important;
        flex-shrink: 0 !important;
        min-width: 70px !important;
    }

    /* Style menu items for bottom nav */
    .sidebar .components > li > a {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        height: 70px !important;
        color: #64748b !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        position: relative !important;
        min-width: 70px !important;
        transition: all 0.2s ease !important;
    }

    .sidebar .components > li > a:hover {
        color: #1e3a8a !important;
        background: #f8fafc !important;
        transform: none !important;
    }

    .sidebar .components > li > a.active {
        color: #1e3a8a !important;
        background: transparent !important;
        box-shadow: none !important;
        font-weight: 600 !important;
    }

    .sidebar .components > li > a.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 3px !important;
        background: #1e3a8a !important;
        border-radius: 3px 3px 0 0 !important;
    }

    /* Hide dropdown menus on mobile bottom nav */
    .sidebar .components li .collapse,
    .sidebar .components li .dropdown-toggle::after {
        display: none !important;
    }

    /* Floating Chat Ilmuna AI Button for Mobile */
    .floating-ai-button {
        display: flex !important;
        position: fixed !important;
        bottom: 85px !important; /* Above bottom nav (70px) + margin */
        right: 12px !important;
        padding: 8px 14px !important;
        height: auto !important;
        min-height: 36px !important;
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
        color: #ffffff !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15) !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        z-index: 1041 !important; /* Above bottom nav (1040) */
        transition: all 0.3s ease !important;
        border: 2px solid #ffffff !important;
        cursor: pointer !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    .floating-ai-button:hover,
    .floating-ai-button:active {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 10px rgba(30, 64, 175, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    }

    .floating-ai-button:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    }

    .floating-ai-button i {
        display: none !important;
    }

    .floating-ai-button span {
        display: inline-block !important;
    }

    /* Style icons */
    .sidebar .components > li > a i {
        margin: 0 0 4px 0 !important;
        font-size: 20px !important;
        width: auto !important;
        display: block !important;
    }

    /* Style text/labels */
    .sidebar .components > li > a span {
        font-size: 11px !important;
        font-weight: 500 !important;
        text-align: center !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        display: block !important;
    }

    .content, .dashboard-top-header {
        margin-left: 0 !important;
    }

    .dashboard-top-header {
        padding: 0 1rem;
    }

    .container-fluid {
        padding: 16px;
        padding-bottom: 86px; /* Extra padding for bottom nav */
    }
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sticky Table Header */
.table-sticky-header thead th {
    position: sticky;
    top: 0;
    background-color: #f8fafc;
    z-index: 10;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard-card, .stat-card {
    animation: fadeIn 0.3s ease;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

/* Lesson Card Styling - Sesuai Gambar */
.lesson-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.lesson-card:hover::before {
    left: 100%;
}

.lesson-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.lesson-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.lesson-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.detail-item i {
    width: 18px;
    text-align: center;
    color: #94a3b8;
}

.detail-item strong {
    color: #1e293b;
    font-weight: 600;
}

.lesson-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Presensi Lesson Item Styling */
.presensi-lesson-item {
    transition: all 0.2s ease;
}

.presensi-lesson-item:hover {
    background: #f8f9fa;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.presensi-lesson-item:last-child {
    border-bottom: none !important;
}

.presensi-form-inline .input-group {
    max-width: 400px;
}

.presensi-form-inline .form-control-sm {
    font-size: 14px;
    padding: 6px 12px;
}

.presensi-form-inline .btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}

/* Card Styles */
/* Page Header */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

/* Removed card::after shimmer effect for cleaner design */

/* Removed hover animations for cleaner, simpler design */

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.card-header .btn,
.card .btn,
.dashboard-card .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer;
}

/* Ensure all interactive elements are clickable */
.btn,
button,
a,
input[type="submit"],
input[type="button"],
select,
textarea {
    pointer-events: auto !important;
}

.card-header h5 {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
    background: #ffffff;
    color: #1e293b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Login Page Styles - Redesigned to Match Image */
body.login-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100vh !important;
    width: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

body.login-page .login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    z-index: 1;
}

body.login-page .login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 650px;
    margin: 0 auto;
}

/* Left Panel - Blue gradient background */
.login-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo-section {
    text-align: center;
    color: #ffffff;
    z-index: 1;
    position: relative;
    width: 100%;
}

.login-logo-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Logo Kementerian Agama - Pentagonal Green */
.logo-kemenag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-kemenag-shape {
    width: 100px;
    height: 100px;
    background: #10b981;
    position: relative;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-kemenag-inner {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.logo-kemenag-inner .bi-book-fill {
    font-size: 32px;
    color: #fbbf24;
    z-index: 2;
}

.logo-kemenag-inner .bi-star-fill {
    font-size: 16px;
    color: #fbbf24;
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 3;
}

.logo-kemenag-text {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Logo Way Kanan - Circular Blue */
.logo-waykanan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-waykanan-shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.logo-waykanan-inner {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.logo-waykanan-inner .bi-shield-fill {
    font-size: 32px;
    color: #ffffff;
    z-index: 2;
}

.logo-waykanan-inner .bi-star-fill {
    font-size: 16px;
    color: #fbbf24;
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 3;
}

.logo-waykanan-text {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.login-system-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-system-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 35px;
    color: #ffffff;
    line-height: 1.2;
}

.login-system-description {
    font-size: 15px;
    line-height: 1.7;
    color: #ffffff;
    max-width: 420px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Right Panel - Transparent with Glass Effect */
.login-right-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.login-form-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-form-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 35px;
    line-height: 1.5;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .input-group {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.login-form .input-group-text {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 14px !important;
    font-size: 18px !important;
    min-width: 48px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.login-form .form-control {
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1) !important;
    flex: 1;
    width: auto;
    min-width: 0;
    color: #ffffff !important;
}

.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.login-form .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.btn-login {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    transition: all 0.3s ease;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    color: #ffffff !important;
}

.login-form-wrapper .alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 14px !important;
}

.login-form-wrapper .alert-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.login-form-wrapper .alert-danger i {
    font-size: 18px;
}

.login-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Responsive Login */
@media (max-width: 992px) {
    body.login-page .login-card {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    
    .login-left-panel {
        padding: 40px 30px;
    }
    
    .login-right-panel {
        padding: 40px 30px;
    }
    
    .login-system-title {
        font-size: 28px;
    }
    
    .login-system-subtitle {
        font-size: 22px;
    }
    
    .login-logo-wrapper {
        margin-bottom: 30px;
        gap: 20px;
    }
    
    .logo-kemenag-shape,
    .logo-waykanan-shape {
        width: 80px;
        height: 80px;
    }
    
    .logo-kemenag-inner,
    .logo-waykanan-inner {
        width: 55px;
        height: 55px;
    }
    
    .logo-kemenag-inner .bi-book-fill,
    .logo-waykanan-inner .bi-shield-fill {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    body.login-page .login-card {
        border-radius: 12px;
    }
    
    .login-left-panel {
        padding: 30px 20px;
    }
    
    .login-right-panel {
        padding: 30px 20px;
    }
    
    .login-form-title {
        font-size: 26px;
    }
    
    .login-form-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .login-system-title {
        font-size: 24px;
    }
    
    .login-system-subtitle {
        font-size: 20px;
    }
    
    .login-system-description {
        font-size: 14px;
    }
    
    .logo-kemenag-shape,
    .logo-waykanan-shape {
        width: 70px;
        height: 70px;
    }
    
    .logo-kemenag-inner,
    .logo-waykanan-inner {
        width: 50px;
        height: 50px;
    }
    
    .logo-kemenag-inner .bi-book-fill,
    .logo-waykanan-inner .bi-shield-fill {
        font-size: 22px;
    }
}