* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

#bg {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, #3360a8, rgb(73, 118, 215), rgb(76, 123, 222), #f0f4ff);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 30px;
    background: transparent;
    position: relative;
    width: 100%;
}

header img {
    width: 280px;
    margin-top: 15px;
    height: auto;
    position: absolute;
    /* Center logo */
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.left-nav a {
    padding: 5px 10px;
}

.right-nav a {
    padding: 7px 15px;
    border: white 1.5px solid;
    border-radius: 20px;
    transition: 0.3s;
    margin: 0 5px;
}

.right-nav a:hover {
    background-color: white;
    color: rgb(63, 101, 182);
}

.main-section {
    position: absolute;
    border: 2px black;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -40%);
    /* Centering the section */
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.content-wrapper a {
    color: #3360a8;
    text-decoration: none;
    padding: 15px 20px;
    background-color: white;
    border-radius: 30px;
    margin-top: 15px;
    font-weight: 600;
    z-index: 6;
    position: relative;
    /* Makes sure the button stays in its place */
}

.content-wrapper p:nth-child(1) {
    color: white;
    padding: 5px 20px;
    border: 1px solid white;
    border-radius: 30px;
    background-color: #6c91d0;
    box-shadow: .5px .5px 5px 0 rgb(189, 189, 189);
}

.content-wrapper h1 {
    font-size: 3.5em;
    color: white;
    font-weight: 560;
    margin-top: 30px;
    width: 100%;
}

#description {
    color: white;
    margin-top: 30px;
}

.content-wrapper a {
    color: #3360a8;
    text-decoration: none;
    padding: 15px 20px;
    background-color: white;
    border-radius: 30px;
    margin-top: 30px;
    font-weight: 600;
    z-index: 6;
}

.radar {
    position: relative;
    height: 300px;
    width: 600px;
    left: 50%;
    transform: translateX(-50%);
}

.circles {
    position: absolute;
    top: 0;
    left: 50%;
    opacity: .7;
}

.circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    border-bottom: 2px solid white;
    border-radius: 500px;
}

#circle1 {
    width: 80px;
    height: 80px;
}

#circle2 {
    width: 150px;
    height: 150px;
}

#circle3 {
    width: 240px;
    height: 240px;
}

#circle4 {
    width: 330px;
    height: 330px;
}

#circle5 {
    width: 430px;
    height: 430px;
}

#circle6 {
    width: 530px;
    height: 530px;
}

#circle7 {
    width: 630px;
    height: 630px;
}

.radar-line {
    position: absolute;
    left: 50%;
    top: 0;
    height: 2px;
    width: 20em;
    background: white;
    border-radius: 50px;
    transform-origin: 0% 0%;
    animation: radar-rotation 5s ease-in-out infinite;
}

.radar-line::after {
    box-shadow: 5px 5px 10px white;
}

@keyframes radar-rotation {
    0% {
        opacity: 0;
        transform: rotate(0);
    }

    20% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: .5;
    }

    100% {
        opacity: 0;
        transform: rotate(180deg);
    }
}

.social {
    position: absolute;
    opacity: 0;
}

#facebook {
    left: 480px;
    top: 50px;
    animation: facebook-pop 5s infinite ease-in-out;
}

#linkedin {
    left: 400px;
    top: 150px;
    animation: linkedin-pop 5s infinite ease-in-out;
}

#instagram {
    left: 300px;
    top: 120px;
    animation: instagram-pop 5s infinite ease-in-out;
}

#tiktok {
    left: 200px;
    top: 200px;
    animation: tiktok-pop 5s infinite ease-in-out;
}

#twitter {
    left: 80px;
    top: 50px;
    animation: twitter-pop 5s infinite ease-in-out;
    
}

