* {
    font-family: "Lato", sans-serif;
}
html, body{
    margin: 0;
    padding: 0;
    color: #000;
    font-weight: 400;
    font-style: normal;
    box-sizing: border-box;
    background-color: white;
    font-size: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.page-wrapper {
    flex: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    background-color: #ffffff;
    align-items: center;
    padding: 8px 40px;
    border-bottom: 1.2px solid #d6d6d6;
    font-size: 14px;
    flex-wrap: wrap;
}

.nav-logo {
    max-width: 100%;
    height: auto;
}

.right-navs, .toggle-navs, .nav-flex, .nav-flex-center {
    display: flex;
    align-items: center;
}

.toggle-navs div {
    padding: 10px 10px;
    cursor: pointer;
    color: #ffffff;
    background-color: #1e55cd;
}
.needs-text {
    font-size: 12px;
}

.toggle-navs div:hover {
    background-color: #163e94;
    transition: 0.1s ease-in;

}

.results-section {
    padding: 0 90px;
    width: 100%;
    overflow: auto;
}

.content-row {
    display: flex;
    justify-content: center;
}

.main-card {
    border-radius: 17px;
    margin: 40px 20px 40px 20px;
    padding: 0;
}

input {
      font-size: 13px;
}

.title {
    font-weight: 500;
    font-size: 25px;
    margin: 0;
    padding: 0;
    font-family: "Georgia";
}

.subtitle {
    font-size: 13px;
    color: #666;
}

.form-row, .form-row-bottom {
    display: flex;
    gap: 20px;
}

.article-input, .article-input-wide, .geo-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

#page-1 {
    display: block;
}


#page-2 {
    display: none;
}

.article-input label {
    padding: 10px 0;
    font-weight: 500;
    display: block;
}

textarea {
    width: 378px;
    padding: 11px;
    border-radius: 4px;
    border: 1px solid #d6d6d6;
    outline: none;
    overflow: hidden;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

.article-input input,
.geo-input,
#button-page-1,
#button-page-2 {
    border: 1px solid #d6d6d6;
    padding: 11px 11px 11px 11px;
    border-radius: 2px;
    outline: none;
}

#button-page-1, #button-page-2 {
    width: 100%;
    cursor: pointer;
    font-size: 12px;
    background-color: white;
}

#button-page-1:hover,
#button-page-2:hover {
    border: 1.3px solid #255eda;
    background-color: rgba(210, 223, 249, 0.5);
    transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#button-page-1.active,
#button-page-2.active,
#button-page-1.first-button {
    border: 1.3px solid rgb(51, 102, 204);
    background-color: rgba(210, 223, 249, 0.5);
    color: black;
}

.geo-input {
    cursor: pointer;
}

.article-button,
#reset-btn {
    cursor: pointer;
    background-color: rgb(51, 102, 204);
    color: white;
    font-weight: 500;
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 2px;
    font-weight: bold;
}

.article-button:hover,
#reset-btn:hover,
.filter-toggle-all:hover {
    background-color: #163e94;
    color: rgb(255, 255, 255);
}

.progress-bar {
    margin-bottom: 5px;
    position: relative;
    background: #e0e0e0;
    border-radius: 6px;
    height: 9px;
}

.progress-bar-percentage {
    background-color: #4676de;
    height: 9px;
    border-radius: 6px;
    transition: width 0.3s;
}

.progress-percentage {
    font-size: 11px;
    margin-left: 4px;
}

.progress-text {
    font-size: 12px !important;
}

.button-align-bottom {
    display: flex;
    align-items: end;
}

.button-margin-top {
    margin-top: 15px;
}

#category-suggestions {
    border: 1px solid #d6d6d6;
    display: none;
    background: #fff;
    cursor: pointer;
    position: absolute;
    z-index: 1000;
    top: 100%;
    border-radius: 4px;
    transition: background 0.2s;
    width: 100%;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    flex-direction: row;
}

.filter-label {
    font-weight: 500;
}

.filters > * {
    display: flex;
    align-items: center;
}

.top-datatable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.top-datatable .dataTables_length,
.top-datatable .dataTables_filter {
    text-align: center;
    padding: 0 10px 30px 10px;
    font-size: 12px;
}

.author {
    font-size: 13px;
}
footer{
        background-color: #f2f2f2;
        padding: 14px 0 14px 12px;
        border-top: 1px solid #d6d6d6;
        margin-top: auto;
}

.author-info {
    display: flex;
}

.author-name {
    color: #666;
}

.author-info div {
    padding: 5px;
}

.author-link {
    color: #006cb6;
    text-decoration: none;
}

.author-link:hover{
    text-decoration: underline;
}
.dt-control {
  cursor: pointer;
  text-align: center;
  user-select: none;
}
.progress{
    font-family: "Lato", sans-serif;
}

.toggle-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: #1e55cd;
  transition: transform 0.2s;
}

.dt-control:hover .toggle-icon {
  color: #0d3d8f;
  transform: scale(1.2);
}

.row-details {
  font-size: 10px !important;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  max-width: 1200px;
}

