/* Import Fonts */
@font-face {
    font-family: 'Gilmer';
    src: url('/static/fonts/gilmer-bold.otf') format('opentype');
    font-weight: bold;
    font-style: bold;
}

@font-face {
    font-family: 'Gilmer';
    src: url('/static/fonts/gilmer-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.dark-mode {
    --vulnebify-background-1: #0d0d0d;
    --vulnebify-background-2: #1a1a1a;
    --vulnebify-background-3: #272727;
    --vulnebify-background-transparent: rgba(13, 13, 13, 0.5);
  
    --vulnebify-color-1: #c7c7c7;
    --vulnebify-color-2: #a4a4a4;
    --vulnebify-color-3: #797979;
    
    --vulnebify-color-accent: #2d388a;
    --vulnebify-background-accent: #00aeef;

    --vulnebify-color-main: #0d0d0d;
    --vulnebify-color-main-hover: #1a1a1a;
    --vulnebify-background-main: #f1f1f1;

    --vulnebify-border-color: #2d2d2d;
    --vulnebify-border-color-hover: #505050;

    --vulnebify-color-red: #8a2d2d;
    --vulnebify-color-green: #069061;;
}

/* Start General Styles */
body {
    font-family: 'Gilmer', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--vulnebify-background-1);
    color: var(--vulnebify-color-2);
    min-height: 100vh;
    overflow-x: hidden; 
}

h1 {
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    background: linear-gradient(90deg, var(--vulnebify-color-accent), var(--vulnebify-background-accent));
    background-clip: text;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

h2 {
    color: var(--vulnebify-color-1);
}

h1 a {
    text-decoration: none;
}

input {
    font-family: 'Gilmer', sans-serif;
}

input::placeholder {
    color: var(--vulnebify-color-3)
}

a:not(h1 a) {
    text-decoration: none;
    color: var(--vulnebify-background-accent);
    transition: color 0.3s, transform 0.2s;
}

a:not(h1 a):hover {
    color: var(--vulnebify-color-accent);
    transform: scale(1.05);
    transform-origin: center;
}


.external-link {
    display: inline-flex;
    align-items: center;
}

.external-link span a {
    color: var(--vulnebify-background-accent);
}

.external-link a img {
    height: 19px;
    margin-left: 2px;
    vertical-align: middle;
}


.copy-link {
    display: inline-flex;
    align-items: center;
}

.copy-link span a {
    color: var(--vulnebify-background-accent);
}

.copy-link a img {
    height: 19px;
    margin-left: 2px;
    vertical-align: middle;
}
/* End General Styles */

/* Start Header Styles */
header {
    backdrop-filter: blur(5px);
    background: var(--vulnebify-background-transparent);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

header nav > span {
    color: var(--vulnebify-color-3);
    font-weight: bold;
    margin: 0 5px;
    user-select: none;
} 
  
header nav a {
    display: inline-block;
    color: var(--vulnebify-background-accent);
}

header nav a img {
    height: 19px;
    margin-left: 2px;
    vertical-align: sub;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.auth-hidden { display: none; }
/* End Header Styles */

/* Start Footer Styles */
footer {
    backdrop-filter: blur(5px);
    background: var(--vulnebify-background-1);
    padding: 10px 0;
    /* position: fixed */
    bottom: 0;
    left: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 5px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
}

.footer-nav a {
    display: inline-block;
    font-size: 14px;
}

.footer-text {
    font-size: 14px;
    color: var(--vulnebify-color-3)
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icons a {
    font-size: 16px;
}

.footer-icons a:hover {
    transform: scale(1.15);
    transform-origin: center;
}

.footer-icons img {
    width: 25px;
}
/* End Footer Styles */

/* Start Main Section Styles */
main {
    padding-top: 60px;
    min-height: calc(100vh - 125px);
}

.section-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 125px);
}

/* Section styles */
.section {
    width: 60%;
    max-width: 750px;
    min-width: 300px;
    margin: 0 auto;
    text-align: center;
}

/* Input field */
.input-field {
    width: 100%;
    max-width: 380px;
    padding: 10px;
    margin: 8px 0;
    border: 2px solid var(--vulnebify-border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: transparent;
    color: var(--vulnebify-color-2);
    box-sizing: border-box;
}

.error-message {
    color: var(--vulnebify-color-red);
    font-size: 13px;
    margin: 5px;
}

.error-message > a {
    color: var(--vulnebify-color-red);
    font-size: 13px;
    margin: 5px;
    text-decoration: underline;
}

.success-message {
    color: var(--vulnebify-color-green);
    font-size: 13px;
    margin: 5px;
}

.button {
    max-width: 380px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.3s, transform 0.2s;
    box-sizing: border-box;
}

.button img {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-right: 5px;
}

.button:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.button-main {
    background: var(--vulnebify-background-main);
    color: var(--vulnebify-color-main);
}

.button-main:hover {
    color: var(--vulnebify-color-main-hover);
}

/* Legal caution warning */
.legal-caution {
    font-size: 13px;
    color: var(--vulnebify-color-3);
    text-align: center;
    margin-top: 15px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.legal-caution a {
    font-weight: bold;
}

.stats h2 {
    font-size: 22px;
    color: var(--vulnebify-color-1)
}

.hosts-checked {
    font-size: 24px;
    color: var(--vulnebify-color-accent)
}

.vulns-found {
    font-size: 24px;
    color: var(--vulnebify-color-red)
}

.integrations h2 {
    font-size: 22px;
    color: var(--vulnebify-color-1)
}
.integrations .button-main {
    display: inline-block;
    margin-right: 5px;
}
/* End Main Section Styles */

/* Start Terms Styles */
#terms {
    text-align: left;
}

#terms h1 {
    text-align: center;
}

#terms strong {
    color: var(--vulnebify-color-1);
}
/* End Terms Styles */

/* Start About Styles */
#about {
    text-align: left;
}

