/* Professional Pricing Tables Stylesheet for LegalTranslation.ge */

/* Base table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Table header styling */
th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    position: relative;
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

/* Table cell styling */
td {
    padding: 14px 12px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

/* Remove border from last row */
tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Hover effect for table rows */
tbody tr:hover {
    background-color: #f0f8ff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Price styling */
.price {
    font-weight: 700;
    color: #27ae60;
    font-size: 15px;
    white-space: nowrap;
}

/* Category name styling */
td strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Language category tables specific styling */
.translation-pricing table,
.interpreting-pricing table {
    margin-bottom: 30px;
}

.translation-pricing th:nth-child(3),
.translation-pricing th:nth-child(4),
.interpreting-pricing th:nth-child(3),
.interpreting-pricing th:nth-child(4) {
    text-align: center;
    min-width: 120px;
}

.translation-pricing td:nth-child(3),
.translation-pricing td:nth-child(4),
.interpreting-pricing td:nth-child(3),
.interpreting-pricing td:nth-child(4) {
    text-align: center;
    font-weight: 600;
}

/* Proofreading table styling */
.proofreading-pricing table {
    max-width: 600px;
}

.proofreading-pricing th:nth-child(2),
.proofreading-pricing td:nth-child(2) {
    text-align: center;
    min-width: 150px;
}

/* Additional services table styling */
.additional-services table {
    margin-bottom: 25px;
}

.additional-services td:nth-child(2) {
    text-align: center;
    min-width: 120px;
    font-weight: 600;
}

/* Conference services table styling */
.conference-services td:nth-child(2) {
    text-align: center;
    min-width: 140px;
    font-weight: 600;
}

/* Emergency services table styling */
.emergency-services td:nth-child(2),
.emergency-services td:nth-child(3) {
    text-align: center;
    font-weight: 600;
}

/* Discount tables styling */
.discount-table td:nth-child(2) {
    text-align: center;
    font-weight: 600;
    color: #e74c3c;
}

/* Payment terms table styling */
.payment-terms td:nth-child(2) {
    text-align: center;
    font-weight: 600;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    table {
        font-size: 12px;
        margin: 15px 0;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    th {
        font-size: 12px;
    }
    
    .price {
        font-size: 13px;
    }
    
    /* Stack table on very small screens */
    @media screen and (max-width: 480px) {
        table, thead, tbody, th, td, tr {
            display: block;
        }
        
        thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        
        tr {
            border: 1px solid #ccc;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 8px;
            background: white;
        }
        
        td {
            border: none;
            position: relative;
            padding: 8px 8px 8px 35%;
            text-align: left;
        }
        
        td:before {
            content: attr(data-label) ": ";
            position: absolute;
            left: 6px;
            width: 30%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: 600;
            color: #2c3e50;
        }
    }
}

/* Print styles */
@media print {
    table {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    th {
        background: #f0f0f0 !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact;
    }
    
    tr:hover {
        background-color: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
th:focus,
td:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    th {
        background: #000000;
        color: #ffffff;
    }
    
    td {
        border-color: #000000;
    }
    
    .price {
        color: #008000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    tr,
    td,
    th {
        transition: none;
    }
    
    tbody tr:hover {
        transform: none;
    }
}
