/* Reception Module Styles */

/* Tabs */
.reception-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    padding-bottom: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
 font-weight: 500;
    color: var(--text-muted, #666);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
 border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: var(--primary-color, #556ee6);
    background-color: rgba(85, 110, 230, 0.05);
}

.tab-button.active {
    color: var(--primary-color, #556ee6);
    border-bottom-color: var(--primary-color, #556ee6);
}

.tab-button i {
    margin-right: 8px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
     opacity: 0;
  transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-inner-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-inner-content h2 {
    margin: 0 0 10px 0;
    color: var(--text-dark, #333);
    font-size: 24px;
}

.tab-description {
    color: var(--text-muted, #666);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Service Selection Section */
.service-selection-section {
    margin-top: 20px;
}

.service-selection-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark, #333);
    font-size: 18px;
}

.service-search-container {
    margin-bottom: 20px;
}

.services-checkboxes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.checkbox-item {
  display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--primary-color, #556ee6);
    background-color: rgba(85, 110, 230, 0.02);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    color: var(--text-dark, #333);
    flex: 1;
}

.loading-message {
 text-align: center;
    color: var(--text-muted, #666);
    padding: 20px;
}

.download-actions {
    margin-top: 30px;
    text-align: center;
}

.selected-count {
    margin-top: 10px;
    color: var(--text-muted, #666);
    font-size: 14px;
}

/* Search Section */
.search-section {
    margin-top: 20px;
}

.search-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark, #333);
    font-size: 18px;
}

.search-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark, #333);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.form-group label .fa-info-circle {
    transition: color 0.2s ease;
}

.form-group label .fa-info-circle:hover {
    color: var(--primary-color, #556ee6);
}

.form-control {
    padding: 10px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #556ee6);
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.1);
}

.search-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Auth Status */
.auth-status {
    padding: 15px 20px;
    background: #fff3cd;
 border: 1px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #856404;
}

.auth-status.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.auth-status.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Results Section */
.results-section {
    margin-top: 30px;
}

.results-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark, #333);
    font-size: 18px;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark, #333);
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark, #333);
}

.data-table tbody tr:hover {
    background-color: rgba(85, 110, 230, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Attach Documents Button */
.attach-btn {
    background: var(--primary-color, #556ee6);
    color: white;
    border: none;
    padding: 8px 16px;
 border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
 display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.attach-btn:hover {
  background: var(--primary-hover, #4258c9);
}

.attach-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Attachment Badge */
.attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0066cc;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.attachment-badge.has-attachments {
    background: #d4edda;
    color: #155724;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
 height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
 margin: 0;
    font-size: 20px;
    color: var(--text-dark, #333);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
color: #999;
  cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Invoice Info */
.invoice-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.invoice-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.invoice-info-item {
    display: flex;
  flex-direction: column;
}

.invoice-info-label {
    font-size: 12px;
    color: var(--text-muted, #666);
    margin-bottom: 4px;
}

.invoice-info-value {
 font-size: 14px;
    font-weight: 500;
    color: var(--text-dark, #333);
}

/* Upload Section */
.upload-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-dark, #333);
}

.file-upload-area {
    position: relative;
    margin-bottom: 20px;
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-label:hover {
    border-color: var(--primary-color, #556ee6);
    background: rgba(85, 110, 230, 0.02);
}

.file-upload-label.drag-over {
    border-color: var(--primary-color, #556ee6);
    background: rgba(85, 110, 230, 0.1);
    border-style: solid;
    transform: scale(1.02);
}

.file-upload-label i {
    font-size: 48px;
    color: var(--primary-color, #556ee6);
    margin-bottom: 15px;
}

.file-upload-label span {
    font-size: 16px;
    color: var(--text-dark, #333);
    margin-bottom: 5px;
}

.file-upload-label small {
    font-size: 12px;
    color: var(--text-muted, #666);
}

/* Selected Files List */
.selected-files-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.file-item-info {
  display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-item-icon {
    font-size: 20px;
    color: var(--primary-color, #556ee6);
}

.file-item-name {
    font-size: 14px;
    color: var(--text-dark, #333);
    font-weight: 500;
}

.file-item-size {
    font-size: 12px;
    color: var(--text-muted, #666);
    margin-left: 10px;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s ease;
}

.file-remove-btn:hover {
    color: #c82333;
}

/* Attached Documents Section */
.attached-documents-section {
    margin-top: 30px;
    padding-top: 25px;
 border-top: 1px solid #e0e0e0;
}

.attached-documents-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-dark, #333);
}

.attached-documents-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-documents {
    text-align: center;
    color: #74788d;
    padding: 20px;
    font-style: italic;
}

.attached-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
 background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.attached-document-item:hover {
    background-color: #e9ecef;
}

.attached-document-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.attached-document-icon {
    font-size: 24px;
    color: #556ee6;
}

.attached-document-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.attached-document-date {
    font-size: 12px;
    color: #74788d;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.document-view-btn,
.document-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.document-view-btn {
    color: #556ee6;
}

.document-view-btn:hover {
 background-color: rgba(85, 110, 230, 0.1);
}

.document-delete-btn {
    color: #f46a6a;
}

.document-delete-btn:hover {
 background-color: rgba(244, 106, 106, 0.1);
}

/* Service code badge in attachments list */
.service-code-badge {
    display: inline-block;
    background-color: #556ee6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
  vertical-align: middle;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
 transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color, #556ee6);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover, #4258c9);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reception-tabs {
        flex-direction: column;
    }

    .tab-button {
   width: 100%;
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-row {
        grid-template-columns: 1fr;
    }

    .search-actions {
        flex-direction: column;
    }

    .search-actions .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
    max-height: 95vh;
    }
}
