/* Custom Styles for ASD PAALGA Portal */

/* Accessibility - Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #198754;
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Timeline styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item:not(:last-child):before {
    content: '';
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: #e9ecef;
}

/* Card styles */
.card {
    transition: all 0.3s ease;
}

/* Map styles */
#map {
    border-radius: 8px;
}

/* Progress bars */
.progress {
    border-radius: 10px;
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        width: 20px;
        height: 20px;
    }

    .timeline-item:not(:last-child):before {
        left: 9px;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Chart type selector buttons */
.chart-type-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.chart-type-btn.active {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.chart-type-btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    opacity: 0.85;
}

/* Google Translate widget */
#google_translate_element select {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

#google_translate_element select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget span {
    display: none !important;
}

.goog-te-banner-frame,
.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Timeline activity image */
.timeline-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
}
