﻿:root {
    --primary: #15365D; /*Verde #37687A;*/
    --primary-disabled: rgba(21, 54, 93, 0.75);
    /*--primary: #fff;*/
    --color-primay: #fff;
    --secondary: #ccc;
    --status: #c80056;
    --fontRoboto: 'Roboto', sans-serif !important;
}

@-webkit-keyframes drawer-show {

    to {
        /*background-color: yellow;*/
        left: 0;
        margin-left: 0px;
    }
}

/* Standard syntax */
@keyframes drawer-show {

    to {
        /*background-color: yellow;*/
        left: 0;
        margin-left: 0px;
    }
}

@-webkit-keyframes drawer-hide {

    to {
        /*background-color: yellow;*/
        left: 0;
        margin-left: -285px;
    }
}

/* Standard syntax */
@keyframes drawer-hide {

    to {
        /*background-color: yellow;*/
        left: 0;
        margin-left: -285px;
    }
}

body, html {
    margin: 0px auto;
    padding: 0px 0px 0px 0px;
    font-family: var(--fontRoboto) !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

#containment-wrapper {
    width: 480px;
    margin-left: -250px;
    height: 100%;
}

#drawer {
    padding: 0px 0px 0px 0px;
    position: fixed;
    z-index: 9999;
    background-color: transparent;
    color: var(--color-primay);
    width: 300px;
    height: 100%;
    margin-left: -285px;
    /*margin-left: 0px;*/
    top: 0;
    left: 0;
}

#drawer-hide {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9998;
    background-color: rgba(0, 0, 0, 0.40);
    display: none;
}

ul li {
    margin: 0px;
    padding: 0px;
    list-style: none;
    width: 100%;
    border-bottom: 1px solid silver;
}

.drawer-menu-content {
    background-color: #fff;
    width: 285px;
    height: 100%;
    margin: 0px;
    padding: 0px;
}

.list-menu {
    list-style: none;
    padding: 0px !important;
    margin: 0px;
}

.drawer-menu-content > .link-menu {
    width: 100%;
    padding: 20px 0px !important;
    cursor: pointer;
    display: block;
    text-decoration: none;
    border-top: 1px solid #f1f1f1;
    color: #1a1a1a;
}

    .drawer-menu-content > .link-menu:first-child {
        border-top: none !important;
    }

    .drawer-menu-content > .link-menu:hover {
        padding: 20px 0px !important;
        cursor: pointer;
        background-color: var(--primary);
        color: white;
    }

.item-menu {
    margin: 10px;
}

.aMenu {
    text-decoration: none !important;
    color: #000;
}

/*############################################################################################*/
.field {
    display: flex;
    flex-flow: column-reverse;
    margin-bottom: 1.5em;
}



.form-cadastro {
}
/**
        * Add a transition to the label and input.
        * I'm not even sure that touch-action: manipulation works on
        * inputs, but hey, it's new and cool and could remove the
        * pesky delay.
        */
label, .form-cadastro {
    transition: all 0.2s;
    touch-action: manipulation;
    font-family: var(--fontRoboto);
}

select {
    font-family: var(--fontRoboto);
}

.form-cadastro {
    width: 100%;
    font-size: 14px;
    border: 0;
    border-bottom: 1px solid #ccc;
    font-family: var(--fontRoboto);
    -webkit-appearance: none;
    border-radius: 0;
    padding: 0 0 5px 0;
    cursor: text;
    margin-top: 5px;
    background-color: transparent !important;
}

    .form-cadastro:focus {
        outline: 0;
        border-bottom: 1px solid var(--primary);
    }

        .form-cadastro:focus + label {
            color: var(--primary);
        }

.label {
    font-size: 11px;
    color: #757575;
    margin-bottom: 6px !important;
    font-family: var(--fontRoboto);
}
/**
        * Translate down and scale the label up to cover the placeholder,
        * when following an input (with placeholder-shown support).
        * Also make sure the label is only on one row, at max 2/3rds of the
        * field—to make sure it scales properly and doesn't wrap.
        */
.form-cadastro:placeholder-shown + label {
    cursor: text;
    max-width: 66.66%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform-origin: left bottom;
    transform: translate(0, 1.8rem) scale(1.3);
}
/**
        * By default, the placeholder should be transparent. Also, it should
        * inherit the transition.
        */