#t-head th span a {
  display: block;
  font-size: 0.9rem !important;
  color: #36c;
  margin-top: 2px;
  cursor: pointer;
  text-decoration: underline;
  font-weight: lighter;
}

.about-page {
    background-color: #36c;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
}
.about-page a {
    text-decoration: none;
    color: white;
}

.about-page:hover{
    background-color: #0d3d8f;
}

.feature-item {
  padding: 9px;
  border: 1px solid #e3e3e3;
  margin: 0 3px;
border-radius: 4px;
background-color: rgb(253, 253, 253);
}

.feature-label {
font-weight: 500;
  margin-bottom: 8px;
    font-size: 10px !important;
}

.feature-bar-container {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 250px;
}

.feature-bar {
  flex: 1;
  height: 10px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.feature-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
  position: relative;
  width: 100%;
}

.feature-bar-fill.good {
  background: #4676de;
}

.feature-percentage {
  font-size: 12px;
  min-width: 40px;
  text-align: right;
  font-weight: 500;
}
#resultsTable tbody tr.shown {
    background-color: #f5f9ff !important;
}

tr.shown {
  background-color: #ffffff !important;
}

.topic-link {
    color: #1e55cd;
    text-decoration: none;
}
.topic-link:hover{
    text-decoration: underline;
}

#resultsContainer {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
}

#progress-message,
#category-message {
    text-align: center;
    margin: 10px 0;
}

#progress-message {
    font-weight: bold;
}

#category-message {
    color: red;
}

.results-section-container,
.dataTables_wrapper {
    min-width: 100%;
}

.dataTable {
 margin-left: 0;
}

table.dataTable {
    width: 100%;
    border-collapse: collapse;
}

table.dataTable th,
table.dataTable td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table.dataTable thead th {
    background-color: #f2f2f2;
    font-size: 14px;
}
table.dataTable thead {
    width: 100% !important;
}

#resultsTable {
    width: 100%;
    min-width: unset !important;
    border-collapse: collapse;
}

#resultsTable thead {
    display: table-header-group !important;
    visibility: visible !important;
}

#resultsTable tbody tr {
    cursor: pointer;
}

#resultsTable tbody tr.shown {
    background-color: #f9f9f9;
}

.reset-wrapper {
    display: flex;
    justify-content: flex-end;
}

#reset-btn {
    display: none;
    margin: 8px 0;
    height: 40px;
    width: 190px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #3366cc;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

input[type="checkbox"] {
    accent-color: #4676de;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.edit-text {
    color: #255eda;
    text-decoration: none;
}

.filter-btn {
    border: none;
    padding: 14px;
    cursor: pointer;
    font-size: 12px;
    color: black;
    width: 100%;
    flex: 1;
}

.results-section-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    margin: 0 auto;
}

.filter-scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-bottom: 40px;
}

.filters-container {
    display: none;
    padding: 20px 90px;
    flex-direction: row;
    gap: 20px;
}

.filter-content-container.all-button {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 6px 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.filter-content-container.all-button:hover {
    background-color: white;
}

.action-button {
    border: none;
    cursor: pointer;
    padding: 5px;
}

.action-button:hover {
    background-color: #7f8285;
    color: white;
}

.inner-section-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1.5px solid #ddd;
}

.section-box ul {
    margin: 5px 0 0 18px;
}

.details-box {
    margin-top: 8px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.filter-dropdown {
    display: none;
    position: relative;
}

.filter-toggle {
    border-radius: 17px;
    padding: 9px 18px;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid rgb(0, 0, 0);
    color: black;
}

.filter-toggle-all {
    border-radius: 17px;
    padding: 8px;
    background: #3366cc;
    cursor: pointer;
    font-size: 12px;
    border: none;
    color: rgb(255, 255, 255);
    width: 150px;
    text-align: center;
}

.filter-toggle.active {
    background: rgb(51, 102, 204);
    color: #fff;
    border: 1px solid white;
}

.filter-content-container {
    display: flex;
    padding: 0 10px;
    height: 100%;
    flex-direction: row;
}

.filter-content-container:hover {
    background-color: #f3f3f3;
    cursor: pointer;
}

.filter-content {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    top: 35px;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.dataTables_filter input:focus {
    outline: none;
    box-shadow: none;
}

.dataTables_scrollHeadInner {
    width: 100% !important;
}

.dataTables_paginate {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    z-index: 10;
}

.article-row {
    cursor: pointer;
}

.article-row:hover {
    background: #f0f0f0;
}

input::placeholder,
#titles::placeholder {
    font-size: 13px;
}

#t-head{
    font-family: "Lato", sans-serif;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s;
    font-weight: bold;
}

.article-row:hover .arrow {
    color: #ffffff;
}

.top-datatable,
.bottom-datatable {
    margin: 0 !important;
    padding: 5px 0 !important;
    gap: 5px !important;
}

.top-datatable > div,
.bottom-datatable > div {
    margin: 0 !important;
    padding: 0 5px !important;
}

.dataTables_length,
.dataTables_filter,
.dataTables_paginate,
.dataTables_info {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 2 !important;
}

