/* 
========================================
   PURE VANILLA CSS DESIGN SYSTEM
   Modern, Professional & Responsive
========================================
*/

/* 1. CSS VARIABLES & THEME */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #475569;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-radius: 12px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 20px 40px rgba(0,0,0,0.4);
    
    --transition: all 0.3s ease;
}

/* 2. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
p {
    margin-bottom: 1rem;
}

/* 3. LAYOUT UTILITIES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; }
.fs-4 { font-size: 1.5rem; } .fs-5 { font-size: 1.25rem; }
.fw-bold { font-weight: 700; }
.d-none { display: none !important; }
.bg-light { background-color: var(--light) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.border { border: 1px solid var(--border-color); }
.border-white { border-color: white !important; }
.rounded-3 { border-radius: 8px; }
.img-fluid { max-width: 100%; height: auto; }
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    box-sizing: border-box;
}
.row.g-1 { margin-right: -0.25rem; margin-left: -0.25rem; }
.row.g-1 > * { padding-right: 0.25rem; padding-left: 0.25rem; }
.row.g-2 { margin-right: -0.375rem; margin-left: -0.375rem; }
.row.g-2 > * { padding-right: 0.375rem; padding-left: 0.375rem; }
.row.g-3 { margin-right: -0.5rem; margin-left: -0.5rem; }
.row.g-3 > * { padding-right: 0.5rem; padding-left: 0.5rem; }
.row.g-4 { margin-right: -0.75rem; margin-left: -0.75rem; }
.row.g-4 > * { padding-right: 0.75rem; padding-left: 0.75rem; }

/* Grid Columns */
.col-12 { width: 100%; }
.col-6  { width: 50%; }
.col-4  { width: 33.333333%; }
.col-3  { width: 25%; }

@media (min-width: 576px) {
    .col-sm-12 { width: 100%; }
    .col-sm-6  { width: 50%; }
    .col-sm-4  { width: 33.333333%; }
    .col-sm-3  { width: 25%; }
}

@media (min-width: 768px) {
    .col-md-12 { width: 100%; }
    .col-md-8  { width: 66.666667%; }
    .col-md-7  { width: 58.333333%; }
    .col-md-6  { width: 50%; }
    .col-md-5  { width: 41.666667%; }
    .col-md-4  { width: 33.333333%; }
    .col-md-3  { width: 25%; }
}

@media (min-width: 992px) {
    .col-lg-12 { width: 100%; }
    .col-lg-8  { width: 66.666667%; }
    .col-lg-7  { width: 58.333333%; }
    .col-lg-6  { width: 50%; }
    .col-lg-5  { width: 41.666667%; }
    .col-lg-4  { width: 33.333333%; }
    .col-lg-3  { width: 25%; }
}

@media (min-width: 1200px) {
    .col-xl-12 { width: 100%; }
    .col-xl-8  { width: 66.666667%; }
    .col-xl-6  { width: 50%; }
    .col-xl-4  { width: 33.333333%; }
    .col-xl-3  { width: 25%; }
}

/* 4. LOGIN PAGE FULL SCREEN */
.login-body {
    background: linear-gradient(rgba(10, 37, 64, 0.7), rgba(0, 0, 0, 0.8)), url('../images/bg_kampus.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 90%;
    max-width: 380px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255,255,255,0.2);
}
@media (max-width: 576px) {
    .login-card { padding: 1.5rem; }
}

/* 5. COMPONENTS */

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.alert-danger { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background-color: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background-color: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,0.2); }
.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: #dc2626; }
.btn-warning { background-color: var(--warning); color: white; }
.btn-success { background-color: var(--success); color: white; }
.btn-outline-primary { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-outline-danger { border: 1px solid var(--danger); color: var(--danger); background: transparent; }
.btn-outline-danger:hover { background: var(--danger); color: white; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }

/* Form Controls */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}
.form-control, .form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f8fafc;
    transition: var(--transition);
    color: var(--text-main);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body { padding: 1.5rem; }

