/* Modern Button Styles */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 1rem;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #0a6345 0%, #0d9868 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d9868 0%, #0a6345 100%);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Small Button Variant */
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Large Button Variant */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Outline Button Variants */
.btn-outline-primary {
    background: transparent;
    border: 2px solid #0a6345;
    color: #0a6345;
}

.btn-outline-primary:hover {
    background: #0a6345;
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #0a6345 0%, #0d9868 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d9868 0%, #0a6345 100%);
    color: white;
}

/* Full Width Button */
.btn.w-100 {
    width: 100%;
    justify-content: center;
}

/* Button Group */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

.btn-group .btn {
    border-radius: 8px;
}

/* Chart Filter Buttons */
.consumption-filters {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow: hidden;
}

.consumption-filters .btn {
    background: transparent;
    border: 1px solid #0a6345;
    color: #0a6345;
    transform: none;
    box-shadow: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.consumption-filters .btn:hover {
    background: rgba(10, 99, 69, 0.1);
    transform: none;
    box-shadow: none;
}

.consumption-filters .btn.active {
    background: #0a6345;
    color: white;
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    pointer-events: none;
    transform: none;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid;
    border-radius: 50%;
    border-color: currentColor transparent currentColor transparent;
    animation: button-loading-spinner 0.75s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Container styles to prevent overflow */
.info-card {
    overflow: hidden;
}

.consumption-header {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .consumption-filters {
        width: 100%;
    }
    
    .consumption-filters .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
} 