* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    background-image: url('./assets/img/backgroud.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.header {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-top: -40px;
    margin-bottom: 10px;
    align-self: flex-start;
}

h1 {
    color: #1a202c;
    width: 100%;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

button {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.12);
}

button:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.18);
}

.patient-info {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background-color: #ebf8ff;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.patient-name {
    font-weight: 700;
    font-size: 18px;
    color: #2c5282;
}

.file-upload {
    display: none;
    margin-top: 36px;
}

.file-input-wrapper {
    margin-top: 16px;
    margin-bottom: 20px;
}

.file-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.file-input-container input[type="file"] {
    flex-grow: 1;
    padding: 12px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.file-input-container input[type="file"]:hover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.btn-remove-file {
    background-color: #fc8181;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(252, 129, 129, 0.12);
}

.confirmation-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
}

.btn-confirm, .btn-cancel, #btn-enviar, #btn-pesquisar {
    padding: 8px 16px;
    font-size: 15px;
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 150px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-confirm, .btn-cancel {
    padding: 1px 16px;
}

.btn-confirm {
    background-color: #48bb78;
    box-shadow: 0 4px 6px rgba(72, 187, 120, 0.12);
}

.btn-confirm:hover {
    background-color: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(72, 187, 120, 0.18);
}

.btn-cancel {
    background-color: #fc8181;
    box-shadow: 0 4px 6px rgba(252, 129, 129, 0.12);
}

.btn-cancel:hover {
    background-color: #f56565;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(252, 129, 129, 0.18);
}

.btn-remove-file:hover {
    background-color: #f56565;
    transform: translateY(-1px);
}

.success-message {
    display: none;
    margin-top: 24px;
    padding: 18px;
    background-color: #f0fff4;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    color: #2f855a;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(72, 187, 120, 0.08);
}

.btn-add-more {
    background-color: #805ad5;
    margin-top: 14px;
    margin-bottom: 24px;
    padding: 8px 12px;  
    font-size: 14px;    
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(128, 90, 213, 0.12);
}

.btn-add-more:hover {
    background-color: #6b46c1;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(128, 90, 213, 0.18);
}

.file-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

#btn-enviar {
    margin-top: 20px;  /* Changed from -40px to 20px to move it down */
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.file-counter {
    color: #718096;
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
}

.error-message {
    display: none;
    margin-top: 24px;
    padding: 18px;
    background-color: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #fc8181;
    color: #c53030;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(252, 129, 129, 0.08);
}

/* Adicionando estilos para a tabela de guias */
.table-container {
    margin-top: 24px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px 16px;
    text-align: center; /* Changed from 'left' to 'center' */
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f7fafc;
}

.status-pendente {
    color: #dd6b20;
    font-weight: 600;
    background-color: #fffaf0;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status-concluido {
    color: #2f855a;
    font-weight: 600;
    background-color: #f0fff4;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.btn-anexar {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-anexar:hover {
    background-color: #3182ce;
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 500px; /* Added max-width to limit the container size */
    margin-left: auto;
    margin-right: auto; /* Center the search container */
}

#search-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    max-width: 400px; /* Added max-width to limit the input field size */
}

#btn-search {
    padding: 12px 20px;
}

.guia-numero {
    font-weight: 700;
    font-size: 18px;
    color: #2c5282;
}

/* Add this to your existing CSS */
.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.btn-close {
    background-color: transparent;
    color: #4a5568;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background-color: #e2e8f0;
    color: #2d3748;
    transform: none;
    box-shadow: none;
}

.back-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 10px; /* Adjust the padding as needed */
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: #3498db; /* azul */
        color: #ffffff; /* branco */
        line-height: 1.2;  /* Adjust the line-height if necessary */
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease;
        }

        .back-button i {
        margin-right: 5px; /* Add some space between the icon and text */
        }