body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    min-height: 100vh;
}

.template-main {
    background-image: url(../images/email-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
}
.container {
    /* width: 100%; */
    max-width: 800px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    margin: 0 auto;
}
.logo {
    margin-bottom: 20px;
}
.logo img {
    max-height: 50px;
}
h1 {
    margin-bottom: 10px;
    color: #222;
}
p.description {
    margin-bottom: 25px;
    color: #555;
}
.form-sec {
    margin-bottom: 15px;
    text-align: left;
}
label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

/* Enhanced Form Field Styling */
.form-control {
    /* width: 100%; */
    width: 90%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.25s ease-in-out;
    background-color: #fafbff;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.form-control:hover {
    border-color: #a4c4ff;
    background-color: #f5f9ff;
    box-shadow: 0 0 4px rgba(31,105,218,0.15);
}
.form-control:focus {
    border-color: #1f69da;
    box-shadow: 0 0 6px rgba(31,105,218,0.3);
    outline: none;
    background-color: #fff;
}

.row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.col-md-6 {
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
}
.col-md-4 {
    flex: 1 1 calc(33.33% - 15px);
    min-width: 150px;
}
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.15s ease;
}
.btn-primary {
    background-color: #1f69da;
    color: #fff;
}
.btn-primary:hover:not(:disabled) {
    background-color: #1552a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21,82,165,0.3);
}
.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.crs-report-btn-sec {
    margin-top: 20px;
}
.crs-report-btn {
    display: inline-block;
    width: 340px;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.15s ease;
    background-color: #1f69da;
    color: #fff;
    text-decoration: none;
    text-align: center;
}
.start-evaluation-btn{
    width: 720px;
}
.crs-report-btn:hover {
    background-color: #1552a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21,82,165,0.3);
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}
.toast.success {
    border-left: 4px solid #28a745;
}
.toast.error {
    border-left: 4px solid #dc3545;
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.toast .toast-body {
    font-size: 14px;
    color: #333;
}
.error {
    color: #dc3545;
    font-weight: bold;
}

/* Editable List Styling */
.editable-list {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}
.editable-list li {
    background: #f9fbfd;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: text;
    transition: all 0.25s ease;
    min-height: 20px;
}
.editable-list li:hover {
    background: #f1f6ff;
    border-color: #b8d0ff;
}
.editable-list li:focus {
    outline: none;
    background: #eaf2ff;
    border-color: #1f69da;
    box-shadow: 0 0 6px rgba(31,105,218,0.3);
}
.input-with-dollar {
    position: relative;
}

.input-with-dollar::before {
    content: "$";
    position: absolute;
    left: 10px;
    top: 67%;
    transform: translateY(-50%);
    color: #555;
    font-size: 14px;
}

.input-with-dollar input {
    padding-left: 20px; /* Adds space for the dollar sign */
}

.region-geo-section, .platform-medium-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.region-geo-header, .platform-medium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.region-geo-header label, .platform-medium-header label {
    margin: 0;
    font-weight: 600;
}

.toggle-btn {
    background-color: #1f69da;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

.toggle-btn.collapsed {
    background-color: #6c757d;
}

.toggle-btn.collapsed:hover {
    background-color: #5a6268;
}

.editable-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.editable-list.show {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.region-item, .platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.region-item:hover, .platform-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.region-item-text, .platform-item-text {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.region-item.disabled-item, .platform-item.disabled-item {
    opacity: 0.6;
    background-color: #f0f0f0;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* Slider Styles */
.region-slider-container, .platform-slider-container {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 10px;
}

.region-slider, .platform-slider {
    flex: 1;
    margin-right: 10px;
}

.region-percentage, .platform-percentage {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* Manual Entry Styles */
.manual-entry {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.manual-entry input {
    margin-right: 10px;
}

.manual-entry button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.manual-entry button:hover {
    background-color: #218838;
}

.manual-entry button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .crs-report-btn {
        width: 280px;
    }

    .start-evaluation-btn{
        width: 620px;
    }

}

@media (max-width: 576px) {
    .crs-report-btn {
        width: 240px;
    }

    .start-evaluation-btn{
        width: 580px;
    }

}

.footer-button-campaign-report {
    box-sizing: border-box;
    position: sticky;
    bottom: 0;
    padding-bottom: 16px;
    margin: 0 -30px -30px;
    background: white;
    border-radius: 0px 0px 12px 12px;
    margin-top: 20px;
    border-top: 1px solid #80808040;
}
.cstm-row-btn {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 26px 0;
    gap: 10px;
}

.cstm-row-btn .custom-box-first-wrp {
    display: flex;
    flex: 0 0 auto;
    width: calc(33.33333333% - 10px);
    flex-direction: column;
    gap: 10px;
}

.cstm-row-btn .custom-box-first-wrp .crs-report-btn-sec {
    width: 100%;
    margin: 0;
}

.cstm-row-btn .custom-box-first-wrp .crs-report-btn-sec a.crs-report-btn {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.cstm-row-btn .main-box-wrp {
    width: 33.333%;
    display: flex;
    justify-content: center;
}

.cstm-row-btn .main-box-wrp .crs-report-btn-sec {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cstm-row-btn .main-box-wrp .crs-report-btn-sec a.crs-report-btn.start-evaluation-btn {
    width: 100%;
}

@media(max-width:767px){
    .cstm-row-btn .custom-box-first-wrp, .cstm-row-btn .main-box-wrp {
        width: 100%;
    }

    .cstm-row-btn .custom-box-first-wrp {
        flex-direction: row;
    }
    .manual-entry {
        flex-wrap: wrap;
    }

    .manual-entry input#manual-platform-name {
        width: 100% !important; 
        margin-right:0 !important;
        margin-bottom: 10px !important;
    }

}
@media(max-width:380px){
    .cstm-row-btn{
        padding: 10px 12px 0;
    }
}

.beta-badge {
    margin-left: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1F69DA;
    padding: 2px 6px;
    border-radius: 6px;
    background-color: rgba(31, 105, 218, 0.10);
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.4px;
    vertical-align: super;
}

/* Hide print header by default on screen */
.print-header {
    display: none;
}

@media print {
        /* Hide the entire footer button container */
        .footer-button-campaign-report,
        .cstm-row-btn,
        .custom-box-first-wrp,
        .main-box-wrp {
            display: none !important;
        }

        /* Hide the feedback section if it exists on this page */
        .temp-feedback,
        #openFeedbackModal {
            display: none !important;
        }

        /* Prevent the loader from appearing in the print/PDF capture */
        #loaderOverlay {
            display: none !important;
        }

        /* Ensure the main content uses the full page width */
        .container {
            width: 100% !important;
            max-width: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }
    }