/* Price Table Widget Styles - Pure Structure */
.price-table-widget {
    direction: rtl;
    font-family: 'Tahoma', 'Arial', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.price-table-header {
    background-color: #2a398b;
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

.price-table-header h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.price-table-header h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.price-table-header h2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.jalali-date {
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.price-table th {
    background-color: #f7ca07;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    position: relative;
}

.price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: right;
    transition: all 0.3s ease;
}

.price-table-row {
    transition: all 0.3s ease;
    position: relative;
}

.price-table-row:nth-child(even) {
    background-color: #f8f9fa;
}

.price-table-row:hover {
    background-color: #e3f2fd;
    box-shadow: 0 8px 32px 0 rgba(79, 172, 254, 0.18), 0 1.5px 6px 0 rgba(0,0,0,0.08);
    transition: box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
}

.price {
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    display: block;
    visibility: visible;
    opacity: 1;
    color: #2e7d32;
}

.material-name {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.material-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.material-name a:hover {
    color: #4facfe;
    text-decoration: underline;
}

/* Ensure price visibility */
.price-table td.price {
    visibility: visible !important;
    opacity: 1 !important;
    display: table-cell !important;
    color: #2e7d32 !important;
    font-weight: bold !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-table-header h2 {
        font-size: 2rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .price-table-widget {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .price-table-header {
        padding: 20px 15px;
    }
    
    .price-table-header h2 {
        font-size: 1.5rem;
    }
    
    .jalali-date {
        font-size: 1rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Loading animation */
.price-table-widget.loading {
    opacity: 0.9;
}

.price-table-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 