/* ========================================
   MODERN ENHANCEMENTS & PROFESSIONAL STYLING
   Advanced UI Components for Government Website
   ======================================== */

/* ========================================
   ENHANCED BORDERS & FRAMES
   ======================================== */
.professional-border {
    border: 3px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #FF6B6B, #C77DFF, #FFD166) border-box;
    border-radius: 20px;
}

.gradient-border {
    position: relative;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF, #FFD166);
}

.gradient-border-content {
    background: white;
    border-radius: 17px;
    padding: 2rem;
}

.decorative-frame {
    position: relative;
    padding: 3rem;
    border: 4px solid rgba(255, 107, 107, 0.2);
    border-radius: 24px;
}

.decorative-frame::before,
.decorative-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #FF6B6B;
}

.decorative-frame::before {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
    border-radius: 24px 0 0 0;
}

.decorative-frame::after {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 24px 0;
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.15);
}

.glass-dark {
    background: rgba(43, 45, 66, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.frosted-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(255, 107, 107, 0.2);
}

/* ========================================
   GRADIENT BACKGROUNDS
   ======================================== */
.bg-gradient-coral {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB088 100%);
}

.bg-gradient-lavender {
    background: linear-gradient(135deg, #C77DFF 0%, #9D4EDD 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #FFD166 0%, #FFAB73 100%);
}

.bg-gradient-multi {
    background: linear-gradient(135deg, #FF6B6B 0%, #C77DFF 50%, #FFD166 100%);
}

.bg-gradient-radial {
    background: radial-gradient(circle at top right, #FF6B6B 0%, #C77DFF 50%, #FFD166 100%);
}

.bg-gradient-mesh {
    background:
        radial-gradient(at 20% 30%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(at 80% 70%, rgba(199, 125, 255, 0.3) 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 209, 102, 0.2) 0%, transparent 50%);
}

/* ========================================
   ADVANCED SHADOWS
   ======================================== */
.shadow-soft {
    box-shadow:
        0 2px 8px rgba(255, 107, 107, 0.08),
        0 4px 16px rgba(199, 125, 255, 0.06);
}

.shadow-medium {
    box-shadow:
        0 4px 16px rgba(255, 107, 107, 0.12),
        0 8px 32px rgba(199, 125, 255, 0.1);
}

.shadow-strong {
    box-shadow:
        0 8px 32px rgba(255, 107, 107, 0.18),
        0 16px 64px rgba(199, 125, 255, 0.15);
}

.shadow-glow {
    box-shadow:
        0 0 20px rgba(255, 107, 107, 0.4),
        0 0 40px rgba(199, 125, 255, 0.3),
        0 0 60px rgba(255, 209, 102, 0.2);
}

.shadow-inset {
    box-shadow:
        inset 0 2px 8px rgba(255, 107, 107, 0.1),
        inset 0 4px 16px rgba(199, 125, 255, 0.08);
}

/* ========================================
   PROFESSIONAL CARDS
   ======================================== */
.premium-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow:
        0 4px 16px rgba(255, 107, 107, 0.12),
        0 8px 32px rgba(199, 125, 255, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.1);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF6B6B, #C77DFF, #FFD166);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.premium-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 12px 48px rgba(255, 107, 107, 0.2),
        0 24px 96px rgba(199, 125, 255, 0.15);
    border-color: #FF6B6B;
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.elevated-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 10px 40px rgba(255, 107, 107, 0.15),
        0 20px 80px rgba(199, 125, 255, 0.12);
    transform: translateZ(0);
    transition: all 0.4s ease;
}

.elevated-card:hover {
    transform: translateY(-12px) translateZ(0);
    box-shadow:
        0 15px 60px rgba(255, 107, 107, 0.22),
        0 30px 120px rgba(199, 125, 255, 0.18);
}

/* ========================================
   ICON CONTAINERS
   ======================================== */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    transition: all 0.4s ease;
}

.icon-box:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 36px rgba(199, 125, 255, 0.4);
}

.icon-square {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFD166, #FFAB73);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.3);
    transition: all 0.4s ease;
}

.icon-square:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 32px rgba(255, 171, 115, 0.4);
}

/* ========================================
   BADGES & LABELS
   ======================================== */
.badge-coral {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #FF6B6B, #FFB088);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.badge-lavender {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #C77DFF, #9D4EDD);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(199, 125, 255, 0.3);
}

.badge-outline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.badge-outline:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* ========================================
   DIVIDERS & SEPARATORS
   ======================================== */
.divider-gradient {
    height: 4px;
    background: linear-gradient(90deg, transparent, #FF6B6B, #C77DFF, #FFD166, transparent);
    border: none;
    margin: 3rem 0;
}

.divider-dotted {
    height: 2px;
    background-image: linear-gradient(to right, #FF6B6B 50%, transparent 50%);
    background-size: 20px 2px;
    border: none;
    margin: 2rem 0;
}

.section-divider {
    position: relative;
    text-align: center;
    margin: 4rem 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B6B, #C77DFF, #FFD166, transparent);
}

.section-divider span {
    position: relative;
    background: white;
    padding: 0 2rem;
    font-weight: 700;
    color: #FF6B6B;
    z-index: 1;
}

/* ========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */
.btn-gradient {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 36px rgba(199, 125, 255, 0.4);
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-outline-gradient {
    padding: 1rem 2.5rem;
    background: transparent;
    color: #FF6B6B;
    border: 3px solid #FF6B6B;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-outline-gradient:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.btn-outline-gradient:hover::before {
    opacity: 1;
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #C77DFF, #FFD166);
    border-radius: 50px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s linear infinite;
}

/* ========================================
   TOOLTIPS
   ======================================== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF);
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 6px solid transparent;
    border-top-color: #FF6B6B;
    opacity: 0;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ========================================
   ACCORDION STYLES
   ======================================== */
.accordion-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 107, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #FF6B6B;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.15);
}

.accordion-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #FFF5ED 0%, #F8F4FF 100%);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2B2D42;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #FFE5D9 0%, #F0E6FF 100%);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 2rem;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 1.5rem 2rem;
}

/* ========================================
   TABS
   ======================================== */
.tab-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.12);
}

.tab-header {
    display: flex;
    background: linear-gradient(135deg, #FFF5ED 0%, #F8F4FF 100%);
    border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.tab-button {
    flex: 1;
    padding: 1.2rem 2rem;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: #6C757D;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #C77DFF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button:hover {
    color: #FF6B6B;
}

.tab-button.active {
    color: #FF6B6B;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding: 2rem;
}

/* ========================================
   STATISTICS DISPLAY
   ======================================== */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.12);
    border: 2px solid rgba(255, 107, 107, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #C77DFF, #FFD166);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px rgba(199, 125, 255, 0.2);
    border-color: #FF6B6B;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF, #FFD166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6C757D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF6B6B, #C77DFF, #FFD166);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.12);
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B6B, #C77DFF);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {

    .premium-card,
    .elevated-card {
        padding: 2rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .icon-square {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-end !important;
    }

    .timeline-content {
        width: calc(100% - 60px);
    }

    .timeline-dot {
        left: 20px;
    }
}