::-webkit-input-placeholder {
    opacity: 0;
    transition: inherit;
}
/**
        * Show the placeholder when the input is focused.
        */
.form-cadastro:focus::-webkit-input-placeholder {
    opacity: 1;
}
/**
        * When the element is focused, remove the label transform.
        * Also, do this when the placeholder is _not_ shown, i.e. when
        * there's something in the input at all.
        */
.form-cadastro:not(:placeholder-shown) + label,
.form-cadastro:focus + label {
    transform: translate(0,0) scale(1);
    cursor: default;
    /*color:var(--primary);*/
}

.form-cadastro:not(:placeholder-shown) {
    /*border-bottom: 1px solid var(--primary);*/
}

textarea {
    font-size: 0.9em !important;
    resize: none;
    font-family: var(--fontRoboto);
}



.btn-sm {
    padding: 5px 5px !important;
    margin: 5px 5px !important;
    font-size: 12px !important;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--color-primay);
    border: none;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    cursor: pointer;
    outline: 0;
    padding: 10px 10px;
    text-align: center;
    /*margin: 10px 10px;*/
    /*font-size: 14px;*/
}



    .btn-primary.disabled,
    .btn-primary[disabled] {
        background-color: var(--primary-disabled);
    }

.btn-block {
    width: 100%;
    padding: 10px 0px;
    text-align: center;
    margin: 10px 0;
    font-size: 18px;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    padding: 10px;
    cursor: pointer;
    outline: 0;
}
/*############################################################################################*/

.topo {
    height: 60px;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    background-color: var(--primary);
    text-align: center;
}

.topoDown {
    height: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    background-color: #000;
}


.header {
    background-color: var(--primary);
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 0px;
    left: 0px;
    height: 60px;
    line-height: 40px;
    color: var(--color-primay);
}

.header-content {
    padding: 10px;
}



.container {
    margin-top: 20px;
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
}

.container-galeria {
    position: fixed;
    top: 80px;
    z-index: 9999;
    padding: 0px;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}



.container-fluid {
    margin-top: 80px;
    padding-right: 5px;
    padding-left: 5px;
    margin-right: auto;
    margin-left: auto;
}


.page {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: none;
    overflow-y: scroll;
    padding-bottom: 50px;
}

.bg-primary {
    background-color: var(--primary);
    color: var(--color-primay);
}

.head-page {
    background-color: var(--primary);
    width: 100%;
    height: 60px;
    line-height: 40px;
    color: var(--color-primay);
}

.icon-menu {
    margin: 5px 32px 5px 10px;
}


.menuBars {
    display: none;
}

.menuMobile {
    display: none;
}

.indice {
    display: none;
}

@media(max-width:1024px) {
    .touch-side-swipe {
        /*background: hsl(2, 57%, 40%);*/
    }

    .menu {
        display: none;
    }

    .menuBars {
        position: absolute;
        top: 16px;
        left: 20px;
        background-color: transparent;
        display: block;
        color: white;
        font-size: 24px;
    }

    .menuMobile {
        display: none;
        position: absolute;
        top: 61px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        z-index: 999;
    }

    .divMenu {
        text-align: center;
        padding: 10px 0px;
    }

    .aDivMenu {
        color: #fff !important;
    }

    .indice {
        display: block;
        text-align: center;
    }

    .btn-login {
        width: 100%;
    }
}

.touch-side-swipe ul {
    display: block;
    overflow-y: overlay;
    margin: 0;
    padding: 0;
    line-height: 30px;
}

.touch-side-swipe a {
    color: #fff;
}

* {
    box-sizing: border-box;
}

.navbar-toggle {
    outline: 0 !important;
    position: relative;
    float: left;
    padding: 3px 8px;
    margin-top: 8px;
    margin-right: 20px;
    margin-bottom: 8px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
}

    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
    }

.icon-bar {
    background-color: var(--color-primay) !important;
    margin-bottom: 4px;
}


fieldset {
    border: none;
    padding: 0px;
    margin: 0 auto;
}

legend {
    margin: 0;
    padding: 0px;
    margin-bottom: 3px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    width: 100%;
}

/*############ CHECKBOX #########*/

/* The container */
.containerCheck {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: var(--fontRoboto);
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc !important;
    line-height: 24px;
}



    /* Hide the browser's default checkbox */
    .containerCheck input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border: 1px solid #ccc;
}

