/* assets/css/style.css */

/* Reset dan Base Styles */
* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Utility Classes */
.gradient-green {
    background: linear-gradient(135deg, #49AE10 0%, #1E4807 100%);
}

.gradient-light-green {
    background: linear-gradient(135deg, rgba(73, 174, 16, 0.1) 0%, rgba(30, 72, 7, 0.1) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #49AE10 0%, #1E4807 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animasi Fade In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animasi Pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-hover:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Animasi Shimmer */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Animasi untuk card hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #49AE10 0%, #1E4807 100%);
    border-radius: 4px;
}

/* Custom styles for header */
.nav-link {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.dropdown-item:hover {
    background-color: #f0fdf4;
    border-left-color: #16a34a;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    transition: all 0.3s;
}

.mobile-nav-item:hover {
    background-color: #f0fdf4;
    color: #16a34a;
}

.mobile-subnav-item {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.3s;
}

.mobile-subnav-item:hover {
    background-color: #f0fdf4;
    color: #16a34a;
}

/* Group hover item */
.group-hover-item {
    transition: all 0.3s;
}

.group:hover .group-hover-item {
    transform: translateX(4px);
}

/* Active state for navigation */
.active-nav {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Line clamp utilities */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Image hover effects */
.hover-scale {
    transition: transform 0.5s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* Loading animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #49AE10;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(73, 174, 16, 0.3);
    color: #1E4807;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}