#walletCrmContainer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 650px;
}

#walletCrmContainer h1 {
    color: #1a3a5c;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

#CrmContainer {
    width: 100%;
    color: black;
    margin-top: 25vh;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 40vh 0;
}

/* Form Styling */
#certificateCRMForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#certificateCRMForm .w-100 {
    display: flex;
    flex-direction: column;
}

#certificateCRMForm label {
    color: #1a3a5c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

#certificateCRMForm .form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #333;
}

#certificateCRMForm .form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    background-color: #ffffff;
}

#certificateCRMForm .form-control::placeholder {
    color: #999;
    font-style: italic;
}

#certificateCRMForm h2 {
    color: #2d5f8d;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

#CrmContainer .crm {
    position: relative;
}   

#CrmContainer .crmInfos {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

/* File Input Styling */
.custom-file {
    display: flex;
    overflow: hidden;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.custom-file:hover {
    border-color: #0066cc;
    background-color: #f0f6ff;
}

.custom-file-input {
    display: none;
}

.custom-file-label {
    flex: 1;
    padding: 0.6rem 0.8rem;
    color: #666;
    cursor: pointer;
    background-color: #f8f9fa;
    border-right: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.85rem;
}

.custom-file-label::after {
    content: 'Browse';
    position: relative;
    left: auto;
    margin-left: auto;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.custom-file-label:hover::after {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

/* Button Styli65rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#certificateCRMForm .btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

#certificateCRMForm .btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

#certificateCRMForm .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

#certificateCRMForm .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 117, 125, 0.3);
}

#certific0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#certificateCRMForm .btn-group-action .btn {
    flex: 1;
    min-width: 14rm .btn-group-action .btn {
    flex: 1;
    min-width: 150px;
}

#CrmContainer .expirationDate {
    width: 40%;
    height: 5%;
    position: absolute;
    font-size: 70%;
    top: 45%;
    left: 79%;
    transform: rotate(-90deg);
}

#CrmContainer .emission {
    width: 48%;
    height: 5%;
    position: absolute;
    font-size: 70%;
    bottom: 3%;
    left: 50%;
}

#CrmContainer .crmInfos .crmInfosPhoto {
    width: 17%;
    height: 30%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 30%;
    left: 5%;
}

#CrmContainer .crmInfos .crmInfosPhoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#CrmContainer .crmInfos .cityImage {
    width: 13%;
    height: 22%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 5%;
    right: 5%;
}

#CrmContainer .crmInfos .cityImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#CrmContainer .userInfosContainer {
    width: 89%;
    height: 13%;
    position: absolute;
    bottom: 12%;
    left: 7%;
}

#CrmContainer .userInfosContainer .userName{
    width: 47%;
    height: 99%;
    position: absolute;
    display: flex;
    align-items: center;
    left: 0%;
    top: 0;
    overflow: hidden;
}

#CrmContainer .userInfosContainer .userId{
    overflow: hidden;
    width: 48%;
    height: 99%;
    position: absolute;
    right: -1%;
    display: flex;
    align-items: center;
}
/* Logo Hospital - Posicionado no canto superior esquerdo */
#CrmContainer .crmInfos .logoHospital {
    width: 15%;
    height: 20%;
    position: absolute;
    top: 5%;
    left: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
}

#CrmContainer .crmInfos .logoHospital img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Carteirinha CRM Profissional */
#dadosCertidao {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 2rem;
}

.crm-card {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.crm-header {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crm-body {
    padding: 1.5rem;
}

.crm-main-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.crm-photo {
    width: 120px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #16a085;
}

.crm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.crm-field {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.crm-label {
    font-weight: 700;
    color: #16a085;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.crm-value {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.crm-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e0e0e0;
}

.crm-logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 2px solid #16a085;
    padding: 0.5rem;
}

.crm-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crm-signature {
    flex: 1;
    text-align: right;
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
    .crm-card {
        max-width: 100%;
    }

    .crm-main-info {
        flex-direction: column;
        align-items: center;
    }

    .crm-photo {
        width: 140px;
        height: 170px;
    }

    .crm-details {
        width: 100%;
    }

    .crm-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .crm-signature {
        text-align: center;
    }
}

/* Estilos antigos do container (manter compatibilidade) */
#CrmContainer .crmInfos .name {
    width: 47%;
    height: 8%;
    position: absolute;
    bottom: 12%;
    left: 7%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 100%;
    overflow: hidden;
}

#CrmContainer .crmInfos .id {
    width: 48%;
    height: 8%;
    position: absolute;
    bottom: 12%;
    right: -1%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 100%;
    overflow: hidden;
}

#CrmContainer .crmInfos .emission {
    width: 48%;
    height: 5%;
    position: absolute;
    font-size: 70%;
    bottom: 3%;
    left: 50%;
}

#CrmContainer .crmInfos .validity {
    width: 40%;
    height: 5%;
    position: absolute;
    font-size: 70%;
    top: 45%;
    left: 79%;
    transform: rotate(-90deg);
}

#CrmContainer .crmInfos .fotoPerfil {
    width: 17%;
    height: 30%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 30%;
    left: 5%;
}

#CrmContainer .crmInfos .fotoPerfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    #walletCrmContainer {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }

    #walletCrmContainer h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #certificateCRMForm label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    #certificateCRMForm .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    #certificateCRMForm h2 {
        font-size: 1rem;
    }

    .custom-file-label {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .custom-file-label::after {
        content: 'Browse';
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    #certificateCRMForm .btn-group-action {
        flex-direction: column;
        gap: 0.8rem;
    }

    #certificateCRMForm .btn-group-action .btn {
        min-width: auto;
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    #certificateCRMForm .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}

@media (max-width: 480px) {
    #walletCrmContainer {
        padding: 1rem;
    }

    #walletCrmContainer h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #certificateCRMForm {
        gap: 1rem;
    }

    #certificateCRMForm .w-100 {
        margin-bottom: 0.5rem;
    }

    #certificateCRMForm label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    #certificateCRMForm .form-control {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }

    #certificateCRMForm h2 {
        font-size: 0.95rem;
    }

    .custom-file-label::after {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    #certificateCRMForm .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}