/* When the checkbox is checked, add a blue background */
.containerCheck input:checked ~ .checkmark {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

.containerCheck:checked {
    background-color: transparent;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.containerCheck input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.containerCheck .checkmark:after {
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid var(--color-primay);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/*############ END CHECKBOX #########*/










/*############ RADIOBUTTONS #########*/

/* The container */
.containerRadio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: var(--fontRoboto);
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc !important;
    line-height: 25px;
}

    /* Hide the browser's default radio button */
    .containerRadio input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

/* Create a custom radio button */
.checkmarkRadio {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 50%;
}


/* When the radio button is checked, add a blue background */
.containerRadio input:checked ~ .checkmarkRadio {
    background-color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmarkRadio:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.containerRadio input:checked ~ .checkmarkRadio:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.containerRadio .checkmarkRadio:after {
    top: 7px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}


/*####################### Input File ################################*/
/* Esconde o input */
#selecaoArquivo {
    display: none;
}

/* Aparência que terá o seletor de arquivo */
.inputFile {
    background-color: var(--primary);
    color: var(--color-primay);
    cursor: pointer;
    width: 100% !important;
    text-align: center !important;
}

/*####################### End Input File ################################*/
* {
    -webkit-tap-highlight-color: transparent;
}

.list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    border: none;
    vertical-align: middle;
    width: 100%;
}

    .list > li {
        padding: 20px 0;
        border-bottom: 1px solid #E6E6E6;
        width: 100%;
        font-family: var(--fontRoboto);
    }

        .list > li > a {
            display: inline-block;
            color: #000;
            text-decoration: none;
            width: 100%;
            font-family: var(--fontRoboto);
        }

ul > li:last-child {
    padding: 20px 0;
    border-bottom: none;
}


.list-image-circle {
    float: left;
    width: 50px;
    border-radius: 50%;
    vertical-align: middle;
}

.list-image-corners {
    float: left;
    width: 50px;
    border-radius: 5px;
    vertical-align: middle;
}

.list-image-square {
    float: left;
    width: 50px;
    border-radius: 0;
    vertical-align: middle;
}


.list-text {
    vertical-align: middle;
    margin-left: 20px;
    line-height: 44px;
}


.list-icon {
    float: left;
    vertical-align: middle;
    font-size: 18px;
    line-height: 20px;
}

.list-text-icon {
    vertical-align: middle;
    margin-left: 20px;
}

.swiper-slide {
    margin-bottom: 50px;
}

.margim-footer {
    height: 60px;
}

.img-responsive {
    width: 100%;
}

.swiper-pagination-progressbar-fill {
    background-color: var(--primary);
}


.loader {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999998;
    background-color: rgba(0, 0, 0, 0.75);
}

.loader-icon {
    position: fixed;
    width: 100%;
    text-align: center;
    color: #FFF;
    top: 40%;
    font-size: 20px;
    z-index: 999999;
}

.bg-white {
    background-color: #fff;
}

.backModal {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    left: 0;
    top: 0;
    z-index: 999;
}

.modal-header-primary {
    background-color: var(--primary);
    color: var(--color-primay);
    padding: 10px;
}

.modal-body {
    background-color: #fff;
    padding: 30px 20px 10px;
    clear: both;
}

.pointer {
    cursor: pointer;
}

hr {
    height: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    background-color: #f1f1f1;
    border: 1px #f1f1f1 silver;
}

.text-area {
    width: 100%;
    border: 1px solid silver;
    outline: none;
    resize: vertical;
}


    .text-area::-webkit-input-placeholder { /* Chrome/Opera/Safari */
        color: pink !important;
    }

    .text-area::-moz-placeholder { /* Firefox 19+ */
        color: pink !important;
    }

    .text-area:-ms-input-placeholder { /* IE 10+ */
        color: pink !important;
    }

    .text-area:-moz-placeholder { /* Firefox 18- */
        color: pink !important;
    }


.text-danger {
    color: darkred;
}


/* ===== MODERN FORM STYLES - Adicionar ao final do estilo.css ===== */

/* Modern Form Variables - complementando as existentes */
:root {
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --background-gray: #f8fafc;
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
}

/* Progress Navigation */
.progress-navigation {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

    .step-item.active {
        color: white;
        transform: scale(1.05);
    }

    .step-item:hover {
        color: rgba(255, 255, 255, 0.9);
    }

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.step-item.active .step-number {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Form Container */
.form-container {
    background: var(--background-gray);
    min-height: 100vh;
    padding: 30px 0;
}

/* Page Header */
.page-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    font-family: var(--fontRoboto);
}

.step-indicator {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.page-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-family: var(--fontRoboto);
}

/* Form Content */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

    .form-section:hover {
        box-shadow: var(--shadow-md);
    }

.section-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
}



.section-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--fontRoboto);
}

