/* Final CSS with deep navy theme, responsiveness, and clean UI */
/* ===== Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    padding: 20px;
}

h2,
h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== Reusable Card Style ===== */
/*.card {*/
/*    background: #fff;*/
/*    padding: 30px 40px;*/
/*    border-radius: 10px;*/
/*    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);*/
/*    max-width: 600px;*/
/*    margin: 40px auto;*/
/*    text-align: center;*/
/*}*/
.card {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    margin: 40px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* ===== Navigation (Top Right) ===== */
nav {
    text-align: right;
    margin-bottom: 20px;
}

nav a,
nav button {
    text-decoration: none;
    margin-left: 10px;
    padding: 10px 20px;
    background: rgba(1, 22, 62, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

nav a:hover,
nav button:hover {
    background: rgba(1, 22, 62, 1);
}

/* ===== Login Specific ===== */
.login-container input[type="text"],
.login-container input[type="password"],
.login-container button {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-container button {
    background-color: rgba(1, 22, 62, 0.9);
}

.login-container button:hover {
    background-color: rgba(1, 22, 62, 1);
}

.login-error {
    background: #ffdddd;
    color: #d8000c;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* ===== Form & Result Specific ===== */
form input[type="text"],
form input[type="number"],
form input[type="password"],
input[type="month"],
select#currency,
form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

form button {
    background-color: rgba(1, 22, 62, 0.9);
    color: #fff;
}

form button:hover {
    background-color: rgba(1, 22, 62, 1);
}

.summary-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.summary-list li {
    background: #f8f9fa;
    margin-bottom: 10px;
    padding: 10px;
    border-left: 5px solid rgba(1, 22, 62, 0.9);
    border-radius: 4px;
}

canvas {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

/*button.bt-sm{*/
/*    width: 50%;*/
/*    padding: 12px;*/
/*    margin-bottom: 20px;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 6px;*/
/*    font-size: 14px;*/
/*    background-color: rgba(1, 22, 62, 0.9);*/
/*    color: #fff;*/
/*}*/
button.bt-sm {
    width: 50%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: rgba(1, 22, 62, 0.9);
    color: #fff;
    margin: 7px auto;
}

/* ===== Mobile Responsive Design ===== */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 20px;
        margin: 20px auto;
        width: 90%;
    }

    nav {
        text-align: center;
        margin-bottom: 20px;
    }

    nav a,
    nav button {
        display: inline-block;
        margin: 5px 5px;
    }
}

.error-message {
    margin: -14px 0 4px 0;
    color: red;
    font-size: 0.9em;
    text-align: left;
    padding-bottom: 13px;
}

/* Remove unnecessary padding, borders, and make it look like a regular select */
.select2-container--default .select2-selection--single {
    padding-top: 6px !important;
    height: 42px !important;
    border-radius: 6px !important;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* When a selection is made, display the currency symbol/code properly */
.select2-container--default .select2-selection__rendered {
    line-height: 30px;
    /* Align the selected item vertically */
    color: #333;
    /* Dark text for selected item */
}

/* Style the dropdown list */
.select2-container .select2-dropdown {
    padding: 8px;
    font-size: 14px;
    max-height: 300px;
    /* Optional: control dropdown height */
    overflow-y: auto;
    /* Add scroll if the dropdown list is too long */
}

/* Remove unnecessary margins */
.currency-select {
    margin: 0;
}

/* Adjust the margin for the Select2 container */
.select2-container {
    margin-bottom: 15px !important;
    /* Add space below the dropdown */
}

/* Remove border-radius and style to look like regular select */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-size: 14px !important;
    color: #838181 !important;
}

/* Ensure no extra padding or margins inside the Select2 component */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 10px;
    /* Optional: padding for text alignment */
}

.select2-container .select2-dropdown {
    border-radius: 0;
    /* Remove the rounded corners from the dropdown */
    border: 1px solid #ccc;
    /* Border around the dropdown */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    position: absolute !important;
}


.select2-container--default .select2-selection--single {
    padding-top: 6px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.select2-container--default .select2-selection__rendered {
    line-height: 30px;
    color: #333;
}

.select2-container .select2-dropdown {
    padding: 8px;
    font-size: 14px;
    max-height: 300px;
    overflow-y: auto;
}

.currency-select {
    margin: 0;
}

.select2-container {
    margin-bottom: 15px !important;
}


.select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-size: 14px !important;
    color: #838181 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 10px;
}

.select2-container .select2-dropdown {
    border-radius: 0;
    border: 1px solid #ccc;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    position: absolute !important;
}

/* Intermission Cards Styling */
.intermission-container {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    z-index: 100;
    width: 100%;
}

.intermission-card {
    flex: 0 0 300px;
    padding: 40px 30px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    text-align: center;
    transition: all 0.3s ease;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.intermission-card:hover .icon-container img {
    transform: translateY(-5px);
}

.intermission-card.negative {
    background-color: #ff3b30;
}

.intermission-card.positive {
    background-color: #34c759;
}

.intermission-card h1 {
    font-size: 1.3em;
    font-weight: 200;
    margin: 40px 0 15px 0;
    line-height: 1.5;
    text-align: left;
}

.intermission-card p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-align: left;
}

.icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
    .intermission-container {
        display: none;
    }
}

@media print {
    .intermission-container {
        display: none;
    }
}

@media print {

    button,
    .btn,
    .button,
    .no-print {
        display: none !important;
    }

    .card {
        padding: 20mm;
        margin: 0;
        box-shadow: none;
    }

    .page-break {
        margin-top: 10mm;
        margin-bottom: 10mm;
        page-break-before: always;
        break-before: page;
    }

    canvas {
        margin: 10mm auto;
        page-break-inside: avoid;
    }

    .summary-list {
        margin-bottom: 10mm;
    }
}

.page-break {
    page-break-before: always;
    /* for printing */
    break-before: page;
    /* modern */
}
.intermission-card::after {
    content: '';
    display: block;
    width: 140%;
    height: 0;
    padding-bottom: 100%;
    background-color: rgb(230 230 230 / 21%);
    position: absolute;
    top: -26%;
    left: -65px;
    border-radius: 89%;
}

.intermission-card {
    position: relative;
    overflow: hidden;
}


/* ===== Meta viewport ===== */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0"> */



@media (max-width: 1440px) {
    .intermission-card {
        flex: 0 0 270px;
    }

    .intermission-card::after {
        top: -20%;
    }
}
