:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --border-radius: 0.375rem;
    --transition: all 0.3s ease;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-search .form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.navbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search .form-control:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-search .input-group-text {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.library-section {
    margin-top: 25vh;
}

.library-image {
    filter: brightness(0.8);
    object-fit: cover;
}

.library-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
}


.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* interaksi */
.card-hover {
    transition: var(--transition);
}

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

/* footer */
.footer-social-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Table animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-row {
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

/* Table enhancements */
.table thead th {
    position: sticky;
    top: 0;
    background-color: var(--bs-primary);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.875rem;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Button enhancements */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* Loading spinner custom color */
.spinner-border.text-primary {
    width: 3rem;
    height: 3rem;
}

/* Input group styling */
.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-radius: 0.375rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table {
        font-size: 0.875rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25em 0.5em;
    }
}

/* Navbar enhancements */
.navbar-brand {
    font-size: 1.25rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: white;
}

/* Card enhancements for mahasiswa page */
.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
}

.card-body .form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Input enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Table striped effect */
.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Icon styling in table headers */
.table thead th i {
    opacity: 0.8;
}

/* Badge improvements */
.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-success {
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.badge.bg-secondary {
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Empty state styling */
.table tbody .bi-inbox,
.table tbody .bi-exclamation-triangle-fill {
    opacity: 0.5;
}

/* Smooth scrolling for table container */
.table-responsive {
    scroll-behavior: smooth;
}

/* Page header styling */
.bg-light.border-bottom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive improvements for mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.05);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    .navbar-search {
        margin: 1rem 0;
    }
}

/* Tablet and small desktop */
@media (min-width: 768px) and (max-width: 991.98px) {
    .card-body .row {
        align-items: center;
    }
}

/* Mobile specific */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table thead th {
        padding: 0.5rem 0.25rem;
    }

    .table tbody td {
        padding: 0.5rem 0.25rem;
    }

    .badge {
        font-size: 0.7rem;
    }

    h1.h4 {
        font-size: 1.2rem;
    }
}

@media print {

    .navbar,
    .footer {
        display: none;
    }

    .library-section {
        margin-top: 0;
    }
}