/* Form Grid */
.form-grid {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

/* Modern Input Fields - Sobrescrever estilos existentes */
.input-field {
    position: relative;
    margin-bottom: 15px;
}

    .input-field .form-control {
        width: 100%;
        height: 50px;
        padding: 18px 14px 6px 14px;
        border: 2px solid var(--border-light);
        border-radius: var(--border-radius-sm);
        background: white;
        font-size: 14px;
        color: var(--primary);
        transition: all 0.3s ease;
        box-shadow: none;
        outline: none;
        font-family: var(--fontRoboto);
    }

        .input-field .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(21, 54, 93, 0.1);
        }

        .input-field .form-control:disabled {
            background: #f1f5f9;
            color: var(--text-secondary);
            cursor: not-allowed;
        }

    .input-field .input-label {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        font-size: 14px;
        transition: all 0.3s ease;
        pointer-events: none;
        background: white;
        padding: 0 4px;
        font-family: var(--fontRoboto);
    }

    .input-field .form-control:focus + .input-label,
    .input-field .form-control:not(:placeholder-shown) + .input-label {
        top: 6px;
        font-size: 11px;
        color: var(--primary);
        font-weight: 500;
    }

    .input-field .input-border {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .input-field .form-control:focus ~ .input-border {
        width: 100%;
    }

    /* Select Styling */
    .input-field select.form-control {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 40px;
    }

/* Modern Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary);
    font-family: var(--fontRoboto);
}

    .custom-checkbox input[type="checkbox"] {
        display: none;
    }

    .custom-checkbox .checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid var(--border-light);
        border-radius: 4px;
        background: white;
        position: relative;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark {
        background: var(--primary);
        border-color: var(--primary);
    }

        .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 1px;
            width: 5px;
            height: 9px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.checkbox-text {
    flex: 1;
}

/* Form Actions */
.form-actions {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.confirmation-wrapper {
    margin-bottom: 25px;
    padding: 18px;
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

/* Modern Buttons - Sobrescrever estilos existentes */
.btn-modern-primary, .btn-modern-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    font-family: var(--fontRoboto);
}

.btn-modern-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 54, 93, 0.3);
}

    .btn-modern-primary:hover:not(:disabled) {
        background: var(--primary-disabled);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(21, 54, 93, 0.4);
    }

    .btn-modern-primary:disabled {
        background: var(--primary-disabled);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-modern-secondary {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

    .btn-modern-secondary:hover {
        background: #e2e8f0;
        border-color: var(--text-secondary);
        color: var(--primary);
    }

/* Animation */
.form-section {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.btn-modern-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-modern-primary.loading::after {
        content: '';
        width: 14px;
        height: 14px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 6px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .steps-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step-item {
        flex: 1;
        min-width: 70px;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .form-grid {
        padding: 15px;
        gap: 15px;
    }

    .form-group {
        min-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-modern-primary, .btn-modern-secondary {
        width: 100%;
    }

    .page-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-header {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px 0;
    }

    .form-content {
        gap: 15px;
    }

    .confirmation-wrapper {
        padding: 15px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .progress-navigation {
        padding: 10px 0;
    }
}


/* ===== ESTILOS ADICIONAIS PARA TABELAS E CARDS ===== */
/* Adicionar após o CSS anterior */

/* Modern Tables */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 0;
    font-family: var(--fontRoboto);
}

    .table-modern thead {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-disabled) 100%);
    }

        .table-modern thead th {
            color: white;
            font-weight: 600;
            font-size: 14px;
            padding: 15px 12px;
            text-align: left;
            border: none;
            font-family: var(--fontRoboto);
        }

    .table-modern tbody td {
        padding: 15px 12px;
        border-bottom: 1px solid var(--border-light);
        font-size: 14px;
        vertical-align: top;
        color: var(--primary);
        font-family: var(--fontRoboto);
    }

    .table-modern tbody tr:last-child td {
        border-bottom: none;
    }

    .table-modern tbody tr:hover {
        background: var(--background-gray);
    }

/* Table Badges */
.table-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--fontRoboto);
}

.badge-success {
    background: var(--success-color) !important;
}

.badge-secondary {
    background: var(--secondary) !important;
}

/* Action Buttons */
.btn-action-delete {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .btn-action-delete:hover {
        background: #dc2626;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

/* Endereco Card */
.endereco-card {
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    border-left: 4px solid var(--primary);
}

.endereco-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

    .endereco-header strong {
        font-size: 16px;
        color: var(--primary);
        font-family: var(--fontRoboto);
    }

.endereco-details p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    font-family: var(--fontRoboto);
}

    .endereco-details p strong {
        color: var(--primary);
        font-weight: 600;
    }

/* Trabalho Card */
.trabalho-card {
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    padding: 18px;
    border-left: 4px solid var(--primary);
}

.trabalho-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

    .trabalho-header strong {
        font-size: 16px;
        color: var(--primary);
        font-family: var(--fontRoboto);
    }

.trabalho-details {
    font-family: var(--fontRoboto);
}

.detail-row {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
}

.detail-col {
    flex: 1;
    min-width: 0;
}

    .detail-col p {
        margin: 6px 0;
        font-size: 13px;
        line-height: 1.4;
        color: var(--text-secondary);
        word-wrap: break-word;
    }

        .detail-col p strong {
            color: var(--primary);
            font-weight: 600;
        }

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Enhanced confirmation wrapper for special cases */
.confirmation-wrapper.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
}

    .confirmation-wrapper.alert-warning .checkbox-text {
        color: #856404;
    }

/* Spacing adjustments */
.form-section:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for tables */
@media (max-width: 768px) {
    .table-modern {
        font-size: 12px;
    }

        .table-modern thead th {
            padding: 10px 8px;
            font-size: 12px;
        }

        .table-modern tbody td {
            padding: 12px 8px;
            font-size: 12px;
        }

    .endereco-card,
    .trabalho-card {
        padding: 12px;
    }

    .endereco-header,
    .trabalho-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-row {
        flex-direction: column;
        gap: 10px;
    }

    .detail-col p {
        font-size: 12px;
    }

    .table-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .btn-action-delete {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Additional color variables for success */
:root {
    --success-color: #10b981;
}

/* Improved form spacing */
.form-grid .form-group:last-child {
    margin-bottom: 0;
}

/* Better visual hierarchy */
.section-title {
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }

/* Enhanced hover effects */
.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

.endereco-card,
.trabalho-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .endereco-card:hover,
    .trabalho-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Loading animation for buttons */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-modern-primary:active {
    animation: buttonPulse 0.3s ease;
}

.section-title {
    position: relative;
    /* Removido o ::after que criava o traço feio */
}

/* Better focus states */
.table-modern:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced disabled states */
.form-control:disabled {
    opacity: 0.6;
    background: #f1f5f9 !important;
    cursor: not-allowed;
}

/* Improved contrast for better accessibility */
.table-modern thead th {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Better spacing for mobile checkboxes */
@media (max-width: 480px) {
    .custom-checkbox {
        gap: 8px;
    }

    .checkmark {
        width: 18px;
        height: 18px;
    }

    .checkbox-text {
        font-size: 13px;
        line-height: 1.4;
    }
}




/* Estilos específicos para a página de escolas */
.escola-card {
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    padding: 18px;
    border-left: 4px solid var(--primary);
}

.escola-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

    .escola-header strong {
        font-size: 16px;
        color: var(--primary);
        font-family: var(--fontRoboto);
    }

.escola-details {
    font-family: var(--fontRoboto);
}

.nivel-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: #3b82f6 !important;
}

.badge-info {
    background: #06b6d4 !important;
}

.badge-purple {
    background: #8b5cf6 !important;
}

.badge-dark {
    background: #374151 !important;
}

@media (max-width: 768px) {
    .escola-card {
        padding: 12px;
    }

    .escola-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}













/* Estilos específicos para Vida Pregressa */
.pergunta-section {
    margin-bottom: 25px;
}

.pergunta-card {
    border-left: 4px solid var(--primary);
    position: relative;
}

.pergunta-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 25px;
}

.pergunta-numero {
    flex-shrink: 0;
}

.numero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    font-family: var(--fontRoboto);
}

.pergunta-texto {
    flex: 1;
    min-width: 0;
}

.pergunta-title {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--fontRoboto);
}