@keyframes facebook-pop {
    0% {
        opacity: 0;
        transform: translate(0);
    }

    20% {
        opacity: 1;
    }

    35% {
        opacity: 1;
        transform: translateY(-5px);
    }

    45% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes linkedin-pop {
    20% {
        opacity: 0;
        transform: translate(0);
    }

    40% {
        opacity: 1;
    }

    55% {
        opacity: 1;
        transform: translateY(-5px);
    }

    65% {
        transform: translateY(-5px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes instagram-pop {
    0% {
        opacity: 0;
        transform: translate(0);
    }

    30% {
        opacity: 0;
    }

    45% {
        opacity: 1;
    }

    55% {
        opacity: 1;
        transform: translateY(-5px);
    }

    70% {
        transform: translateY(-5px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes tiktok-pop {
    0% {
        opacity: 0;
        transform: translate(0);
    }

    45% {
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes twitter-pop {
    0% {
        opacity: 0;
        transform: translate(0);
    }

    65% {
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    90% {
        opacity: 1;
        transform: translateY(-5px);
    }

    95% {
        transform: translateY(-5px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.rest-of-page {
    position: relative;
    top: 100vh;
}

.how-it-works-section {
    position: relative;
    top: 100vh;
}

.how-it-works-section img {
    width: 20px;
    height: 20px;
}

/* Compromised section styling */
.compromised-section {
    margin-top: 50px;
    margin-bottom: 50px;
    border-top: 1px solid #e0e0e0;
    padding-top: 50px;
    background-color: #1a1a2e;
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.compromised-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100M0,100L100,0M0,50L50,0M50,100L100,50" stroke="%23333355" stroke-width="1"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.compromised-section .title {
    color: #ff4d4d;
    font-size: 2.2em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.compromised-section .description {
    margin-bottom: 30px;
    color: #b8b8d4;
    font-size: 1.1em;
    max-width: 85%;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.compromised-section .container {
    background-color: #16213e;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.compromised-section .search-options {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.compromised-section .search-options button {
    background-color: #2c394b;
    color: #b8b8d4;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compromised-section .search-options button.active {
    background-color: #ff4d4d;
    color: white;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

.compromised-section .input-container {
    background-color: #2c394b;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
}

.compromised-section .search-box {
    position: relative;
}

.compromised-section .search-icon {
    position: absolute;
    left: 15px;
    z-index: 1;
}

.compromised-section input {
    background-color: transparent;
    color: white;
    border: none;
    padding-left: 40px !important;
}

.compromised-section input::placeholder {
    color: #8d8daa;
}

.compromised-section .clear-btn {
    color: #8d8daa;
}

.compromised-section #compromised-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compromised-section #compromised-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: transform 0.6s;
    z-index: -1;
}

.compromised-section #compromised-btn:hover {
    background-color: #e63939;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

.compromised-section #compromised-btn:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.compromised-section .progress-bar {
    background: linear-gradient(90deg, #ff4d4d, #ff8080);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.compromised-section .progress-text {
    color: #b8b8d4;
}

.compromised-section .progress-percent {
    color: #ff8080;
    font-weight: bold;
}

.compromised-section .note {
    color: #8d8daa;
    font-size: 0.9em;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.compromised-section .note svg {
    min-width: 14px;
}

.compromised-section .result div {
    background-color: #2c394b !important;
    border-left: 5px solid #ff4d4d;
}

.compromised-section .result h3 {
    color: white;
}

.compromised-section .result p {
    color: #b8b8d4;
}

.compromised-section .btn-glow {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.4) 0%, rgba(255, 77, 77, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    opacity: 0;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
}

.security-icon {
    position: absolute;
    top: -20px;
    right: 40px;
    background-color: #1a1a2e;
    border: 3px solid #333355;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.security-badges .badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.security-badges .badge svg {
    background-color: #16213e;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.security-badges .badge span {
    color: #b8b8d4;
    font-size: 0.9em;
}

@media screen and (max-width: 768px) {
    .compromised-section {
        padding: 30px 20px;
    }
    
    .compromised-section .search-options {
        flex-direction: column;
    }
    
    .security-badges {
        flex-wrap: wrap;
    }
    
    .security-icon {
        right: 20px;
    }
}

.section-cards {
    position: relative;
    top: 100vh;
}

.section-cards > h1 {
    text-align: center;
    font-size: 2.5em;
    padding: 100px 0 100px 0;
}

div.section.cards {
    margin-bottom: 150px;
}

.menu {
    display: none;
}

.hamburger {
    display: none;
}
.fix {
    position: fixed;
    top: 15px;
}

.switch-ham-bg {
    background-color: #3360a8 !important;
}

.join-linkedin {
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 20px;
    background-color: #3360a8;
    border-radius: 30px;
}

.linkedin-btn {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

@media screen and (max-width: 900px) {
    .radar {
        display: none;
    }
}

@media screen and (max-height: 865px) {
    .radar {
        display: none;
    }
}

/* Media Query for Screens Smaller than 700px */
@media screen and (max-width: 1000px) {
    header {
        align-items: center;
        padding: 15px;
    }

    header img {
        width: 220px;
    }

    /* Hide the normal navigation links */
    nav.left-nav,
    nav.right-nav {
        display: none;
    }

    .main-section {
        top: 38%;
    }

    .content-wrapper h1 {
        font-size: 2em;
        /* Reduce font size for smaller screens */
        margin-top: 20px;
    }

    .content-wrapper a {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    /* Hamburger menu icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        z-index: 66;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: white;
        transition: all 0.3s ease;
    }

    /* Animation to transform hamburger into "X" */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Show the menu when hamburger is clicked */
    .menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        position: fixed;
        top: 0;
        left: -75%;
        height: 100%;
        width: 75%;
        background-color: white;
        /* Set the background color to white */
        border-top: 1px solid #ccc;
        z-index: 10;
        transition: 0.3s;
    }

    .menu a {
        text-decoration: none;
        color: #3360a8;
        /* Dark blue text */
        font-weight: 600;
        font-size: 1.2em;
        padding: 15px 25px;
        margin: 10px 0;
        text-align: center;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    .menu a:hover {
        color: #fff;
        background-color: #3360a8;
        /* Dark blue background */
    }

    /* Show the menu when active */
    .menu.active {
        left: 0;
    }

    #description {
        font-size: 0.9em;
        margin-top: 20px;
    }

    .radar {
        display: none;
        /* Hide radar on small screens */
    }

    .social {
        display: none;
        /* Hide social icons on small screens */
    }

    .section-cards {
        top: 70vh;
        /* Adjust positioning of cards for better layout */
    }

    .how-it-works-section {
        top: 60vh;
        /* Adjust layout of "How it works" section */
    }

    /* Hide large elements that don't fit on smaller screens */

    /* Hide or adjust the radar line */
    .radar-line {
        display: none;
    }
}

@media screen and (max-height: 755px) {
    .content-wrapper p:nth-child(1) {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    header img {
        width: 180px;
        margin-top: 10px;
    }

    .content-wrapper h1 {
        font-size: 1.8em;
    }

    .content-wrapper p {
        font-size: 0.8em;
    }

    .content-wrapper a {
        font-size: 0.85em;
        padding: 8px 12px;
    }

    .main-section {
        top: 40%;
    }

    .left-nav,
    .right-nav {
        display: none;
        /* Hide normal navigation on smaller screens */
    }

    .hamburger-menu {
        display: flex;
        /* Show hamburger menu */
    }

    .mobile-nav {
        display: none;
        /* Initially hide mobile nav */
    }

    .mobile-nav.open {
        display: flex;
    }
}

/* Mode toggle styling */
.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 15px; /* Spacing between mode buttons */
    margin-bottom: 25px; /* Space below mode buttons */
}

.toggle-btn {
    background-color: #e9eff5; /* Light background for inactive */
    color: #3360a8; /* Theme color for text */
    border: 1px solid #d1dbe5; /* Subtle border */
    padding: 10px 20px;
    border-radius: 20px; /* Rounded corners */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.toggle-btn:hover {
    background-color: #d1dbe5;
    border-color: #b0c4de;
}

.toggle-btn.active {
    background-color: #3360a8; /* Active background */
    color: white;
    border-color: #3360a8;
    box-shadow: 0 2px 8px rgba(51, 96, 168, 0.2); /* Subtle shadow for active */
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Mode content styling */
.mode-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mode-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeSlideIn 0.5s forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Security mode styling */
.container.security-active {
    background-color: #0a1128;
    border-radius: 15px;
    padding: 45px;
    color: #fff;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    transform: scale(1.01);
}

.container.security-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100M0,100L100,0M0,50L50,0M50,100L100,50" stroke="%23132d5e" stroke-width="1"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.container.security-active .search-options button {
    background-color: #1e3a8a;
    color: #d1d5db;
    border: none;
    padding: 12px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.container.security-active .search-options button.active {
    background-color: white;
    color: #0a1128;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.container.security-active .input-container {
    background-color: #1e3a8a;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
}

.container.security-active input {
    background-color: transparent;
    color: white;
    border: none;
    padding-left: 40px !important;
}

.container.security-active input::placeholder {
    color: #9ca3af;
}

.container.security-active .clear-btn {
    color: #9ca3af;
}

.container.security-active .search-icon {
    position: absolute;
    left: 15px;
    z-index: 1;
}

.container.security-active #security-btn {
    background-color: white;
    color: #0a1128;
    border: none;
    border-radius: 20px;
    padding: 14px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.container.security-active #security-btn:hover {
    background-color: #f8fafc;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-glow {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    opacity: 0;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
}

.security-note {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #d1d5db;
    margin-top: 25px;
}

.security-badges {
    display: none;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.security-badges .badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.security-badges .badge svg {
    background-color: #1e3a8a;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    stroke: white;
}

.security-badges .badge span {
    color: #d1d5db;
    font-size: 0.9em;
}

/* Result styling */
.security-result {
    padding: 25px;
    background: #1e3a8a;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 5px solid white;
}

.security-result h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-result h3 svg {
    stroke: white;
}

.security-result p {
    color: #d1d5db;
    margin-bottom: 12px;
    line-height: 1.6;
}

.security-result .highlight {
    color: white;
    font-weight: bold;
}

.search-result {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 25px;
    line-height: 1.6;
}

/* Remove compromised section styling as it's no longer needed */
.compromised-section {
    margin-top: 50px;
    margin-bottom: 50px;
    border-top: 1px solid #e0e0e0;
    padding-top: 50px;
    background-color: #1a1a2e;
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .mode-toggle {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .container.security-active .search-options {
        flex-direction: column;
    }
    
    .security-badges {
        flex-wrap: wrap;
    }
}

/* Existing code continues */
.section-cards {
    position: relative;
    top: 100vh;
}

/* Container security mode styles */
.container.security-active #progress-bar {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.container.security-active .progress-percent {
    color: #3b82f6;
    font-weight: bold;
}

/* Result styling */
.security-result {
    padding: 20px;
    background: #2c394b;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid #ff4d4d;
}

/* Container sizing */
.container {
    min-height: 400px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background-color: white;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Media queries */
@media screen and (max-width: 768px) {
    .container {
        min-height: 350px;
        padding: 25px;
        max-width: 95%;
    }
    
    .toggle-btn {
        padding: 10px 15px;
        min-width: 160px;
        font-size: 14px;
    }
    
    .mode-toggle {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .container.security-active {
        padding: 30px 20px;
    }
    
    .container.security-active .search-options {
        flex-direction: column;
    }
    
    .security-badges {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .container.security-active .input-container {
        max-width: 100%;
    }
}

/* ========= OSINT Search Results Styling ========= */

/* New section for results with no details */
#no-details-container {
  background-color: #e9eff5; /* Light background */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#no-details-container h4 {
  color: #031a4b;
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d1dbe5;
  font-weight: 600;
}

#no-details-results {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.no-details-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 20px; /* Pill shape */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.no-details-item:hover {
    transform: scale(1.05);
}

.no-details-logo {
  width: 24px; /* Slightly smaller logo */
  height: 24px;
  border-radius: 50%; /* Circle logo */
  object-fit: contain;
  background-color: #eee; /* Fallback bg */
}

.no-details-logo-fallback {
  display: inline-flex; /* Initially hidden by JS */
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #031a4b;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.no-details-item span {
  font-size: 0.9em;
  color: #333;
  font-weight: 500;
}

/* Main results grid */
#result {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
  gap: 25px; /* Increased gap */
  padding: 25px; /* Increased padding */
  background-color: #f0f4f8; /* Light background for the results area */
  border-radius: 12px; /* Slightly larger radius */
  margin-top: 20px;
}

.search-result-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.search-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 20px 25px; /* Increased padding */
  background-color: #e9eff5; /* Slightly different header background */
  border-bottom: 1px solid #d1dbe5;
}

.module-logo, .schema-logo {
  width: 40px; /* Increased size */
  height: 40px; /* Increased size */
  margin-right: 15px; /* Increased margin */
  border-radius: 8px; /* Slightly larger radius */
  object-fit: contain; /* Prevent distortion */
  background-color: #fff; /* Background for logos */
  padding: 2px;
  border: 1px solid #eee;
}

.module-logo-fallback, .schema-logo-fallback {
  display: inline-flex; /* Initially hidden by JS if logo loads */
  align-items: center;
  justify-content: center;
  width: 40px; /* Increased size */
  height: 40px; /* Increased size */
  margin-right: 15px; /* Increased margin */
  border-radius: 8px; /* Slightly larger radius */
  background-color: #031a4b; /* Use a theme color */
  color: #fff;
  font-weight: bold;
  font-size: 18px; /* Increased size */
}

.card-header h3 {
  margin: 0;
  font-size: 1.3em; /* Increased size */
  color: #031a4b;
  font-weight: 600;
}

.card-body {
  padding: 20px 25px; /* Increased padding */
  flex-grow: 1; /* Allow body to take remaining space */
}

.card-body p {
  margin: 0 0 12px 0; /* Adjusted margin */
  color: #333;
  font-size: 1em; /* Increased size */
}

.card-body .label {
  font-weight: 600;
  color: #555;
  margin-right: 8px; /* Adjusted margin */
}

.status-found {
  color: #28a745; /* Green for found */
  font-weight: bold;
}

.status-not-found {
  color: #dc3545; /* Red for not found */
  font-weight: bold;
}

.status-n\/a {
  color: #6c757d; /* Gray for N/A */
}

.schemas-container {
  margin-top: 20px; /* Increased margin */
  padding-top: 20px; /* Increased padding */
  border-top: 1px solid #e0e6ed; /* Adjusted border color */
}

.schema {
  background-color: #fdfdfe; /* Slightly brighter background */
  border: 1px solid #e5e7eb;
  border-radius: 10px; /* Increased radius */
  padding: 18px; /* Increased padding */
  margin-bottom: 15px; /* Increased margin */
}

.schema-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px; /* Increased margin */
}

.schema-header h4 {
  margin: 0;
  font-size: 1.1em; /* Increased size */
  font-weight: 600;
  color: #111827;
}

.schema-logo {
  width: 30px; /* Increased size */
  height: 30px; /* Increased size */
  margin-right: 10px; /* Increased margin */
  border-radius: 6px; /* Adjusted radius */
}

.schema-logo-fallback {
 width: 30px; /* Increased size */
  height: 30px; /* Increased size */
  margin-right: 10px; /* Increased margin */
  border-radius: 6px; /* Adjusted radius */
  font-size: 14px; /* Increased size */
}

.schema-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align items top */
  font-size: 0.95em; /* Increased size */
  padding: 6px 0; /* Adjusted padding */
  border-bottom: 1px dashed #e0e6ed; /* Adjusted border color */
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item dt {
  font-weight: 500;
  color: #4b5563;
  margin-right: 15px; /* Increased margin */
  flex-shrink: 0; /* Prevent label from shrinking too much */
  padding-top: 2px; /* Align baseline */
}

.detail-item dd {
  color: #1f2937;
  text-align: right;
  word-break: break-word; /* Prevent long values from overflowing */
  flex-grow: 1; /* Allow value to take space */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #result {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
    padding: 20px; /* Adjusted padding */
  }

  .search-result-card {
    margin-bottom: 20px; /* Adjusted margin */
  }

  #no-details-container {
    padding: 15px;
  }

  #no-details-results {
      gap: 10px;
  }

  .no-details-item {
      padding: 6px 10px;
  }

  .card-header {
      padding: 15px 20px;
  }

  .card-body {
      padding: 15px 20px;
  }

  .module-logo, .module-logo-fallback {
      width: 35px;
      height: 35px;
      margin-right: 12px;
  }

   .schema-logo, .schema-logo-fallback {
      width: 26px;
      height: 26px;
      margin-right: 8px;
  }

  .card-header h3 {
      font-size: 1.2em;
  }

   .schema-header h4 {
       font-size: 1em;
   }
}

.detail-item dd {
  color: #1f2937;
  text-align: right;
  word-break: break-word; /* Prevent long values from overflowing */
  flex-grow: 1; /* Allow value to take space */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #result {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
    padding: 20px; /* Adjusted padding */
  }

  .search-result-card {
    margin-bottom: 20px; /* Adjusted margin */
  }

  #no-details-container {
    padding: 15px;
  }

  #no-details-results {
      gap: 10px;
  }

  .no-details-item {
      padding: 6px 10px;
  }

  .card-header {
      padding: 15px 20px;
  }

  .card-body {
      padding: 15px 20px;
  }

  .module-logo, .module-logo-fallback {
      width: 35px;
      height: 35px;
      margin-right: 12px;
  }

   .schema-logo, .schema-logo-fallback {
      width: 26px;
      height: 26px;
      margin-right: 8px;
  }

  .card-header h3 {
      font-size: 1.2em;
  }

   .schema-header h4 {
       font-size: 1em;
   }
}

/* ========= LeakCheck Data Breach Results Styling ========= */

#leakcheck-results-container {
  background-color: #1a1a2e; /* Dark background matching compromised section */
  padding: 25px;
  margin-bottom: 20px; /* Add space below leak check results */
  margin-top: 20px; /* Add space above leak check results */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #fff; /* Default text color */
}

#leakcheck-results-container h4 {
  color: #ff8080; /* Accent color for the title */
  font-size: 1.3em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333355; /* Darker border */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

#leakcheck-results-container h4 svg {
    stroke: #ff8080;
}

#leakcheck-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
  gap: 20px;
}

.breach-card {
  background-color: #2c394b; /* Dark card background */
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-left: 4px solid #ff4d4d; /* Accent border */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.breach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.breach-header {
  padding: 15px 20px;
  border-bottom: 1px solid #3b4a5c; /* Slightly lighter border inside card */
}

.breach-header h5 {
  margin: 0;
  font-size: 1.1em;
  color: #e0e0e0; /* Lighter text for header */
  font-weight: 600;
}

.breach-header span {
    font-size: 0.85em;
    color: #b8b8d4; /* Muted color for date */
    display: block;
    margin-top: 4px;
}

.breach-details {
  padding: 15px 20px;
}

.breach-details p {
  margin: 0 0 10px 0;
  font-size: 0.95em;
  color: #c0c0d4; /* Slightly muted text */
}

.breach-details strong {
  color: #e0e0e0; /* Lighter color for labels */
  margin-right: 5px;
}

.breach-fields-title {
    font-weight: 600;
    color: #d0d0e4;
    margin-bottom: 8px;
    font-size: 0.9em;
    display: block;
}

.breach-fields-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.breach-field {
    background-color: #3b4a5c; /* Slightly lighter background for pills */
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.breach-field.password {
    background-color: #ff4d4d; /* Highlight password field */
    color: white;
}

@media (max-width: 768px) {
    #leakcheck-results-container {
        padding: 20px;
    }
    #leakcheck-results {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .breach-header h5 {
        font-size: 1em;
    }
    .breach-details p {
        font-size: 0.9em;
    }
}

/* ========= Mode Toggle Buttons ========= */

.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 15px; /* Spacing between mode buttons */
    margin-bottom: 25px; /* Space below mode buttons */
}

.toggle-btn {
    background-color: #e9eff5; /* Light background for inactive */
    color: #3360a8; /* Theme color for text */
    border: 1px solid #d1dbe5; /* Subtle border */
    padding: 10px 20px;
    border-radius: 20px; /* Rounded corners */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.toggle-btn:hover {
    background-color: #d1dbe5;
    border-color: #b0c4de;
}

.toggle-btn.active {
    background-color: #3360a8; /* Active background */
    color: white;
    border-color: #3360a8;
    box-shadow: 0 2px 8px rgba(51, 96, 168, 0.2); /* Subtle shadow for active */
}

/* ========= Mode-Specific Body Styling ========= */

body {
    transition: background-color 0.5s ease, color 0.5s ease;
    background-color: #f8f9fa; /* Default light background */
    color: #212529; /* Default dark text */
}

/* --- OSINT Mode (Default Light) --- */
body.mode-osint {
    background-color: #f8f9fa; /* Explicitly light */
    color: #212529;
}

body.mode-osint .container {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.mode-osint .search-options button {
    background-color: #e9ecef;
    color: #495057;
}

body.mode-osint .search-options button.active {
    background-color: #3360a8;
    color: white;
}

body.mode-osint input[type="text"] {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #495057;
}

body.mode-osint input[type="text"]::placeholder {
    color: #6c757d;
}

body.mode-osint #search-btn {
    background-color: #3360a8;
    color: white;
}

body.mode-osint #search-btn:hover {
    background-color: #274a80;
}

body.mode-osint #result, 
body.mode-osint #no-details-container, 
body.mode-osint #leakcheck-results-container {
    /* Ensure light mode styles apply or reset dark mode styles */
    background-color: #f0f4f8; /* Light background for result areas */
    color: #333;
}

body.mode-osint .search-result-card,
body.mode-osint .no-details-item,
body.mode-osint .breach-card {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #333;
}

body.mode-osint .card-header, 
body.mode-osint .schema {
    background-color: #e9eff5;
    border-color: #d1dbe5;
}

body.mode-osint .card-header h3, 
body.mode-osint .schema-header h4, 
body.mode-osint .detail-item dt, 
body.mode-osint .detail-item dd {
    color: #031a4b; /* Dark blue/black text */
}

body.mode-osint #leakcheck-results-container {
    background-color: #e9eff5; /* Consistent light background */
    color: #333;
}

body.mode-osint #leakcheck-results-container h4 {
    color: #031a4b;
    border-bottom-color: #d1dbe5;
}

body.mode-osint #leakcheck-results-container h4 svg {
    stroke: #031a4b;
}

body.mode-osint .breach-card {
    background-color: #fff;
    border-left-color: #3360a8; /* Use theme blue */
}

body.mode-osint .breach-header {
    border-bottom-color: #e0e6ed;
}

body.mode-osint .breach-header h5,
body.mode-osint .breach-details p,
body.mode-osint .breach-details strong,
body.mode-osint .breach-fields-title {
    color: #333;
}

body.mode-osint .breach-header span {
    color: #6c757d;
}

body.mode-osint .breach-field {
    background-color: #e9ecef;
    color: #495057;
}

body.mode-osint .breach-field.password {
    background-color: #dc3545; /* Keep password highlight red */
    color: white;
}


/* --- Data Breach Mode (Dark) --- */
body.mode-databreach {
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
}

body.mode-databreach .container {
    background-color: #2c394b; /* Darker container */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.mode-databreach .search-options button {
    background-color: #3b4a5c;
    color: #b8b8d4;
}

body.mode-databreach .search-options button.active {
    background-color: #ff4d4d; /* Accent color for active */
    color: white;
}

body.mode-databreach input[type="text"] {
    background-color: #3b4a5c;
    border: 1px solid #55667a;
    color: #e0e0e0;
}

body.mode-databreach input[type="text"]::placeholder {
    color: #8d8daa;
}

body.mode-databreach #search-btn {
    background-color: #ff4d4d;
    color: white;
}

body.mode-databreach #search-btn:hover {
    background-color: #e63939;
}

