.resultwrwpper {
    background: #eef;
    border-radius: 6px;
}

.innerwrapper {

    border-radius: 10px;
}

.p10 {
    padding: 10px;
}

/* test */
.search {
    width: 100%;
    position: relative;
    display: flex;
    gap: 10px;
}

.searchTerm {
    width: 100%;
    border: 1px solid royalblue;
    padding: 15px;
    border-radius: 5px;
    outline: none;
    color: #9DBFAF;
}

.searchTerm:focus {
    color: #00B4CC;
}

.addimage{
    max-width: 100%;
    height: auto;
    max-height: 350px;
}

/* .searchButton:hover {
  border: 1px solid #017989;
  background: #017989;
  text-align: center;
  color: #ffffff;
}

.searchButton {
  min-width: 150px;
  height: 36px;
  border: 1px solid #00B4CC;
  background: #00B4CC;
  text-align: center;
  color: #423c3c;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
} */

/*Resize the wrap to see the search bar change!*/


.innerwrapper table tr {
    text-align: center !important;
    border-bottom: 1px solid #dbdbdb;
    font-size: 16px;
}

.formwrapper h2 {
    margin-top: 0;
    font-weight: 600;
}

.formwrapper {
    padding: 40px !important;
    FONT-VARIANT: JIS83;
    box-shadow: 0 0 6px #dddddd;
    border-radius: 25px;
}

.twenty-one {
    background: blue;
    color: #fff;
    border: 1px solid royalblue;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    transition: color 400ms;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 20px;
    max-width: 150px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.twenty-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: royalblue;
    z-index: -1;
    transition: transform 400ms ease-out;
    transform: scaleX(0);
    transform-origin: left;
}

.twenty-one:hover::before {
    transform: scaleX(1);
}

.twenty-one:hover {
    color: #fff;
}


/* Basic styles for the popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    /* Ensures the popup content is centered */
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    z-index: 1000;
    max-width: 100% !important;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    /* Padding inside the content box */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 700px;
    max-width: 90%;
    box-sizing: border-box;
    /* Include padding in the width calculation */
    max-height: 95vh;
    overflow-y: auto;

}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-button:hover {
    color: #555;
}

/* Styles for the result within the popup */
.resultwrapper {
    /* This div holds the h3 and ul. Its width will be 100% of popup-content (minus padding). */
    width: 100%;
    /* No need for text-align: center here if it's on popup-content, or use it here instead. */
    /* Let's be explicit and apply it to popup-content for all its immediate text/inline children. */
}

.resultwrapper .innerwrapper {
    width: 100%;
    font-size: 16px;
}


.resultwrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 30px;
}

.resultwrapper ul li.item-wrwpper {
    border-left: 3px solid #00b4cc;
    padding: 15px !important;
    box-shadow: inset 0px 0px 10px #e3e3e3;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 15px;
    ;
}

li.item-wrwpper li span {
    color: #017989;
}

.resultwrapper strong {
    color: #333;
}

.p10 {
    padding: 10px;
}


.adds {
    margin-top: 10px;
    border: 1px solid #e1e1e1;
    padding: 5px;
    display: flex;
    justify-content: space-around;
}




/* Page template */
/* General Body and Page Wrapper Styles */
.bodywraper {
    width: 100%;
    background: url(../img/home-top-bg.webp);
    padding: 180px 60px;
    max-height: fit-content;
    background-size: cover;
}

.mail-server-health-page-wrapper {
    width: 100%;
    max-width: 800px;
    /* Adjust as needed */
    padding: 30px;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid rgba(153, 179, 255, .1);
    background: rgba(10, 20, 51, .7);
    -webkit-box-shadow: 0 11px 55px 0 rgba(0, 64, 255, .6);
    box-shadow: 0 11px 55px 0 rgba(0, 64, 255, .6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

div#dns-results h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
}

div#dns-results h3 span {
    color: orange;
}

/* Domain Check Container */
.domain-check-container {
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent background */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.5), 0 0 60px rgba(0, 100, 255, 0.3);
    /* Blue glow effect */
    text-align: center;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.form-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

/* Domain Input Form */
.domain-input-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: auto;
    flex-wrap: nowrap;
    border: 1px solid #fff;
    width: 100%;
    max-width: 614px;
    border-radius: 9px;
    padding: 4px;
}

.domain-input-field {
    height: 47px !important;
    background: transparent !important;
    border: none !important;
}

.domain-input-field {
    flex-grow: 1;
    max-width: 500px;
    /* Limit input width */
    padding: 15px 20px;
    border: 1px solid rgba(0, 150, 255, 0.5);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.domain-input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.domain-input-field:focus {
    border-color: #00c8ff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.7);
}

.scan-domain-button {
    padding: 15px 50px;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    color: #1b2c74;
}

.scan-domain-button:hover {
    background-color: #0056b3;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
}

/* Result Box Styling */


.back-link-container {
    margin-bottom: 25px;
}

.back-to-scan {
    color: #00c8ff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.back-to-scan:hover {
    color: #00e0ff;
    text-decoration: underline;
}

.risk-assessment-summary {
    background-color: rgba(255, 165, 0, 0.2);
    /* Orange transparent background */
    border: 1px solid #ffa500;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.risk-assessment-summary strong {
    color: #fff;
    font-size: 1.1em;
}

.risk-level-medium {
    color: #ffd700;
    /* Gold/yellow color for Medium */
    font-weight: bold;
}

.risk-description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    line-height: 1.5;
}

