/* Reset and Base Styles */
html {
    font-size: 16px;               /* 1rem = 16px */
    -webkit-text-size-adjust: 100%; /* disable auto‑resize */
  }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: black;
    color: #b0b0b0;
    font-family: Arial, sans-serif;
}

/* Layout Containers */
.container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
}

.side-div,
.footer-side-div {
    width: 200px;
    flex-shrink: 0;
}

.text-div, .form-div, .footer-div, .blurb-div {
    width: 800px;
    flex-shrink: 0;
}

.text-div, .blurb-div {
    padding: 50px 0;
}

.form-div {
    padding: 0;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.content-image {
    width: 300px;
    height: auto;
    margin-bottom: 0;
}

/* Typography */
.large-title, .medium-title {
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
    background: linear-gradient(90deg, #ffffff, #00FFAE, #ffffff);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s ease-in-out infinite alternate;
}

.large-title {
    font-size: 2.5rem;
}

.medium-title {
    font-size: 1.5rem;
    margin-top: 40px;
}

.title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.paragraph {
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
}

.footer {
    text-align: right;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #959595;
}

.blurb-feature{
    border: 1px solid #b0b0b050;
    border-radius: 8px;
    padding: 0px 16px 0px 16px;
    margin-top: 16px;
}

/* Links */
a {
    color: white;
    text-decoration: underline;
    transition: all 0.3s ease;
}

a:hover {
    color: white;
    text-decoration: none;
}

/* Tab Styles */
.tab-container {
    width: 100%;
    margin: 0;
    position: relative;
}

.tab-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.tab-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50vw;
    right: -50vw;
    height: 1px;
    background-color: #323232;
    z-index: 1;
}

.tab {
    width: 200px;
}

.tab-label {
    display: block;
    padding: 15px 0;
    cursor: pointer;
    background-color: transparent;
    color: #b0b0b0;
    text-align: center;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
}

/*Capsule banner for verify tab*/
.verify-note {
    display: inline-block;
    background-color: #262626;
    color: #b0b0b0;
    padding: 0.3em 0.8em;
    border-radius: 999em;
    font-size: 1rem;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
    line-height: 1.4;
}

.upload-status.processing {
    color: #00FFAE;
}

.tab-container input[type="radio"] {
    display: none;
}

/* Tab States */
input#tab1:checked ~ .tab-menu label[for="tab1"],
input#tab2:checked ~ .tab-menu label[for="tab2"] {
    color: #00FFAE;
}

input#tab1:checked ~ .tab-menu label[for="tab1"]::after,
input#tab2:checked ~ .tab-menu label[for="tab2"]::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00FFAE;
    z-index: 2;
}

.tab-content {
    display: none;
    border-top: none;
}

input#tab1:checked ~ #tab-content-add-hash,
input#tab2:checked ~ #tab-content-query-hash {
    display: block;
}

/* Form Elements */
.hash-instructions {
    text-align: left;
    margin: 30px 0 20px;
    color: white;
    width: 600px;
}

.hash-result-green {
    text-align: left;
    margin: 30px 0 20px;
    color: #00ffae;
    width: 600px;
    padding: 8px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    background-color: #00ffae40;
}

.hash-result-red {
    text-align: left;
    margin: 30px 0 20px;
    color: #FF5F61;
    width: 600px;
    padding: 8px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    background-color: #FF5F6140;
}

.hash-result-yellow {
    text-align: left;
    margin: 30px 0 20px;
    color: #FFB200;
    width: 600px;
    padding: 8px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    background-color: #FFB20040;
}

.hash-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hash-input {
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid white;
    background-color: #000;
    color: white;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 30px;
    box-sizing: border-box;  /* Add this */
}

/* Buttons */
.hash-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #000;
    color: #00FFAE;
    border: 1px solid #00FFAE;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.hash-button:disabled {
    border-width: 1px;
    border-color: lightgray;
    background-color: rgb(83, 83, 83);
    color: lightgray;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.hash-button:hover {
    background-color: #00ffae3e;
}

/* make the button positionable */
.hash-button {
    position: relative;
    overflow: hidden;
  }
  
  /* when loading, hide the text */
  .hash-button.loading {
    color: transparent;
    border-color: transparent;
    cursor: default;
  }
  
  /* spinner pseudo‑element */
  .hash-button.loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 1em; height: 1em;
    margin: -0.5em 0 0 -0.5em;
    border: 2px solid #00FFAE;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }  

.outline-button {
    background-color: #000;
    color: #00FFAE;
    padding: 10px 20px;
    border: 1px solid #00FFAE;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

.outline-button:hover {
    background-color: #00ffae3e;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0%; }
    100% { background-position: 100%; }
}

/*Upload*/
.p-upload{
    padding-top: 0px;
    margin-top:0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    line-height:25px;
}

.upload-area {
    border: 2px dashed #323232;
    border-radius: 4px;
    padding: 0px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.upload-area-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced from previous value */
    padding: 20px;
}

.upload-status {
    min-height: 0;
    margin: 0;
    display: none; /* This will be overridden when there's content */
}

.upload-status:not(:empty) {
    display: block; /* Show only when there's content */
}

.upload-area.dragover {
    border-color: #00FFAE;
    background-color: rgba(0, 255, 174, 0.1);
}

.file-select-button {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.file-select-button:hover {
    background-color: rgba(0, 255, 174, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Layout */
    .side-div, .footer-side-div {
        width: 16px;;
        flex: none;
    }

    .container{
        width: auto;
    }

    .text-div, .footer-div, .form-div, .blurb-div {
        width: calc(100% - 32px);
        padding: 20px 10px;
    }

    .form-div {
        padding-top: 0px;
    }

    /* Typography */
    .large-title, .medium-title {
        font-size: 1.5rem;
    }

    .title {
        font-size: 1.3rem;
    }

    .paragraph, .footer {
        font-size: 1rem;
    }

    /* Images */
    .content-image {
        width: 70%;
    }

    /* Widths */
    .hash-instructions, .paragraph, .large-title, .medium-title {
        width: 100%;
    }

    /* Form Elements */
    .hash-input-container {
        flex-direction: column;
        width: 100%;
    }

    .hash-input, .hash-button {
        width: 100%;
    }

    .hash-button {
        margin-top: 10px;
    }

    /* Tabs */
    .tab-container {
        width: 100%;     /* Change to full width */
        margin: 0;
        padding: 0;
    }

    .tab {
        width: 100px;
    }

    .tab-menu {
        justify-content: flex-start;
        margin-left: 0;
    }

    .tab-menu::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0vw;
        right: 0vw;
        height: 1px;
        background-color: #323232;
        z-index: 1;
    }

    .hash-input {
        padding-left: 10px;  /* Changed from 0px to 10px for better appearance */
        padding-right: 10px;
        margin-bottom: 10px;
    }
}