/* Custom styles for Electricity Bill Checker plugin */

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Container overrides for better spacing and alignment */
.ebc-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

/* Form input and button enhancements */
.ebc-container input[type="text"] {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ebc-container input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.ebc-container button {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ebc-container button:hover {
    transform: translateY(-1px);
}

/* Section styling for consistency with example */
.ebc-section {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Grid layout for responsive info boxes */
.ebc-grid {
    display: grid;
    gap: 1.5rem;
}

/* Table styling */
.ebc-table-wrapper {
    overflow-x: auto;
}

.ebc-table {
    width: 100%;
    border-collapse: collapse;
}

.ebc-table th,
.ebc-table td {
    padding: 0.75rem 1.5rem;
    text-align: left;
}

.ebc-table th {
    background-color: #f3f4f6;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #374151;
}

.ebc-table td {
    color: #6b7280;
}

.ebc-table tr {
    transition: background-color 0.2s ease;
}

.ebc-table tr:hover {
    background-color: #f9fafb;
}

/* Error message styling */
.ebc-error {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* Duplicate bill button */
.ebc-duplicate-bill a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #22c55e;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ebc-duplicate-bill a:hover {
    background-color: #16a34a;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ebc-container {
        padding: 0.5rem;
    }

    .ebc-grid {
        grid-template-columns: 1fr;
    }

    .ebc-table th,
    .ebc-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 640px) {
    .ebc-container input[type="text"],
    .ebc-container button {
        width: 100%;
    }

    .ebc-container .flex {
        flex-direction: column;
    }
}