/* Energia Proves d'Accés - Frontend Styles */

.energia-proves-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.energia-proves-wrapper h3 {
    text-align: justify;
    margin-bottom: 15px;
    color: #333;
}

/* Responsive table wrapper */
.energia-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Table styles */
.energia-proves-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.energia-proves-table thead tr {
    background-color: #f8f8f8;
    border-bottom: 2px solid #ddd;
}

.energia-proves-table th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.energia-proves-table th:first-child {
    text-align: left;
}

.energia-proves-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.energia-proves-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.energia-proves-table tbody tr:hover {
    background-color: #f5f5f5;
}

.energia-proves-table td {
    padding: 10px 15px;
    text-align: center;
    vertical-align: middle;
}

.energia-proves-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Button styles */
.energia-btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: #ff6400;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 50px;
    text-align: center;
}

.energia-btn:hover {
    background-color: #e55a00;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

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

.energia-btn-disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.energia-btn-disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .energia-proves-table {
        min-width: 500px;
    }
    
    .energia-proves-table th,
    .energia-proves-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .energia-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 45px;
    }
}

@media screen and (max-width: 480px) {
    .energia-proves-wrapper {
        margin: 10px -15px;
    }
    
    .energia-proves-table th,
    .energia-proves-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .energia-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 40px;
    }
}

/* Print styles */
@media print {
    .energia-table-responsive {
        overflow: visible;
    }
    
    .energia-proves-table {
        min-width: auto;
        box-shadow: none;
    }
    
    .energia-btn {
        background-color: #333;
        color: #fff;
    }
}
