/* Custom CSS for DPRD Kabupaten Deiyai Website */

/* Color Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #f7931e;
    --success-color: #48c774;
    --info-color: #3298dc;
    --warning-color: #ffdd57;
    --danger-color: #f14668;
    --light-color: #f5f5f5;
    --dark-color: #363636;
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .navbar {
    background-color: transparent;
}

.header .navbar-item {
    color: white;
}

.header .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.header .navbar-link {
    color: white;
}

.header .navbar-dropdown {
    background-color: white;
}

.header .navbar-dropdown .navbar-item {
    color: var(--dark-color);
}

.header .navbar-dropdown .navbar-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.navbar-burger span {
    background-color: white;
}

/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    background-image: url('../images/hero-img.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero .title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.card .icon-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.button {
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: white;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.footer .social-links a {
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--secondary-color) !important;
}

/* Section Styles */
.section {
    padding: 3rem 1.5rem;
}

.section.is-light {
    background-color: var(--light-color);
}

/* Content Styles */
.content {
    line-height: 1.6;
}

.content p {
    margin-bottom: 1rem;
}

/* Image Styles */
.image img {
    object-fit: cover;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hero .title {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Custom Bulma Overrides */
.is-primary {
    background-color: var(--primary-color) !important;
}

.is-primary.is-hovered:hover {
    background-color: #0052a3 !important;
}

.is-info {
    background-color: var(--info-color) !important;
}

.is-info.is-hovered:hover {
    background-color: #2793da !important;
}

.is-success {
    background-color: var(--success-color) !important;
}

.is-success.is-hovered:hover {
    background-color: #3abb67 !important;
}

.is-warning {
    background-color: var(--warning-color) !important;
    color: rgba(0, 0, 0, 0.7) !important;
}

.is-warning.is-hovered:hover {
    background-color: #ffd83d !important;
}

/* Box Styles */
.box {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Media Styles */
.media {
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.media:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Notification Styles */
.notification {
    border-radius: 8px;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Form Styles */
.field:not(:last-child) {
    margin-bottom: 1.5rem;
}

.control {
    position: relative;
}

/* Tabs Styles */
.tabs {
    border-bottom: 2px solid var(--primary-color);
}

.tabs li.is-active a {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* Breadcrumb Styles */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* Panel Styles */
.panel {
    border-radius: 8px;
    overflow: hidden;
}

.panel-heading {
    background-color: var(--primary-color);
    color: white;
}

.panel-block:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Tag Styles */
.tag {
    border-radius: 4px;
}

/* Pagination Styles */
.pagination-link {
    border-radius: 4px;
}

.pagination-link.is-current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown-content {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal-card {
    border-radius: 8px;
    overflow: hidden;
}

/* Progress Styles */
.progress {
    border-radius: 4px;
}

/* Message Styles */
.message {
    border-radius: 8px;
}

.message-header {
    border-radius: 8px 8px 0 0;
}

/* Custom Utility Classes */
.has-text-primary {
    color: var(--primary-color) !important;
}

.has-background-primary {
    background-color: var(--primary-color) !important;
}

.has-text-secondary {
    color: var(--secondary-color) !important;
}

.has-background-secondary {
    background-color: var(--secondary-color) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Print Styles */
@media print {
    .navbar, .footer {
        display: none;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .button {
        display: none;
    }
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
}

/* Enhanced Card Hover Effects */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button Styles */
.button {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 102, 204, 0.95);
}

/* Enhanced Footer */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}

/* Enhanced Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
}

.hero .title {
    animation: pulse 2s infinite;
}

/* Enhanced Form Styles */
.input, .textarea {
    border: 2px solid #e1e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 12px 16px;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
    outline: none;
}

/* Enhanced Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #004080);
}

/* Enhanced Modal Styles */
.modal-card {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-card-head {
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, var(--primary-color), #004080);
}

/* Enhanced Tag Styles */
.tag {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Notification Styles */
.notification {
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Breadcrumb Styles */
.breadcrumb {
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Tab Styles */
.tabs {
    border-bottom: 3px solid var(--primary-color);
}

.tabs li.is-active a {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Enhanced Dropdown Styles */
.dropdown-content {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: none;
    margin-top: 8px;
}

/* Enhanced Progress Styles */
.progress {
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.progress::-webkit-progress-bar {
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Enhanced Panel Styles */
.panel {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel-heading {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    border-radius: 8px 8px 0 0;
}

/* Enhanced Message Styles */
.message {
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Loading Styles */
.loading {
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

/* Enhanced Social Links */
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Enhanced Search Styles */
.search-section {
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Enhanced Statistics Cards */
.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

/* Enhanced Calendar Styles */
.calendar-day {
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.calendar-day.has-event {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    color: white;
    font-weight: bold;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--warning-color), #e6a000);
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Enhanced Filter Buttons */
.filter-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s;
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button.is-active {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    color: white;
    transform: scale(1.05);
}

/* Enhanced Document List */
.document-item {
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.document-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.document-item:hover::before {
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
}

/* Enhanced Commission Cards */
.commission-card {
    position: relative;
    overflow: hidden;
}

.commission-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

/* Enhanced Member Cards */
.member-card {
    position: relative;
    overflow: hidden;
}

.member-card:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
}

/* Enhanced Gallery */
.gallery-image {
    transition: all 0.5s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Enhanced Contact Form */
.form-section {
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Publication Cards */
.publication-card {
    position: relative;
    overflow: hidden;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, transparent 60%);
    transition: all 0.3s ease;
}

.publication-card:hover::before {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, transparent 60%);
}

/* Enhanced Agenda Cards */
.agenda-card {
    position: relative;
    overflow: hidden;
}

.agenda-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.agenda-card:hover::after {
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}