/* Adapt result containers for dark mode */
body.mode-databreach #result, 
body.mode-databreach #no-details-container, 
body.mode-databreach #leakcheck-results-container {
    background-color: #1f2a3d; /* Dark background for result areas */
    color: #e0e0e0;
}

body.mode-databreach #no-details-container h4,
body.mode-databreach #leakcheck-results-container h4 {
    color: #ff8080; /* Light accent color */
    border-bottom-color: #333355;
}

body.mode-databreach #leakcheck-results-container h4 svg {
    stroke: #ff8080;
}

/* Adapt OSINT results for dark mode */
body.mode-databreach .search-result-card {
    background-color: #2c394b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}

body.mode-databreach .card-header {
    background-color: #3b4a5c;
    border-bottom-color: #55667a;
}

body.mode-databreach .card-header h3 {
    color: #fff;
}

body.mode-databreach .module-logo, 
body.mode-databreach .schema-logo {
    background-color: #e0e0e0; /* Light background for logos */
    border-color: #55667a;
}

body.mode-databreach .module-logo-fallback,
body.mode-databreach .schema-logo-fallback {
    background-color: #ff4d4d; /* Use accent for fallback */
    color: #fff;
}

body.mode-databreach .card-body p, 
body.mode-databreach .card-body .label {
    color: #b8b8d4;
}

body.mode-databreach .schema {
    background-color: #334155;
    border-color: #4a5a6a;
}

body.mode-databreach .schema-header h4 {
    color: #f0f0f0;
}

body.mode-databreach .detail-item {
    border-bottom-color: #4a5a6a;
}

body.mode-databreach .detail-item dt {
    color: #a0a0b8;
}

body.mode-databreach .detail-item dd {
    color: #e0e0e0;
}

/* Adapt no-details items for dark mode */
body.mode-databreach .no-details-item {
    background-color: #3b4a5c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

body.mode-databreach .no-details-item span {
    color: #e0e0e0;
}

body.mode-databreach .no-details-logo {
    background-color: #55667a;
}

body.mode-databreach .no-details-logo-fallback {
    background-color: #ff4d4d;
    color: #fff;
}

/* LeakCheck results already styled for dark mode, ensure consistency */
body.mode-databreach .breach-card {
    background-color: #2c394b;
    border-left-color: #ff4d4d;
}

body.mode-databreach .breach-header {
    border-bottom-color: #3b4a5c;
}

body.mode-databreach .breach-header h5 {
    color: #e0e0e0;
}

body.mode-databreach .breach-header span {
    color: #b8b8d4;
}

body.mode-databreach .breach-details p,
body.mode-databreach .breach-details strong,
body.mode-databreach .breach-fields-title {
    color: #c0c0d4;
}

body.mode-databreach .breach-field {
    background-color: #3b4a5c;
    color: #e0e0e0;
}

body.mode-databreach .breach-field.password {
    background-color: #ff4d4d;
    color: white;
}



/* --- All in One Mode (Gradient) --- */
body.mode-allinone {
    background: linear-gradient(135deg, #e0f7fa 0%, #f0e6ff 100%); /* Light gradient */
    color: #333;
}

body.mode-allinone .container {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Use OSINT (light mode) styles as base for All-in-One, 
   but ensure LeakCheck results are styled distinctly */
body.mode-allinone #result, 
body.mode-allinone #no-details-container {
    background-color: rgba(240, 244, 248, 0.9); /* Slightly transparent light bg */
}

body.mode-allinone .search-result-card, 
body.mode-allinone .no-details-item {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Keep LeakCheck results dark-themed in All-in-One mode for visual separation */
body.mode-allinone #leakcheck-results-container {
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.mode-allinone #leakcheck-results-container h4 {
    color: #ff8080;
    border-bottom-color: #333355;
}

body.mode-allinone #leakcheck-results-container h4 svg {
    stroke: #ff8080;
}

body.mode-allinone .breach-card {
    background-color: #2c394b;
    border-left-color: #ff4d4d;
}

body.mode-allinone .breach-header {
    border-bottom-color: #3b4a5c;
}

body.mode-allinone .breach-header h5 {
    color: #e0e0e0;
}

body.mode-allinone .breach-header span {
    color: #b8b8d4;
}

body.mode-allinone .breach-details p,
body.mode-allinone .breach-details strong,
body.mode-allinone .breach-fields-title {
    color: #c0c0d4;
}

body.mode-allinone .breach-field {
    background-color: #3b4a5c;
    color: #e0e0e0;
}

body.mode-allinone .breach-field.password {
    background-color: #ff4d4d;
    color: white;
}



/* Container sizing */
.container {
    min-height: 400px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background-color: white;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Media queries */
@media screen and (max-width: 768px) {
    .container {
        min-height: 350px;
        padding: 25px;
        max-width: 95%;
    }
    
    .toggle-btn {
        padding: 10px 15px;
        min-width: 160px;
        font-size: 14px;
    }
    
    .mode-toggle {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .container.security-active {
        padding: 30px 20px;
    }
    
    .container.security-active .search-options {
        flex-direction: column;
    }
    
    .security-badges {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .container.security-active .input-container {
        max-width: 100%;
    }
}