.overall-result-section {
    margin-top: 30px;
}

.overall-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.overall-result-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}

.dmarc-policy-status {
    font-size: 1em;
    color: #fff;
}

.dmarc-policy-status strong {
    font-weight: normal;
}

.status-missing {
    color: #ff4500;
    /* Red-orange for Missing */
    font-weight: bold;
}

/* Security Details Grid */
.security-details-grid {
    display: flex;
    gap: 25px;
    align-items: start;
    /* Align items to the top */
}

@media (max-width: 768px) {
    .security-details-grid {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }
}


/* Score Display - This is the most complex part to replicate visually */
.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    /* Ensure space for the circle */
    position: relative;
    /* For absolute positioning of score circle */
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    /* Very light background for the circle */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3.5em;
    font-weight: bold;
    color: #00c8ff;
    /* Blue for the score */
    border: 8px solid rgba(0, 150, 255, 0.3);
    /* Light blue border */
    position: relative;
    overflow: hidden;
    /* Hide overflow for the pseudo-element */
}

/* Pseudo-element for the "progress bar" effect in the circle */
/* .score-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* This is a placeholder for the actual conic-gradient/border animation */
/* For a score of 5/10, it's 50%. You'd calculate this dynamically with JS */
/*  background: conic-gradient(
        #ffd700 0% 50%, /* Yellow/orange for progress */
/*   transparent 50% 100% /* Transparent for the rest */
/*);
    transform: rotate(-90deg); /* Start from the top */
/* z-index: 1; /* Below the text */
/*}
 */
.score-circle .score-value {
    position: relative;
    z-index: 2;
    /* Above the pseudo-element */
    line-height: 1;
    /* Adjust line height for better vertical centering */
}

.score-circle .score-max {
    font-size: 0.4em;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
    margin-top: -10px;
    /* Adjust spacing */
}

/* Individual Security Check Items */
.security-check-item {
    background-color: rgb(251 251 251 / 10%);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 100, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align text to the left */
    margin-bottom: 15px;
    color: #fff;
}

.column p {
    word-break: break-word;
}

.security-check-item h4 {
    color: #ffa500;
    font-size: 16px;
    margin-bottom: 10px;
}

.security-check-item p {
    margin-bottom: 0;
}

.row {
   
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

div#ip-info {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.column {
    float: left;
}

.left {
    width: 25%;
}

.right {
    width: 75%;
}

.column.right p {
    word-break: break-all;
    max-height: 80px;
    overflow-y: auto;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

.security-check-item ul {
    margin: 0;
    list-style: none;
}

.check-title {
    font-size: 1.3em;
    color: #00e0ff;
    /* Light blue for titles */
    margin-bottom: 5px;
}

.check-description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}


/* Result Actions Buttons */
.result-actions {
    display: flex;
    justify-content: flex-start;
    /* Align buttons to the left */
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.see-details-button,
.start-dmarc-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.see-details-button {
    background-color: #007bff;
    /* Primary blue */
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.see-details-button:hover {
    background-color: #0056b3;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
}

.start-dmarc-button {
    background-color: #333;
    /* Darker background */
    color: #00e0ff;
    /* Light blue text */
    border: 1px solid #00c8ff;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.start-dmarc-button:hover {
    background-color: #444;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .domain-input-form {
        flex-direction: column;
        align-items: center;
    }

    .domain-input-field {
        width: 100%;
        max-width: 400px;
    }

    .scan-domain-button {
        width: 100%;
        max-width: 400px;
    }

    .form-title {
        font-size: 1.8em;
    }

    .result-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .see-details-button,
    .start-dmarc-button {
        width: 100%;
    }
}


/* ... (existing CSS from previous response) ... */

/* Risk Level Colors */
.risk-level-low {
    color: #28a745;
    /* Green */
}

.risk-level-medium {
    color: #ffd700;
    /* Yellow/Gold */
}

.risk-level-high {
    color: #ff4500;
    /* Red-orange */
}

/* Overall DMARC Policy Status Colors */
.status-valid {
    color: #28a745;
    /* Green */
}

.status-missing {
    color: #ff4500;
    /* Red-orange */
}

/* Score Circle Dynamic Colors (for the border and possibly inner text) */
.score-circle.score-valid {
    border-color: rgba(40, 167, 69, 0.5);
    /* Green border */
    /* You can also change the score-value color here if desired */
}

.score-circle.score-valid .score-value {
    color: #28a745;
}

.score-circle.score-medium {
    border-color: rgba(255, 215, 0, 0.5);
    /* Yellow border */
}

.score-circle.score-medium .score-value {
    color: #ffd700;
}

.score-circle.score-high {
    border-color: rgba(255, 69, 0, 0.5);
    /* Red border */
}

.score-circle.score-high .score-value {
    color: #ff4500;
}

/* Recommendations Section */
.recommendations-section {
    background-color: rgba(255, 255, 0, 0.1);
    /* Light transparent yellow */
    border: 1px solid rgba(255, 255, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    color: #fff;
}

.recommendations-section h3 {
    color: #ffd700;
    /* Yellow title */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.recommendations-section ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.recommendations-section li {
    margin-bottom: 8px;
    font-size: 0.95em;
    line-height: 1.4;
}