.pergunta-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    font-family: var(--fontRoboto);
}

.pergunta-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--fontRoboto);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-saved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.pergunta-content {
    padding: 0 25px 25px 25px;
}

/* Botões de Resposta Sim/Não */
.resposta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-resposta {
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: var(--fontRoboto);
}

    .btn-resposta input[type="radio"] {
        display: none;
    }

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-resposta:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 54, 93, 0.15);
}

.btn-resposta.active {
    border-color: var(--primary);
    background: var(--primary);
}

    .btn-resposta.active .btn-content {
        color: white;
    }

/* Campo de Descrição */
.descricao-field {
    margin: 20px 0;
}

.descricao-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

.textarea-modern {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: var(--fontRoboto);
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

    .textarea-modern:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(21, 54, 93, 0.1);
    }

.char-counter {
    display: block;
    text-align: right;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--fontRoboto);
}

/* Seção de Salvamento */
.save-section {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-salvar {
    min-width: 160px;
}

.save-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #166534;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

    .save-success i {
        font-size: 16px;
    }

/* Responsive */
@media (max-width: 768px) {
    .pergunta-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .pergunta-status {
        align-self: flex-start;
    }

    .pergunta-content {
        padding: 0 20px 20px 20px;
    }

    .resposta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-resposta {
        max-width: none;
    }

    .save-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-salvar {
        width: 100%;
    }

    .numero-badge {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .pergunta-title {
        font-size: 15px;
    }
}

/* Animações */
.pergunta-card {
    animation: slideInUp 0.6s ease-out;
}

    .pergunta-card:nth-child(even) {
        animation-delay: 0.1s;
    }

    .pergunta-card:nth-child(odd) {
        animation-delay: 0.2s;
    }

    /* Estados especiais */
    .pergunta-card:has(.status-saved) {
        border-left-color: #22c55e;
    }

    .pergunta-card:has(.status-pending) {
        border-left-color: #f59e0b;
    }























/* Estilos específicos para Outros Dados - herda estilos de Vida Pregressa */
.pergunta-section {
    margin-bottom: 25px;
}

.pergunta-card {
    border-left: 4px solid var(--primary);
    position: relative;
}

.pergunta-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 25px;
}

.pergunta-numero {
    flex-shrink: 0;
}

.numero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    font-family: var(--fontRoboto);
}