#about h1 {
    text-align: center;
}

#about strong {
    color: var(--vulnebify-color-1);
}
/* End About Styles */

/* Start Pricing Styles */
.pricing-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.pricing-enterprise {
    display: flex;
    justify-content: center;
    
    max-width: 986px;
    min-width: 250px;
    width: 100%;
    margin: 0 15px;

    background: var(--vulnebify-background-2);
    border: 1px solid var(--vulnebify-border-color);
    border-radius: 8px;
    text-align: center;

    padding: 0 20px;
}

.pricing-subscriptions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 15px;
    padding: 20px 0;
}


.pricing-subscription {
    background: var(--vulnebify-background-2);
    border: 1px solid var(--vulnebify-border-color);
    border-radius: 8px;
    padding: 25px 20px;
    width: 100%;
    max-width: 280px;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

.pricing-subscription.selected {
    border: 1px solid var(--vulnebify-border-color-hover);
}

.plan-title {
    font-size: 20px;
    color: var(--vulnebify-color-accent);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--vulnebify-color-1);
    margin-bottom: 15px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: var(--vulnebify-color-2);
    font-size: 14px;
    line-height: 1.6;
}

.plan-subtext {
    font-size: 0.9rem;
    color: var(--vulnebify-color-3);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-button {
    width: 80%;
    display: inline-block;
    padding: 10px 16px;
    font-weight: bold;
}

/* End Pricing Styles */

/* Start Scan Summary & Report Styles */
#scanSummary {
    text-align: left;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#scanReport {
    text-align: left;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#scanSummary h2,
#scanReport h2 {
    margin-top: 5px;
}

.scan-item .value .button-main {
    padding: 5px 10px;
}

.scan-item {
    margin-bottom: 15px;
    padding: 7px;
    background: var(--vulnebify-background-2);
    border-radius: 6px;
    border: 0.5px solid var(--vulnebify-border-color);
}

.scan-item-group {
    display: flex;
    column-gap: 15px;
}

.scan-item-group .scan-item {
    flex: 50%;
    word-break: break-word;
}

.label {
    font-weight: bold;
    color: var(--vulnebify-color-1);
    display: block;
    margin-bottom: 5px;
}

.value, .value-list {
    font-size: 14px;
    color: var(--vulnebify-color-3);
}

.value-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.value-list li {
    padding: 3px 0;
}

.sub-item {
    margin-top: 10px;
    padding-left: 15px;
}

.sub-label {
    font-weight: bold;
    margin-bottom: 3px;
}

.sub-list {
    list-style-type: none;
    padding-left: 15px;
    color: var(--vulnebify-color-3);
}

.scan-table {
    border-radius: 5px;
    width: 100%;
    text-align: center;
    word-break: break-word;
}

.scan-table td {
    border: 1px solid var(--vulnebify-border-color);
}
/* End Scan Summary & Report Styles */

/* Start Scan Locked Report */
.scan-locked-report {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/static/images/locked-report-bg.png');
    background-size: cover;      
    background-repeat: no-repeat;
    height: 400px;
    padding: 2rem;
}

.scan-locked-report form {
    background: var(--vulnebify-background-2);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--vulnebify-border-color);
    box-shadow: 0 4px 20px var(--vulnebify-background-transparent);
    max-width: 400px;
    width: 100%;
    text-align: center;
    opacity: 0.9;
}

.scan-locked-report h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.scan-locked-report p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.scan-locked-report .input-field {
  border: 1px solid var(--vulnebify-border-color);
}

.scan-locked-report .button-main {
    width: 100%;
    margin-bottom: 8px;
}

.scan-locked-report .auth-note {
    font-size: 0.85rem;
    color: var(--vulnebify-color-3);
}
/* End Scan Locked Report */

