/* Vision-Net Retro Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', sans-serif;
    background: white;
    color: black;
    line-height: 1.4;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.container-full {
    background: white;
    min-height: 100vh;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-top {
    background: white;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-top a {
    color: blue;
    text-decoration: none;
    font-size: 0.77em;
    font-weight: normal;
    margin: 0 20px;
    transition: color 0.3s;
}

.menu-top a:hover {
    color: darkblue;
}

/* Header */
header {
    background: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.header-bg {
    background: white;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.header-bg p {
    font-size: 0.84em;
    line-height: 1.6;
}

.title {
    font-size: 2.45em;
    font-weight: bold;
    margin-bottom: 10px;
    color: black;
}

.vision {
    color: black;
}

.dash {
    color: black;
    font-size: 0.84em;
}

.net {
    color: black;
}

.subtitle {
    font-size: 0.84em;
    color: black;
    margin-bottom: 30px;
}

.menu {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.menu a {
    color: blue;
    text-decoration: none;
    font-size: 0.77em;
    font-weight: normal;
    transition: color 0.3s;
}

.menu a:hover {
    color: darkblue;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    background: white;
    padding: 8px 15px;
    font-size: 0.9em;
    color: black;
}

/* Navigation */
.navbar {
    background: black;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar li {
    border-right: 1px solid white;
}

.navbar li:last-child {
    border-right: none;
}

.navbar a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.navbar a:hover {
    background: white;
    color: black;
}

/* Search Section */
.search-section {
    background: white;
    padding: 30px;
    text-align: center;
}

.search-section h2 {
    color: black;
    font-size: 1.26em;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#searchInput {
    padding: 12px;
    font-size: 0.77em;
    border: none;
    border-bottom: 2px solid black;
    background: white;
    color: black;
    font-family: 'Calibri', sans-serif;
    width: 400px;
    max-width: 100%;
}

#searchInput:focus {
    outline: none;
    border-bottom: 3px solid black;
}

button {
    background: black;
    color: white;
    border: none;
    padding: 12px 20px;
    font-family: 'Calibri', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

button:hover {
    background: white;
    color: black;
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

select {
    padding: 8px 12px;
    background: white;
    color: black;
    border: none;
    border-bottom: 2px solid black;
    font-family: 'Calibri', sans-serif;
}

/* Content */
.content {
    padding: 30px;
    margin: 0 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
}

.featured-section, .categories-section, .news-section {
    margin-bottom: 40px;
}

.featured-section h2, .categories-section h2, .news-section h2 {
    color: black;
    font-size: 1.26em;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 10px;
}

/* Dataset List */
.dataset-list {
    background: white;
}

.dataset-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    font-family: 'Calibri', sans-serif;
}

.help-text {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    text-align: center;
}

.dataset-item:last-child {
    border-bottom: 1px solid #eee;
}

.dataset-item:hover {
    background: #f5f5f5;
}

.dataset-name {
    font-weight: bold;
    color: black;
}

.dataset-category,
.dataset-size,
.dataset-format {
    color: black;
    font-size: 0.9em;
}

.request-btn {
    background: black;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.8em;
}

.request-btn:hover {
    background: white;
    color: black;
}

.categorize-btn {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.8em;
    border: none;
    cursor: pointer;
}

.categorize-btn:hover {
    background: #e55a2b;
}

.categorization-info {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #ff6b35;
}

.needs-help {
    background: #fff3e0 !important;
    border: 2px solid #ff6b35 !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid black;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: black;
    float: right;
    font-size: 19.6px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: grey;
}

.category-options {
    margin: 20px 0;
    text-align: left;
}

.category-options label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

.category-options input[type="radio"] {
    margin-right: 10px;
}

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.category-box {
    background: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-box:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.category-box h3 {
    color: black;
    font-size: 0.84em;
    margin-bottom: 8px;
    font-weight: bold;
}

.category-box p {
    color: black;
}

/* News Section */
.news-container {
    background: white;
    padding: 20px;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: black;
}

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

.news-date {
    color: black;
    font-weight: bold;
    margin-right: 10px;
}

.news-item strong {
    color: black;
    font-weight: bold;
}

/* About Page Styling */
.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    color: black;
    font-size: 1.26em;
    margin-bottom: 20px;
}

.about-section p {
    color: black;
    font-size: 0.84em;
    line-height: 1.6;
}

/* Upload Page Styling */
.upload-section {
    margin-bottom: 30px;
}

.upload-section h2, .upload-section h3 {
    color: black;
    margin-bottom: 20px;
}

.upload-section h3 {
    font-size: 1.05em;
    margin-top: 40px;
}

.upload-section ul {
    margin: 20px 0;
    padding-left: 20px;
}

.upload-section li {
    color: black;
    margin-bottom: 8px;
    font-size: 0.77em;
}

.form-factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.form-factor-item {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-factor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-factor-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.form-factor-item h4 {
    color: black;
    font-size: 0.84em;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-factor-item p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Upload Instructions Section */
.upload-instructions {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: flex-start;
}

.instructions-content {
    flex: 2;
}

.instructions-content h3 {
    color: black;
    font-size: 1.26em;
    margin-bottom: 30px;
}

.upload-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: black;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.84em;
    flex-shrink: 0;
}

.step-content h4 {
    color: black;
    font-size: 0.91em;
    margin-bottom: 8px;
    font-weight: bold;
}

.step-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.download-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    background: black;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.download-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.download-btn.ios {
    background: #007AFF;
}

.download-btn.android {
    background: #34A853;
}

.download-btn.ios:hover {
    background: #0056CC;
}

.download-btn.android:hover {
    background: #2E8B42;
}

/* QR Code Section */
.qr-code-section {
    flex: 1;
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.qr-code-section h4 {
    color: black;
    font-size: 0.84em;
    margin-bottom: 20px;
    font-weight: bold;
}

.qr-code {
    margin-bottom: 15px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.qr-code-section p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Footer */
footer {
    background: white;
    padding: 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-content p {
    color: grey;
    margin-bottom: 10px;
    font-size: 0.7em;
}

.footer-content a {
    color: white;
    text-decoration: underline;
}

.footer-content a:hover {
    color: #cccccc;
}

.visitor-counter {
    margin-top: 15px;
    color: white;
    font-family: 'Calibri', sans-serif;
    font-weight: bold;
    background: black;
    display: inline-block;
    padding: 8px 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5em;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar li {
        border-right: none;
        border-bottom: 1px solid white;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    #searchInput {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-factors-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .upload-instructions {
        flex-direction: column;
        gap: 30px;
    }
    
    .qr-code-section {
        align-self: center;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .form-factors-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: black;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}