  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg,#003a65 0%, #0073bc 100%);
    font-family: Arial, Helvetica, sans-serif;
    padding: 2vw;
    overflow-x: hidden;
}

.container {
    background: #00365f;
    border: 1px solid #0f2e4a;
    min-height: calc(100vh - 80px);
	padding-bottom: 15px;
	border-radius: 0.5em;
}

.top-banner {
    margin: 14px 14px 6px 14px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    border-radius: 4px;;
}

.logo-link {
    display: flex;
    align-items: center;
    max-height: 85%;
}

.logo-img {
    height: auto;
    max-height: 55px;
    width: auto;
    max-width: 100%;
}

p {
    line-height: 1.5;
}

ul {
	padding-inline-start: 1lh;
}

li {
    line-height: 1.5;
}

textarea {
    width: 100%;
    min-height: 9vw;
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #ffcc00;
    border-radius: 4px;
    font-size: 1rem;
    color: #888888;
    background-color: #ffffff;
	max-width: 100%;
}

textarea, select, table {
	margin-bottom: 30px;
}

a {
    color: #ffffff;
}

table {
    width: 100%;
}

th, td {
    border: 2px solid #fff;
}

table.find-information-table, table.find-information-table tr, table.find-information-table td {
	border: none;
	border-collapse: collapse;
}

table.find-information-table input {
	border: none;
}

table.find-information-table tr {
	border: 2px solid #ffcc00;
}

/*tbody tr {
	outline: 2px solid #ffcc00;
}*/

tbody tr:nth-child(even), tbody tr:nth-child(even) input[type="text"] {
        background-color: #e2eeec;
        color: #000;
}

tbody tr:nth-child(odd), tbody tr:nth-child(odd) input[type="text"] {
        background-color: #c2dbd9;
        color: #000;
}

thead tr th {
    background-color: #003358;
    color: #fff;
}

tbody td, th {
    padding: 16px;
}

.hidden-info {
    display: none;
}

.concept-table tbody td:first-child {
    background-color: #00a39b;
    color: white;
    font-weight: 600;
}

.find-information-table thead th {
    padding: 16px;
}

.find-information-table tbody td, .concept-table tbody td {
    padding: 0px;
}

.panel .sub-panel {
    background-color: #00a39b;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
}

input[type='checkbox'] {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 5px;
    border: 2px solid #555;
    margin: 5px;
    vertical-align: middle;
}

.concept-table tbody td:first-child input[type='text'] {
    background-color: #00a39b;
    color: #fff;
}

.concept-table tbody td:first-child input[type='text']::placeholder {
    color: #e8e8e8;
}

/* --- TRACKER BAR ARCHITECTURE --- */

.tracker-bar {
    margin: 0 14px 14px 14px;
    height: 45px;
    display: none; 
    justify-content: space-between;
    align-items: stretch;
    gap: 6px;
}

.tracker-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 4px 8px;
    color: #001b33;
    border-radius: 4px;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-color: #f4bc3f;
    cursor: pointer;
    user-select: none;
}

.tracker-item:hover {
	background-color: #051435;
	color: #fff;
}

.tracker-item.active {
    background-color: #00b8b0;
    color: #ffffff;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: #00bfb2;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    font-style: normal;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.2s ease, background-color 0.2s ease;
	border: 0;
}

.info-icon:hover {
    background-color: #009389;
    transform: scale(1.1);
}

/* --- NEW: TWIN PANEL COLUMN ARCHITECTURE --- */

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Keeps panels matching in height side-by-side */
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.panel {
    /*background-color: #0073bc;
    border: 2px solid #0a4167;*/
    border-radius: 12px; /* Smoothly rounded container borders */
    padding: 24px;
    color: #ffffff;
}

.panel h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

.panel p, #video-lightbox p {
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 10px 0px 10px 0px;
}

/* Width allocations (combining flex percentages to total 100% minus the layout gap) */
.panel-sidebar {
    width: 33.333%; /* Around 1/3 layout capacity */
}

.panel-main {
    flex: 2 2 66.666%;
    min-width: 0;
    display: flex;
    flex-direction: column; /* Around 2/3 layout capacity */
}

/* Video */

.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.video-lightbox iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-lightbox-content a {
	color: #000;
	text-decoration: underline;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.video-lightbox.info-mode .video-lightbox-content {
    width: min(700px, 90%);
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
}

#info-lightbox-content {
    background: #fff;
    color: #333;
    padding: 30px 35px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    line-height: 1.5;
}

#info-lightbox-content td {
	padding: 5px;
}

.questions-summary-box {
    margin-bottom: 15px; 
    padding: 12px; 
    border-left: 4px solid #00bfb2; 
    display: none;
    background-color: #0f2e4a;
}

