/* Custom styles for Sistem Rekod Khairat */

:root {
    --primary-color: #2e7d32; /* Hijau gelap */
    --secondary-color: #81c784; /* Hijau sederhana */
    --success-color: #4caf50; /* Hijau */
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #66bb6a; /* Hijau muda */
    --light-color: #f1f8e9; /* Hijau sangat muda */
    --dark-color: #1b5e20; /* Hijau sangat gelap */
    --accent-color: #8bc34a; /* Hijau kekuningan */
}

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.5s ease;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color) !important;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.card-header.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: #212529 !important;
}

.card-header.bg-info {
    background-color: var(--info-color) !important;
    color: white !important;
}

.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
}

.jumbotron {
    background: linear-gradient(135deg, var(--light-color) 0%, #e8f5e9 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    animation: fadeIn 1s ease-in-out;
}

/* Animasi untuk elemen UI */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-in-out;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-in-out;
}

/* Tambahan untuk statistik */
.stat-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    background-color: var(--light-color);
}

/* Tambahan untuk list group */
.list-group-item {
    transition: all 0.3s ease;
    border-left: 0px solid transparent;
}

.list-group-item:hover {
    border-left: 4px solid var(--secondary-color);
    background-color: var(--light-color);
}

/* Print styles tetap sama */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Tambahan untuk reka letak profesional */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.counter-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.feature-list li:last-child {
    border-bottom: none;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer {
    background-color: #212529;
}

.footer a:hover {
    color: #ffffff !important;
}

.nav-link {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
}
.action-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.action-btn:hover::before {
    width: 200%;
    height: 200%;
}