/* Modern Styles - Shared across all pages */

/* Modern Search Filter Styles */
.modern-search-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.modern-search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.modern-search-header h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.modern-search-header i {
    font-size: 1.2rem;
}

.modern-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.modern-label i {
    color: #667eea;
}

.modern-input,
.modern-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus,
.modern-select:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.modern-input::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* LTR Input - for numeric/code fields */
.modern-input-ltr {
    direction: ltr;
    text-align: left;
}

/* Fix dropdown arrow position for RTL */
.modern-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
    padding-right: 1rem;
}

.modern-select option {
    padding: 0.5rem;
}

/* Modern Buttons */
.btn-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-modern-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 147, 251, 0.4);
    color: white;
    text-decoration: none;
}

/* Modern Table Styles */
.results-container {
    margin-bottom: 2rem;
}

.results-header h4 {
    color: #2c3e50;
    font-weight: 600;
}

.modern-table-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.modern-table {
    margin-bottom: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    vertical-align: middle;
}

.modern-table thead th i {
    opacity: 0.9;
}

.modern-table tbody tr.table-row-modern {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.modern-table tbody tr.table-row-modern:last-child {
    border-bottom: none;
}

.modern-table tbody tr.table-row-modern:hover {
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.modern-table tbody td {
    padding: 1rem 0.75rem;
    border: none;
    vertical-align: middle;
}

/* Row Number */
.row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

/* StuffId Cell */
.stuffid-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stuffid-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
    background: #f0f4ff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.btn-copy-code {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-copy-code:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.btn-copy-code.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Name Cell */
.name-cell {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Type Badge */
.type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
}

/* VAT Badge */
.vat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.3);
}

.vat-badge small {
    font-size: 0.75rem;
    margin-right: 2px;
}

/* Date Text */
.date-text {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.date-text i {
    color: #667eea;
}

/* Pagination */
.pagination .page-link {
    color: #667eea;
    border-radius: 0.5rem;
    margin: 0 0.2rem;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-search-header {
        padding: 1rem;
    }
    
    .modern-search-header h5 {
        font-size: 1rem;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .modern-table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .stuffid-code {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .row-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .type-badge,
    .vat-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}