.panel-main .question-label {
	display: flex;
    align-items: center;
    gap: 8px;
}

#search-string {
	margin-bottom: 15px; 
    padding: 12px; 
    border-left: 4px solid #00bfb2;
    background-color: #0f2e4a;
}

.hack-suggestion {
    margin-bottom: 15px;
	margin-top: 15px;
    padding: 12px; 
    border-left: 4px solid #00bfb2; 
    background-color: #0f2e4a;
	color: #fff;
}

#summary-content p {
	margin-bottom: 15px;
	margin-top: 15px;
}

#summary-content a {
	color: #000;
}

#summary-content p.hack-suggestion a {
	color: #fff;
}

/* --- SCALABLE SLIDER STATE CONTROLS --- */

.step-window {
    position: relative;
    width: 100%;
    overflow: hidden;
	min-height: 81vh;
    display: flex;
    flex-direction: column;
}

.step {
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0;
    position: absolute;
    transform: translateX(100%);
    pointer-events: none;
}

.step.active {
    position: relative; 
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.step.exit-left {
    position: absolute;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* --- CONTENT AND TYPOGRAPHY --- */

.content {
    padding: 10px 60px 20px;
    color: white;
}

h1 {
    text-align: center;
    font-size: 3rem;
    margin: 20px 0 35px;
    font-weight: 700;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.4;
}

.intro-text p {
    margin-bottom: 26px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 1.9vh 2vw 1.9vh 2vw;
    border-radius: 50px;
    color: #001b33;
    min-width: 18vmin;
    text-align: center;
    cursor: pointer;
    border: none;
	transition: background-color 0.4s ease, color 0.4s ease;
}

.summary-actions .btn, .summary-card .btn {
    min-width: 10px;
}

/*.btn:hover {
    opacity: 0.9;
}*/

.btn-blue {
    background: #0073bc;
	color: #fff;
}

.btn-blue:hover {
	background: #051435;
}

.btn-green {
    background: #00b8b0;
	color: #fff;
}

.btn-red {
    background: #d50000;
	color: #fff;
}

.btn-yellow {
    background: #f4bc3f;
    margin-left: auto;
}

.btn-yellow:hover {
    background: #051435;
	color: #fff;
}

.button-row .prev-btn {
    margin-left: 0;
}



footer {
    text-align: right;
    color: white;
    font-size: 0.95rem;
    padding-top: 18px;
    padding-right: 20px;
	margin-top: auto;
	border-top: 6px #FF0004 solid;
}

/* Boolean table */

.search-builder {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.row-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.operator-and {
    width: 50px;
    font-weight: bold;
    text-align: right;
}
.group-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}
.parenthesis {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
}
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}
.operator-or {
    font-weight: bold;
}
input[type="text"] {
    flex-grow: 1;
    width: 100%;
    padding: 10px;
    border: 2px solid #ffcc00;
    font-size: 1rem;
    color: #888888;
    background-color: #ffffff;
}

/* Summary Overlay Styling */
.summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.summary-card {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00bfb2;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-section h3 {
    color: #00bfb2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
	margin-bottom: 20px;
}

.summary-table th, .summary-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

#summary-overlay input[type="text"] {
	margin-bottom: 4px;
	border: 1px #000000 solid;
	color: #1F1F1F;
}

/*.summary-table th {
    background-color: #f4f4f4;
}*/

/* Print Optimization */
@media print {
	
	* {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
       /* visibility: hidden !important;*/
    }
	
	body {
		background-color: #fff;
		background: none;
		padding: 0;
	}
	
	.top-banner {
		visibility: visible;
		padding-top: 10px;
		-webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
	}
	
	.container {
		border: none;
		border-radius: 0px;
	}

    #summary-overlay,
    #summary-overlay * {
        visibility: visible !important;
    }

    #summary-overlay {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .summary-card {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        box-shadow: none !important;
        padding: 30px !important;
        margin: 0 !important;
		border: none;
		border-radius: 0px;
    }

    .summary-actions {
        display: none !important;
    }

    * {
        overflow: visible !important;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .top-banner {
        height: 65px;
        padding-left: 12px;
        margin: 10px 10px 6px 10px;
    }
    
    .logo-img {
        max-height: 42px;
    }

    .tracker-bar {
        margin: 0 10px 10px 10px;
        height: auto;
        flex-direction: column;
        gap: 4px;
    }

    /* Fallback mobile design: stacks panels vertically on small screens */
    .panel-row {
        flex-direction: column;
        gap: 14px;
    }

    .panel-sidebar, 
    .panel-main {
        width: 100%;
    }

    .content {
        padding: 20px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .button-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }

    .btn-yellow {
        margin-left: 0;
    }
}