/* Custom CSS untuk Aplikasi Pengecekan Data Siswa */

:root {
    --primary-blue: #0d6efd;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-purple: #6366f1;
    --success-green: #10b981;
    --bg-gradient: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
}

/* Font Family */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
}

/* Custom Primary Colors */
.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%) !important;
}

.bg-primary-dark {
    background: var(--primary-dark) !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, #8b5cf6 100%) !important;
}

/* Custom Card Styles */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
}

/* Search Icon Container */
.search-icon-container {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    font-size: 3rem;
    color: var(--primary-light);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 250px);
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: scale(1.02);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* Success Background */
.bg-success-light {
    background-color: #f0fdf4 !important;
}

.border-success-subtle {
    border-color: #bbf7d0 !important;
}

.text-success-dark {
    color: #166534 !important;
}

/* Icon Colors */
.text-purple {
    color: #8b5cf6 !important;
}

.text-indigo {
    color: #6366f1 !important;
}

.text-orange {
    color: #f59e0b !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Footer */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Toast Notification */
.toast {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toast-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }

    .search-icon-container {
        width: 80px;
        height: 80px;
    }

    .search-icon {
        font-size: 2rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .me-2,
    .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Smooth Animations */
* {
    transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}