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

/* Base body styling */
body {
    background: linear-gradient(to right, #f5faff, #f0f8ff);
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Color Palette */
:root {
    --primary: #0056b3;        /* Royal Blue */
    --primary-light: #e8f0fc;
    --secondary: #ffffff;
    --accent: #007bff;
    --text-muted: #6c757d;
    --shadow: rgba(0, 0, 0, 0.08);
    --gradient-blue: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}
/* Typography */
h2 {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Section Title */
.section-title {
    border-left: 5px solid var(--primary);
    padding-left: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Cards */
.card-custom {
    border-radius: 16px;
    background-color: var(--secondary);
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px var(--shadow);
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.15);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-primary {
    background: var(--gradient-blue);
    border: none;
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Icon Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
}

/* Form Focus */
input:focus,
select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
    border-color: var(--primary);
}

/* List Group */
.list-group-item {
    font-size: 0.95rem;
    border: none;
    background-color: #fff;
}

/* Badge */
.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
    border-radius: 0.5rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    h2 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.45rem 0.9rem;
    }

    .btn-icon {
        gap: 6px;
        font-size: 0.9rem;
    }

    .card-custom {
        padding: 16px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .input-group .form-control,
    .input-group .btn {
        width: 100%;
    }
}
/* === Kilauan Efek (Shimmer/Glow) === */

/* Untuk efek shimmer kilauan di latar belakang tombol */
.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmer 2.5s infinite;
    z-index: 2;
}

/* Kilau halus pada kartu */
.card-glow {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.card-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 4s infinite;
    z-index: -1;
}

/* Animasinya */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}
