/* CSS Variables for enhanced styling */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --primary-color: #4d1b4b;
    --primary-color-hover: #6a2a6a;
    --primary-color-light: #f0e6f0;
    --border-color: #e9ecef;
    --empower-blue: #007bff;
    --soft-gray: #ffffff;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 30px rgba(0,0,0,0.25);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --border-color: #404040;
    }
}

/* Professional but enhanced background */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    min-height: 100vh;
}

.test-interface {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Make the test title professional but enhanced */
.popHdng {
    font-size: 42px !important;
    color: #4d1b4b !important;
    background: linear-gradient(135deg, #4d1b4b 0%, #6a2a6a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
    padding: 25px !important;
    border: 2px solid #4d1b4b !important;
    border-radius: 16px !important;
    margin: 30px 0 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(77, 27, 75, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.popHdng::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Make buttons professional but enhanced */
a.mbtns, .sBtns {
    background: linear-gradient(135deg, var(--empower-blue) 0%, #3a7bd5) !important;
    color: var(--soft-gray) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    border: 2px solid var(--empower-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

a.mbtns::before, .sBtns::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

a.mbtns:hover::before, .sBtns:hover::before {
    left: 100%;
}

a.mbtns:hover, .sBtns:hover {
    background: linear-gradient(135deg, #3a7bd5 0%, var(--empower-blue)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

a.mbtns:last-child {
    margin-bottom: 0;
}
input.sBtns {
    padding: 5px 10px;
    background: #4c1b4a !important;
    margin-right: 10px;
    border-radius: 5px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    min-width: 150px;
    border: 1px solid #dddddd;
    box-shadow: 0 0 10px #99999987;
    opacity: .8 !important;
	width: auto !important;
}
input.sBtns:hover{
	opacity: 1 !important;
}
a.mbtns.mbtns-st1 {
    background: var(--soft-gray) !important;
    color: var(--empower-blue) !important;
}
a.mbtns.mbtns-green {
    background: var(--growth-green) !important;
}
.mTolBox.txt-destaque {
    padding: 22px;
    margin: 10px 0;
}
.box-flx {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2%;
}
.box-flx .mTolBox {
    flex: 0 0 49%;
}
.featherlight header, .featherlight footer {
    display: none !important;
}
div#box_esqueci img {
    width: 100%;
    max-width: 200px;
    border: 2px solid #000000;
    display: block;
    margin: auto;
    margin-top: 30px;
}
header div#box_login a, #box_cadastro a, .featherlight-content #box_login a {
    text-decoration: none;
    margin: 0 10px 0 0;
    color: #53a3f2;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 6px;
    font-size: 16px;
}
header div#box_login a:hover, #box_cadastro a:hover, .featherlight-content #box_login a:hover{
	color:#000000;
}
.teste-bxdet ul {
    font-size: 20px;
    font-weight: 300;
    line-height: 30px;
}
.featherlight .featherlight-content {
    padding: 30px;
    border-bottom: 0;
}
.navbar-toggler {
    max-width: 60px;
}
button.featherlight-close-icon.featherlight-close {
    position: fixed;
    right: 0;
    top: 0;
    font-size: 40px;
    height: 50px;
    width: 50px;
    background: #ffffff;
    border-radius: 0;
}
.fillDts input[type="text"] {
    width: 60px !important;
    margin-right: 15px;
    border: 1px solid #eeeeee !important;
    min-width: auto !important;
    margin-bottom: 0 !important;
}
.fillDts {
    margin-bottom: 7px;
    background: #eeeeee;
    padding: 5px;
    border-bottom: 1px solid #dddddd;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.fillDts:after {
    content: "";
    display: block;
    clear: both;
}
#box_contrato > .fillDts:first-child{
    margin-top: 30px;
}
div#box_contrato {
    font-size: 20px;
}
.mpartList {
    display: flex;
    flex-flow: wrap;
}
.mpartList > div.mpListo {
    padding: 15px;
    /*
	border-bottom: 1px solid #dddddd;
    box-shadow: 0 2px 10px #dddddd;
	*/
    margin: 0 0 15px 0;
    font-size: 16px;
    border-radius: 5px;
    flex: 0 0 calc(33.33% - 30px);
    padding: 30px;
    text-align: center;
    margin: 15px;
    font-size: 20px;
    color: #4d1b4b;
    font-weight: 300;
	background:#f6f6f6;
}
div#box_participacoes a.mbtns.fullBtns {
    display: block;
    margin: 15px;
    margin-bottom: 60px;
    font-size: 17px;
    height: 48px;
    line-height: 2;
}
div#box_contratos {
    margin: 60px 0;
    background: rgb(235, 235, 235);
    padding: 30px;
}
.mpartList > div.mpListo > a {
    float: right;
    background: #4c1b4a;
    color: #ffffff;
    padding: 2px;
    display: block;
    border-radius: 5px;
    text-decoration: none !important;
    opacity: .8;
    background-color: var(--empower-blue) !important;
    color: var(--soft-gray) !important;
    font-size: 17px;
    border: none;
    border-radius: 5px;
    width: 185px;
    padding: 5px 0;
    text-align: center;
    display: block !important;
    float: none;
    margin-top: 20px !important;
    margin: auto;
}
.mpartList > div.mpListo > a:hover {
    opacity: 1;
}
a.contBt.btInvt {
    background: #0cab7c !important;
}
.mpartList > div.mpListo:after {
    content: "";
    display: block;
    clear: both;
}
div#lista_contratos .ui-accordion-header {
    /*background: #ffffff;*/
    text-align: left;
    border: 0;
    border-bottom: 1px solid #dddddd;
    border-radius: 0;
    margin-bottom: 0;
	margin-top: 10px;
    color: #000000;
    position: relative;
	padding: 18px 10px;
	font-size: 16px;
	padding-right: 50px;
}
div#lista_contratos .ui-accordion-header  span.ui-accordion-header-icon {
    display: none;
}
div#lista_contratos .ui-accordion-header:hover, div#lista_contratos .ui-accordion-header-active {
    background: #eeeeee;
	box-shadow: 0 0 20px #cccccc;
}
div#box_convites {
    background: #eeeeee;
    padding: 30px;
    margin-bottom: 60px;
}
.conWrpLst {
    padding: 15px;
    border-bottom: 1px solid #dddddd;
    box-shadow: 0 2px 10px #dddddd;
    margin: 0 0 15px 0;
    font-size: 16px;
    border-radius: 5px;
	background: #ffffff;
}
div#lista_contratos .ui-accordion-header:after {
    flex-shrink: 0;
    width: var(--bs-accordion-btn-icon-width);
    height: var(--bs-accordion-btn-icon-width);
    margin-left: auto;
    content: "";
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-size: var(--bs-accordion-btn-icon-width);
    transition: var(--bs-accordion-btn-icon-transition);
}
div#lista_contratos .ui-accordion-header:after{
    content: "";
    width: 15px;
    height: 15px;
    border-right: 1px solid #4c1b4a;
    border-bottom: 1px solid #4c1b4a;
    position: absolute;
    right: 20px;
    top: 15px;
    transform: rotate(45deg);
}
div#lista_contratos .ui-accordion-header.ui-state-active:after{
    transform: rotate(-135deg);
	top: 24px;
}
div#lista_contratos .ui-accordion-content {
    box-shadow: 0 10px 10px #dddddd;
    border: 0;
    margin: 0 0 18px 0;
}
div#lista_contratos {
    margin-bottom: 20px;
}
a.cartBtn {
    display: inline-block;
    border: 1px solid #dddddd;
    padding: 8px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    background: #f8f9fa;
    color: #0f3852;
    font-weight: 900;
    padding-left: 30px;
    position: relative;
}
a.cartBtn:hover {
    background: #ffffff;
}
a.cartBtn img {
    width: 20px;
    display: block;
    position: absolute;
    left: 3px;
    margin-top: 3px;
}
div#box_linkgenerico img {
    max-width: 200px;
    border: 2px solid #000000;
    margin: 0 0 15px 0px;
}
.featherlight-inner table {
    margin-bottom: 20px;
}
.featherlight-inner table tr td {
    padding: 8px;
    border: 1px solid #cccccc;
    font-size: 16px;
}
.featherlight-inner table tr td strong{
	font-size: 16px;
}
div#box_tempo,div#box_tempo h1 {
    text-align: center;
}
.popHdngSml {
    font-size: 24px;
    margin-bottom: 20px;
}
.for-rado > label {
    display: block;
    background: #e2e5e8;
    border: 3px solid #ffffff;
    cursor: pointer;
    border-radius: 10px;
    padding: 4px 15px 4px 25px;
}
.for-rado > input[type="radio"] {
    position: absolute;
    left: 10px;
    top: 12px;
}
.for-rado {
    display: inline-block;
    position: relative;
}
div#convidados input[type="text"], #div_mapeado input[type="text"], #teste_convida input[type="date"],
#contrato_delega input[type="date"], #contrato_delega textarea {
    border: 1px solid #dddddd;
    margin-right: 15px;
	margin-bottom: 5px;
}
div#box_contrato div#box_endereco > br ,div#box_contrato br {
    display: none;
}
.mTotl {
    font-size: 24px;
    background: #eeeeee;
    padding: 5px;
    margin-bottom: 20px;
    font-weight: 900;
    text-align: center;
}
.mbtns.wcolIn{
	background:#eeeeee !important;
}
table.gTbls, table.gTbls tr td, table.gTbls tbody {
    border: 0 !important;
    border-collapse: initial;
}
table.gTbls{
	margin:auto;
}
.featherlight-inner table tr td:before {
  display: none !important;
}
.featherlight-inner table tr {
  border:0;
}
/* Enhanced Loading and Error Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

.error-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.error-message p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    line-height: 1.6;
}

.error-message button {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.error-message button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
@media screen and  (max-width:992px){
	.mpartList > div.mpListo{
		flex: 0 0 calc(50% - 30px);
	}
}
@media screen and (max-width:768px){
	.box-flx .mTolBox {
    flex: 0 0 100%;
}
.mpartList > div.mpListo{
		flex: 0 0 100%;
		margin: 0 0 15px 0;
	}
.popHdng {
	font-size:30px;
}
.teste-bxdet ul {
    font-size: 18px;
}
}

/* Enhanced Test Interface Container */
#box_teste {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

#box_teste::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover), var(--empower-blue));
    border-radius: 20px 20px 0 0;
}

/* Enhanced test intro text */
#box_teste > div:not(.popHdng):not(.mbtns) {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Enhanced button container */
#box_teste .mbtns {
    display: block;
    margin: 2rem auto;
    text-align: center;
    max-width: 300px;
}

/* Enhanced Answer Options Styling */
#box_respostas {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

#box_respostas input[type="radio"] {
    display: none !important;
}

#box_respostas label {
    display: block;
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
    border-left: 4px solid var(--border-color);
    box-sizing: border-box;
}

#box_respostas label:hover {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

#box_respostas input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

#box_respostas br {
    display: none;
}
