/**
 * Frontend Styles for Elitech Price List Plugin
 */

/* Price Filter Buttons */
.repair-price-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.price-filter-btn {
    padding: 10px 20px;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-filter-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.price-filter-btn.active {
    background-color: #3c86c5;
    border-color: #3c86c5;
    color: white;
}

/* Price List Wrapper */
.repair-price-list-wrapper {
    display: grid;
    gap: 30px;
}

/* Price Table */
.price-table {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.price-table:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.price-table-header {
    background-color: #3c86c5;
    color: white;
    padding: 20px 30px;
}

.price-table-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.price-table-body {
    padding: 0;
}

/* Price Item */
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:hover {
    background-color: #f9fafb;
}

.price-item-info {
    flex: 1;
    padding-right: 20px;
}

.price-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.price-item-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 5px;
    line-height: 1.5;
}

.price-item-duration {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 5px;
}

.price-item-duration i {
    margin-right: 5px;
}

.price-item-cost {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3c86c5;
    white-space: nowrap;
}

/* Device Grid */
.repair-device-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.repair-device-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.repair-device-card .device-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.repair-device-card .device-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.repair-device-card .device-content {
    padding: 20px;
}

.repair-device-card h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.repair-device-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .repair-device-grid {
        grid-template-columns: 1fr !important;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .price-item-info {
        padding-right: 0;
    }
    
    .price-item-cost {
        font-size: 1.75rem;
    }
    
    .price-table-header,
    .price-item {
        padding: 15px 20px;
    }
    
    .repair-price-filter {
        justify-content: flex-start;
    }
    
    .price-filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Animation for filtered items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-table {
    animation: fadeIn 0.3s ease;
}