.export-dropdown-content a:hover {
    background-color: #f1f1f1;
}
.export-toggle:hover {
    background-color: #e7e7e7;
}

.export-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    z-index: 1;
}

.export-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.export-toggle {
    padding: 8px 16px;
    cursor: pointer;
    margin-right: 10px;
}
.export-toggle span {
    color: rgb(108, 108, 108);
    font-size: 12px;
}

.export-buttons {
    display: none;
    margin-bottom: 15px;
}
.copy-wiki {
    padding: 8px 16px;
    cursor: pointer;
}
.export-dropdown {
    position: relative;
    display: inline-block;
}



.need-tip:hover::after {
    display: block;
}

.dataTables_wrapper,
.dataTables_wrapper * {
    font-size: 14px !important;
}

table.dataTable tbody td {
    font-size: 12px !important;
}

.dataTables_wrapper {
    padding: 0 !important;
}

.main-content {
    display: flex;
    justify-content: center;
}


#top-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: #36c;
    z-index: 9999;
    transition: width 0.3s ease;
}

.article-input-wide {
    width: 100%;
}

.textarea-row {
    display: flex;
    align-items: end;
    gap: 20px;
}

#titles {
    width: 100%;
    padding: 11px;
    border-radius: 4px;
    border: 1px solid #d6d6d6;
    outline: none;
    overflow: hidden;
    overflow-y: auto;
    resize: vertical;
}

#category-input,
#category-limit {
    border: 1px solid #d6d6d6;
    padding: 11px 0 11px 11px;
    border-radius: 4px;
}

.progress-text, .view-button {
  font-size: 12px !important;
}

.view-button {
    border: none;
    background: none;
    color: #1e55cd;
    text-decoration: underline;
    outline: none;
    cursor: pointer;
}

input {
  cursor: text;
}
.row-details {
  background-color: #f8f8f8;
  margin: 4px 0;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}

.feature-label {
font-weight: 500;
  margin-bottom: 8px;
    font-size: 12px !important;
}
.feature-percentage {
  font-size: 12px !important;
  min-width: 40px;
  text-align: right;
  font-weight: 500;
}
.need-tip {
    cursor: help;
    border-bottom: 1px dotted #555;
    font-size: 12px !important;
    position: relative;
}
@media (max-width: 768px) {

    nav {
        padding: 8px 20px;
    }


    input {
      font-size: 12px;
    }

    #button-page-1,
    #button-page-2 {
        font-size: 9px;
        padding: 9px 1px;
        outline: none;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 11px;
    }

    td {
        padding: 2px 3px;
        font-size: 12px;
        text-align: left;
    }

    th {
        padding: 4px 2px;
        text-align: left;
        background-color: #f8f8f8;
        font-size: 12px;
    }

    .article-input label {
        font-size: 11px;
    }

    .author {
        font-size: 10px;
        margin: 0;
    }

    .action-button {
        font-size: 10px;
        background: none;
        color: #255eda;
        text-decoration: underline;
        padding: 5px 0;
        text-align: left;
    }

    .action-button-container {
        display: flex;
        flex-direction: column;
        background-color: none;
    }

    .action-button:hover {
        background: none;
        color: #255eda;
    }

    .top-datatable,
    .bottom-datatable {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        margin-bottom: 5px !important;
    }

    footer {
        margin-top: auto;
    }

    .top-datatable > div,
    .bottom-datatable > div {
        margin: 0 !important;
        padding: 2px 0 !important;
    }

    .top-datatable .dataTables_filter {
        flex: 1 1 50% !important;
        text-align: left !important;
        width: auto !important;
        margin: 0 !important;
        padding: 2px 0 !important;
    }

    .top-datatable .dataTables_paginate {
        flex: 1 1 50% !important;
        text-align: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 2px 0 !important;
    }

    .top-datatable .dataTables_info,
    .top-datatable .dataTables_length {
        display: none !important;
    }

    .bottom-datatable .dataTables_length{
        display: none !important;
    }

    .bottom-datatable .dataTables_info {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 12px !important;
        margin: 3px 0 !important;
    }

    .dataTables_length label,
    .dataTables_filter label {
        margin: 0 !important;
        line-height: 1.3 !important;
    }

    input::placeholder,
    #titles::placeholder {
        font-size: 10px;
    }

    .filter-btn {
        padding: 5px;
    }

    #reset-btn {
        width: 140px;
    }

    .content-row {
        margin: 0;
    }

    .main-content {
        display: flex;
        justify-content: center;
    }

    .results-section {
        padding: 0 20px;
    }

    .results-section-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filters-container {
        gap: 10px;
        padding: 15px 20px;
    }

    .dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
    width: 100% !important;
    min-width: unset !important;
}

.dataTables_scrollBody {
    overflow-y: visible !important;
    max-height: none !important;
}

#resultsTable tbody tr {
    height: auto !important;
}

#resultsTable tbody td {
    padding: 6px 4px !important;
    vertical-align: middle !important;
}

.dataTables_scroll {
    overflow: visible !important;
}
}
