/* 
   Style Kustom Sistem Pendataan Siswa (Modern, Dominan Putih, Aksen Biru)
   Font: Inter
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --light-blue: #eff6ff;
    --accent-blue: #3b82f6;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility classes */
.bg-gradient-light-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 60%, #e0effe 100%);
    border: 1px solid rgba(37, 99, 235, 0.08) !important;
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-dark-custom {
    color: var(--text-dark) !important;
}

/* Card Styling */
.card-custom {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.card-header-custom {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Button Customization */
.btn-primary-custom {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-light-custom {
    background-color: var(--light-blue);
    border-color: transparent;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light-custom:hover {
    background-color: #dbeafe;
    color: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* Form Controls */
.form-control, .form-select {
    border-color: #cbd5e1;
    color: var(--text-secondary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
    color: var(--text-dark);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Login Page Spec & Modern Split Aesthetics */
.login-split-wrapper {
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-light);
}

.login-hero-side {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.login-hero-side::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-hero-side::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.animated-illustration-box {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    animation: floatAnimation 4s ease-in-out infinite;
}

.animated-illustration-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.floating-badge {
    position: absolute;
    top: 20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatBadge1 3.5s ease-in-out infinite;
}

.floating-badge-2 {
    position: absolute;
    bottom: 25px;
    right: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatBadge2 4.2s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes floatBadge1 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatBadge2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(37, 99, 235, 0.04);
    background-color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
    box-shadow: 0 25px 30px -5px rgba(37, 99, 235, 0.12), 0 10px 12px -5px rgba(37, 99, 235, 0.06);
}

.input-group-custom {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group-custom .input-group-text {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.input-group-custom .form-control {
    border-color: #cbd5e1;
}

.input-group-custom:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

.input-group-custom:focus-within .input-group-text,
.input-group-custom:focus-within .form-control,
.input-group-custom:focus-within .btn {
    border-color: var(--accent-blue) !important;
}

/* Dashboard Nav & Layout */
.navbar-custom {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table Styling */
.table-responsive-custom {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-custom {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background-color: #f8fafc;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 1.1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.table-custom td {
    padding: 1.15rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-custom tr {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-custom tbody tr td:first-child {
    border-left: 3px solid transparent;
}

.table-custom tbody tr:hover td {
    background-color: var(--light-blue);
    color: var(--text-dark);
}

.table-custom tbody tr:hover td:first-child {
    border-left: 3px solid var(--primary-blue);
}

/* Stats Counter Widget */
.stat-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.08), 0 4px 6px -4px rgba(37, 99, 235, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-blue {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.stat-icon-green {
    background-color: #f0fdf4;
    color: var(--success-color);
}

.stat-icon-red {
    background-color: #fef2f2;
    color: var(--danger-color);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badge styling */
.badge-custom-disabilitas-ya {
    background-color: #fef2f2;
    color: var(--danger-color);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-custom-disabilitas-tidak {
    background-color: #f0fdf4;
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Pagination Custom */
.pagination-custom .page-item .page-link {
    color: var(--primary-blue);
    border-color: var(--border-color);
    transition: all 0.2s ease;
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.pagination-custom .page-item .page-link:hover {
    background-color: var(--light-blue);
}

/* Custom Footer */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