.pergunta-texto {
    flex: 1;
    min-width: 0;
}

.pergunta-title {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--fontRoboto);
}

.pergunta-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    font-family: var(--fontRoboto);
}

.pergunta-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--fontRoboto);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-saved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.pergunta-content {
    padding: 0 25px 25px 25px;
}

/* Botões de Resposta Sim/Não */
.resposta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-resposta {
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: var(--fontRoboto);
}

    .btn-resposta input[type="radio"] {
        display: none;
    }

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-resposta:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 54, 93, 0.15);
}

.btn-resposta.active {
    border-color: var(--primary);
    background: var(--primary);
}

    .btn-resposta.active .btn-content {
        color: white;
    }

/* Campo de Valor em Reais */
.valor-field {
    margin: 20px 0;
}

.valor-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

.money-input {
    position: relative;
    display: flex;
    align-items: center;
}

.money-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
    font-family: var(--fontRoboto);
}

.money-field {
    padding-left: 45px !important;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
}

/* Campo de Descrição */
.descricao-field {
    margin: 20px 0;
}

.descricao-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

.textarea-modern {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: var(--fontRoboto);
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

    .textarea-modern:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(21, 54, 93, 0.1);
    }

.char-counter {
    display: block;
    text-align: right;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--fontRoboto);
}