/* Tables */
.table-responsive { 
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background: white;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0;
}
.table th, .table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    border-left: none !important;
    border-right: none !important;
}
.table th { 
    background-color: #f8fafc; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color) !important;
}
.table tbody tr {
    transition: background-color 0.2s ease;
}
.table tbody tr:hover { 
    background-color: #f1f5f9; 
}
.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.bg-success { background-color: #d1fae5; color: #065f46; }
.bg-warning { background-color: #fef3c7; color: #92400e; }
.bg-info { background-color: #dbeafe; color: #1e40af; }
.bg-danger { background-color: #fee2e2; color: #991b1b; }
.bg-light { background-color: #f1f5f9; color: #475569; }

/* Navigation & Sidebar (Dashboard Layout) - Modern & Professional */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: 270px;
    background: #090d16;
    background: linear-gradient(180deg, #0a0f1d 0%, #0c1324 50%, #080c16 100%);
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    z-index: 1040;
}

/* Custom Sleek Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar,
.sidebar-scroll-area::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track,
.sidebar-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb,
.sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-header {
    padding: 1.35rem 1.25rem 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
}

.sidebar-brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-brand-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
}

.sidebar-brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-brand-meta {
    line-height: 1.2;
}

.sidebar-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-role-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.sidebar-brand-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: 0.1px;
}

/* Sidebar Scrollable Body */
.sidebar-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.75rem;
}

/* Section Headings */
.sidebar-heading {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 0.85rem 0.75rem 0.35rem 0.75rem;
    list-style: none;
}

/* Sidebar Menu List & Items */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
}

.sidebar-menu li a .sidebar-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu li a .sidebar-icon {
    font-size: 1.15rem;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar-menu li a:hover .sidebar-icon {
    color: #60a5fa;
    transform: scale(1.1);
}

/* Active State - Modern Vibrant Accent Pill */
.sidebar-menu li a.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.45);
    border-left: none;
}

.sidebar-menu li a.active .sidebar-icon {
    color: #ffffff !important;
}

/* Sidebar Footer & Logout */
.sidebar-footer {
    padding: 1rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 0.65rem;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.sidebar-user-details {
    line-height: 1.2;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-status {
    font-size: 0.7rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-weight: 500;
}

.sidebar-user-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-main);
}
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.content-body {
    padding: 1.5rem 1.75rem;
    flex: 1;
}
.sidebar-toggle-btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sidebar-toggle-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    .sidebar-toggle-btn {
        display: inline-flex;
    }
    .mobile-top-brand {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    .top-user-info {
        display: none !important;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: -285px;
        width: 275px;
        height: 100vh;
        z-index: 1050;
        box-shadow: 4px 0 30px rgba(0,0,0,0.4);
        transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex !important;
        flex-direction: column;
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        width: 100%;
        min-width: 100%;
    }
    .top-navbar {
        padding: 0.75rem 1rem !important;
    }
    .content-body {
        padding: 1.25rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .content-body {
        padding: 0.85rem 0.65rem !important;
    }
    h3, .h3 {
        font-size: 1.2rem !important;
    }
    h4, .h4 {
        font-size: 1.1rem !important;
    }
    .table th, .table td {
        padding: 0.75rem 0.65rem !important;
        font-size: 0.82rem !important;
    }
    .btn-action-3d {
        padding: 0 10px !important;
        height: 30px !important;
        font-size: 0.76rem !important;
        border-radius: 6px !important;
    }
    .card-header {
        padding: 0.85rem 1rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .card-body {
        padding: 0.85rem 1rem !important;
    }
    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
    }
    .tab-btn {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.82rem !important;
    }
}

/* Modals */
.modal-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-backdrop.show {
    display: flex;
    opacity: 1;
}
.modal-dialog {
    background: white;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .modal-dialog {
        width: 100%;
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }
}
.modal-lg { max-width: 800px; }
.modal-backdrop.show .modal-dialog {
    transform: translateY(0);
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title { margin: 0; font-size: 1.1rem; }
.btn-close {
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    cursor: pointer; color: var(--gray);
}
.modal-body { padding: 1.5rem; overflow-y: auto; overflow-x: hidden; }
.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Step Cards Responsive */
.step-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    height: 100%;
}
.step-img {
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .step-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 0.6rem !important;
    }
    .step-img {
        max-height: 45px;
        width: 45px;
        margin-bottom: 0;
        margin-right: 0.75rem;
    }
    .step-content h6 {
        font-size: 0.85rem;
        margin-bottom: 0.15rem !important;
    }
    .step-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .modal-body .row > .col-md-4 {
        padding: 0.35rem 0.5rem;
    }
    .modal-header {
        padding: 1rem;
    }
    .modal-title {
        font-size: 1rem;
    }
    .modal-body {
        padding: 0.75rem;
    }
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Top Navbar Mobile */
    .mobile-nav-container {
        flex-direction: column !important;
        gap: 0.75rem;
        padding-bottom: 0.5rem !important;
    }
    .mobile-nav-brand span {
        font-size: 1.1rem;
    }
    .mobile-nav-user {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    /* Alerts on Mobile */
    .alert {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    .alert i {
        font-size: 1.25rem !important;
        margin-right: 0.5rem !important;
    }
    .alert-heading {
        font-size: 0.9rem;
    }
    
    /* File Upload Mobile */
    .custom-file-upload {
        padding: 0.75rem !important;
    }
    .helper-text-mobile {
        font-size: 0.75rem;
    }
    
    /* Text truncate utility */
    .text-truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tabs */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Utils */
.mb-0 { margin-bottom: 0 !important; }
.me-1 { margin-right: 0.25rem; }
.d-block { display: block; }

/* 3D Action Buttons */
.btn-action-3d {
    padding: 0 16px;
    height: 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
    outline: none;
    font-family: inherit;
}
.btn-3d-edit {
    background: linear-gradient(145deg, #4e73df, #224abe);
    box-shadow: 0 4px 8px rgba(78, 115, 223, 0.35), inset 0 2px 0 rgba(255,255,255,0.25);
}
.btn-3d-edit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(78, 115, 223, 0.45), inset 0 2px 0 rgba(255,255,255,0.35);
}
.btn-3d-edit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(78, 115, 223, 0.3), inset 0 0px 0 rgba(255,255,255,0);
}

.btn-3d-hapus {
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.35), inset 0 2px 0 rgba(255,255,255,0.25);
}
.btn-3d-hapus:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.45), inset 0 2px 0 rgba(255,255,255,0.35);
}
.btn-3d-hapus:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3), inset 0 0px 0 rgba(255,255,255,0);
}