/* Start Ukraine Banner Styles */
.ukraine-banner {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-70%);
    background: var(--vulnebify-background-3);
    color: var(--vulnebify-background-accent);
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    backdrop-filter: blur(5px);
    box-shadow: -2px 0 5px var(--vulnebify-background-2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s;
    opacity: 0;
}

.ukraine-banner .flag {
    font-size: 15px;
    margin-bottom: 5px;
    transform: rotate(270deg);
}

.ukraine-banner .vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
}

.ukraine-banner:hover {
    opacity: 0.8;
}

/* End Ukraine Banner Styles */

/* Start auto-refresh toggle */

.autorefresh-toggle {
    position: fixed;
    top: 60px;
    background: var(--vulnebify-background-transparent);
    color: var(--vulnebify-color-2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    z-index: 999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    transform: scale(1.1);
    margin: 0;
}
/* End auto-refresh toggle */

/* Start Toast Styles */
#toast {
  position: fixed;
  top: 60px;
  background-color: var(--vulnebify-color-accent);
  color: var(--vulnebify-color-1);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#toast.show {
  opacity: 1;
  visibility: visible;
}
/* End Toast Styles */

/* Start Error Page Styles */
#errorPage {
    text-align: center;
    padding: 50px 20px;
    color: var(--vulnebify-color-3);
}

#errorPage h1 {
    font-size: 36px;
    color: var(--vulnebify-background-accent);
}

#errorPage p {
    font-size: 18px;
    margin-bottom: 20px;
}

#errorPage a {
    font-size: 18px;
}

#errorPage .button-main {
    display: inline-block;
}

#errorPage img {
    width: 100%;
    margin-bottom: 18px;
}

/* End Error Page Styles */

/* Start Host Page Styles */
.host-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    color: var(--vulnebify-color-3);
}

/* Split screen layout */
.host-content {
    display: flex;
    width: 100%;
}

/* Left Section (40%) */
.host-info {
    flex: 40%;
    height: 100%;
    padding: 20px;
    margin: 5px;
    background: var(--vulnebify-background-2);
    border: 1px solid var(--vulnebify-border-color);
    border-radius: 10px;
}

/* Right Section (60%) */
.services {
    flex: 60%;
    height: 100%;
    padding: 20px;
    margin: 5px;
    background: var(--vulnebify-background-2);
    border: 1px solid var(--vulnebify-border-color);
    border-radius: 10px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 16px;
    width: 100%;
}

.service-item {
    background: var(--vulnebify-background-2);
    border: 1px solid var(--vulnebify-border-color);
    border-radius: 8px;
    padding: 12px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.service-number {
    color: var(--vulnebify-color-1);
}

.service-number .service-protocol {
    font-weight: bold;
    color: var(--vulnebify-color-1);
}

.service-number img {
    width: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

.service-date {
    font-size: 13px;
    color: var(--vulnebify-color-3);
    text-align: right;
}

.service-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    font-family: monospace;
    font-size: 13px;
    background: var(--vulnebify-background-3);
    color: var(--vulnebify-color-2);
    padding: 8px;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    margin: 0;
}

/* End Host Page Styles */

/* Start Invitation Page Styles */
.invitation-content {
    background: var(--vulnebify-background-2);
    border: 1px solid var(--vulnebify-border-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.invitation-content button{
    width: 100%;
}
/* End Invitation Page Styles */

/* Start Globe Styles */
.globe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px; /* Adds space between globe and text */
}

#globe {
    width: 500px;  
    height: 500px; 
    max-width: 100%;
    display: block; 
}
/* Start Globe Styles */

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        width: 90%;
    }

    .host-container {
        width: 90%;
    }

    .host-content {
        flex-direction: column;
    }

    .host-info, .services {
        flex: 100%;
    }

    .scan-item-group {
        flex-direction: column;
    }

    .scan-item-group  .scan-item {
        flex: 100%;
    }

    .banner-cell pre {
        max-width: 250px; /* Prevents extra wide banners */
        overflow-x: auto;
        overflow-y: auto; /* Allows vertical scrolling */
    }

    #globe {
        width: 350px;  
        height: 350px; 
    }

    .request-scan .button-main {
        width: 100%;
    }

    .error-image-container img {
        max-width: 400px;
    }
}

@media (max-width: 420px) {
    #globe {
        width: 250px;  
        height: 250px; 
    }

    .autorefresh-toggle {
        top: 50px
    }

    .pricing-enterprise {
        width: 280px;
    }

    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media (max-width: 380px) {
    #globe {
        width: 225px;  
        height: 225px; 
    }

    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .header-container h1 {
        margin-right: 10px;
    }

    .header-container nav {
        margin-top: 5px;
    }

    .autorefresh-toggle {
        top: 85px;
        right: 0px;
    }
}