/* Seção de Salvamento */
.save-section {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-salvar {
    min-width: 200px;
}

.save-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #166534;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

    .save-success i {
        font-size: 16px;
    }

/* Destaque para perguntas de valor */
.pergunta-card:has(.valor-field) {
    border-left-color: #059669;
}

    .pergunta-card:has(.valor-field) .numero-badge {
        background: #059669;
    }

/* Responsive */
@media (max-width: 768px) {
    .pergunta-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .pergunta-status {
        align-self: flex-start;
    }

    .pergunta-content {
        padding: 0 20px 20px 20px;
    }

    .resposta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-resposta {
        max-width: none;
    }

    .save-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-salvar {
        width: 100%;
        min-width: auto;
    }

    .numero-badge {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .pergunta-title {
        font-size: 15px;
    }
}

/* Animações */
.pergunta-card {
    animation: slideInUp 0.6s ease-out;
}

    .pergunta-card:nth-child(even) {
        animation-delay: 0.1s;
    }

    .pergunta-card:nth-child(odd) {
        animation-delay: 0.2s;
    }

    /* Estados especiais */
    .pergunta-card:has(.status-saved) {
        border-left-color: #22c55e;
    }

    .pergunta-card:has(.status-pending) {
        border-left-color: #f59e0b;
    }

/* CSS adicional para corrigir a escola - Adicione isso ao final do seu estilo.css existente */

/* Grid responsivo melhorado para quando nome do curso não aparece */
.form-group.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.form-group.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.form-group.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.form-group.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

/* Ajustes para telefones de escola */
#telefoneEscola {
    font-family: var(--fontRoboto);
}

/* Melhorar exibição do nome do curso/instituição na tabela */
.escola-header strong {
    word-break: break-word;
    line-height: 1.3;
}

/* Indicador visual para nível médio */
.escola-card:has(.nivel-badge.badge-primary) {
    border-left-color: #3b82f6;
}

/* Ajuste para campos condicionais */
.form-group[ng-if] {
    transition: all 0.3s ease;
}

/* Responsivo */
@media (max-width: 768px) {
    .form-group.col-md-3,
    .form-group.col-md-4,
    .form-group.col-md-5,
    .form-group.col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .escola-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Estados de loading melhorados */
.btn-modern-primary.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

    .btn-modern-primary.loading::after {
        content: '';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Melhorar contraste dos badges */
.badge-primary {
    background: #3b82f6 !important;
    color: white !important;
}

.badge-success {
    background: #10b981 !important;
    color: white !important;
}

.badge-info {
    background: #06b6d4 !important;
    color: white !important;
}

.badge-warning {
    background: #f59e0b !important;
    color: white !important;
}

.badge-purple {
    background: #8b5cf6 !important;
    color: white !important;
}

.badge-dark {
    background: #374151 !important;
    color: white !important;
}

/* Melhorar acessibilidade */
.table-badge {
    text-shadow: none;
    font-weight: 700;
}

/* Ajustes finais para campos obrigatórios */
.form-control[required] {
    border-left: 3px solid transparent;
}

    .form-control[required]:invalid {
        border-left-color: #f59e0b;
    }

    .form-control[required]:valid {
        border-left-color: #10b981;
    }


/* CSS Adicional para Família e Comprovante - Adicione ao final do seu estilo.css */

/* ===== ESTILOS PARA PÁGINA DE FAMÍLIA ===== */
.familia-card {
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    padding: 18px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .familia-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.familia-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

    .familia-header strong {
        font-size: 16px;
        color: var(--primary);
        font-family: var(--fontRoboto);
        word-break: break-word;
        line-height: 1.3;
    }

.familia-details {
    font-family: var(--fontRoboto);
}

/* ===== ESTILOS PARA PÁGINA DE COMPROVANTE ===== */
.declaracao-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

    .declaracao-card:hover {
        box-shadow: var(--shadow-md);
    }

.declaracao-content {
    padding: 25px;
}

.declaracao-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--fontRoboto);
}

.declaracao-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

.gerar-comprovante-section {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

.btn-gerar-comprovante {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    font-family: var(--fontRoboto);
}

    .btn-gerar-comprovante:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

    .btn-gerar-comprovante:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.comprovante-data,
.comprovante-numero {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fontRoboto);
    color: var(--primary);
}

.version-badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--fontRoboto);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: var(--fontRoboto);
    justify-content: center;
    min-width: 120px;
}

    .btn-download:hover {
        background: #2563eb;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.finalizacao-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
    background: #dcfce7;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 1px solid #bbf7d0;
}

    .finalizacao-info i {
        font-size: 18px;
    }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    /* Família */
    .familia-card {
        padding: 12px;
    }

    .familia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Comprovante */
    .declaracao-content {
        padding: 20px;
    }

    .declaracao-title {
        font-size: 16px;
    }

    .btn-gerar-comprovante {
        width: 100%;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .comprovante-data,
    .comprovante-numero {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .finalizacao-info {
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .declaracao-content {
        padding: 15px;
    }

    .gerar-comprovante-section {
        padding: 20px 0;
    }

    .btn-download {
        min-width: auto;
        width: 100%;
    }
}

/* ===== MELHORIAS GERAIS ===== */
.table-modern tbody tr:hover .btn-download {
    transform: scale(1.05);
}

.declaracao-card:last-child {
    margin-bottom: 0;
}

/* Melhorar contraste dos badges na família */
.familia-card .badge-success {
    background: #10b981 !important;
}

.familia-card .badge-secondary {
    background: #6b7280 !important;
}

/* Loading state para o botão de gerar comprovante */
.btn-gerar-comprovante.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

    .btn-gerar-comprovante.loading::after {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Validação visual para campos obrigatórios da família */
.familia-card:has(.form-control:invalid) {
    border-left-color: #ef4444;
}

.familia-card:has(.form-control:valid) {
    border-left-color: #10b981;
}


/* CSS Adicional para Família e Comprovante - Adicione ao final do seu estilo.css */

/* ===== ESTILOS PARA PÁGINA DE FAMÍLIA ===== */
.familia-card {
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    padding: 18px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .familia-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.familia-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

    .familia-header strong {
        font-size: 16px;
        color: var(--primary);
        font-family: var(--fontRoboto);
        word-break: break-word;
        line-height: 1.3;
    }

.familia-details {
    font-family: var(--fontRoboto);
}

/* ===== ESTILOS PARA PÁGINA DE COMPROVANTE ===== */
.declaracao-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

    .declaracao-card:hover {
        box-shadow: var(--shadow-md);
    }

.declaracao-content {
    padding: 25px;
}

.declaracao-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--fontRoboto);
}

.declaracao-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    font-family: var(--fontRoboto);
}

.gerar-comprovante-section {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

.btn-gerar-comprovante {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    font-family: var(--fontRoboto);
}

    .btn-gerar-comprovante:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

    .btn-gerar-comprovante:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.comprovante-data,
.comprovante-numero {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fontRoboto);
    color: var(--primary);
}

.version-badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--fontRoboto);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: var(--fontRoboto);
    justify-content: center;
    min-width: 120px;
}

    .btn-download:hover {
        background: #2563eb;
        color: white;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.finalizacao-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--fontRoboto);
    background: #dcfce7;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 1px solid #bbf7d0;
}

    .finalizacao-info i {
        font-size: 18px;
    }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    /* Família */
    .familia-card {
        padding: 12px;
    }

    .familia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Comprovante */
    .declaracao-content {
        padding: 20px;
    }

    .declaracao-title {
        font-size: 16px;
    }

    .btn-gerar-comprovante {
        width: 100%;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .comprovante-data,
    .comprovante-numero {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .finalizacao-info {
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .declaracao-content {
        padding: 15px;
    }

    .gerar-comprovante-section {
        padding: 20px 0;
    }

    .btn-download {
        min-width: auto;
        width: 100%;
    }
}

/* ===== MELHORIAS GERAIS ===== */
.table-modern tbody tr:hover .btn-download {
    transform: scale(1.05);
}

.declaracao-card:last-child {
    margin-bottom: 0;
}

/* Melhorar contraste dos badges na família */
.familia-card .badge-success {
    background: #10b981 !important;
}

.familia-card .badge-secondary {
    background: #6b7280 !important;
}

/* Loading state para o botão de gerar comprovante */
.btn-gerar-comprovante.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

    .btn-gerar-comprovante.loading::after {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Validação visual para campos obrigatórios da família */
.familia-card:has(.form-control:invalid) {
    border-left-color: #ef4444;
}

.familia-card:has(.form-control:valid) {
    border-left-color: #10b981;
}

/* Estilos para o Header com Botão Sair - Adicionar ao final do estilo.css */

.topo {
    position: relative;
    padding: 0 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

.logo-cebraspe {
    height: 40px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-sair {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn-sair:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-sair i {
    font-size: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }
    
    .btn-sair-text {
        display: none;
    }
    
    .btn-sair {
        padding: 8px 12px;
        min-width: 44px;
        justify-content: center;
    }
    
    .logo-cebraspe {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 5px;
    }
    
    .btn-sair {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-sair i {
        font-size: 14px;
    }
}

/* Corrigir loader infinito */
.loaderbg {
    display: none !important;
}