/* ====================================================== */
/* ================ GLOBAL STYLES & VARIABLES ============== */
/* ====================================================== */

/* 
  NVIDIA-inspired color palette.
  - The iconic green is the primary accent.
  - Dark backgrounds and light text for high contrast and a "pro" feel.
*/
:root {
    --hoa-black: #000000;
    --dropdwn-bkgd: #000000;
    --background-dark: #ffffff;
    --card-dark: #ffffff;
    --text-light: #000000;
    --header-light: #ffffff;
    --header-dark: #000000;
    --border-dark: #3a3a3a;
    }

/* Basic reset and font settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* NVIDIA often uses a system font stack for performance and a native feel */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.7;
}

/* Main container for centering content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================================== */
/* =================== HEADER & NAVIGATION ================ */
/* ====================================================== */

header {
    background-color: var(--card-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1003;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1003;
}

.logo {
    display: flex;
    height: auto;
    align-items: center;
    gap: 15px; /* Space between icon and title */
}

.logo i {
    font-size: 2rem;
    color: var(--hoa-black); /* Used for the icon */
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--header-dark);
    font-weight: 600;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 15px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent; /* Prepare for hover effect */
    transition: color 0.3s, border-bottom-color 0.3s;
    z-index: 1002;
}

/* Hover effect inspired by NVIDIA's developer site */
nav a:hover {
    color: var(--hoa-black);
    border-bottom-color: var(--hoa-black);
    z-index: 1002;
}

nav .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s;
    z-index: 1003;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}


/* ====================================================== */
/* ================== DROPDOWN MENU STYLES ================ */
/* ====================================================== */

.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-dark);
    min-width: 220px;
    box-shadow: 0px 10px 20px rgba(122, 122, 122, 0.7);
    z-index: 9999;
    border-radius: 4px;
    border-top: 3px solid var(--hoa-black); /* Key branding element */
    margin-top: 15px;
    
}

.dropdown-content a {
    color: var(--text-light);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: none; /* Remove bottom border from nav style */
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--hoa-black);
    color: var(--header-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* ====================================================== */
/* =================== MAIN CONTENT STYLES ================ */
/* ====================================================== */

main {
    padding: 50px 0;
}

section {
    background-color: var(--card-dark);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 4px; /* Subtle rounded corners */
    border: 1px solid var(--border-dark);
}

section h2 {
    text-align: center;
    color: var(--hoa-black); /* Brand green for main section titles */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 15px;
}

section p {
    text-align: center;
    text-align: justify;
    font-size: 1.15rem;
}


/* ====================================================== */
/* ==================== FOOTER STYLES =================== */
/* ====================================================== */

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-dark);
    margin-top: 40px;
    color: #888;
}

footer a {
    color: var(--hoa-black);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* ====================================================== */
/* ==================== DOC UPLOAD STYLE =================== */
/* ====================================================== */

  #drop-zone {
    display: block;
    margin-left: auto; 
    margin-right: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgb(105, 105, 105);
    padding: 20px;
    border: 2px dashed #ccc;
    width: 300px; /* Adjust the width as needed */
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }
#drop-zone.hover {
  background: #eef;
  border-color: #339;
  }

  /* === File List === */
#file-list {
  align-items: center;
  justify-content: center;
  position: absolute;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 400px;
}

#file-list li {
  align-items: center;
  justify-content: center;
  position: absolute;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* === Upload Button === */
#upload-btn {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 1rem;
padding: 0.6rem 1.2rem;
font-size: 1rem;
background: #3399ff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

#upload-btn:disabled {
margin-left: auto;
margin-right: auto;
background: #aaa;
cursor: not-allowed;
}

/* === Progress Bar === */
progress {
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
  height: 1.2rem;
}

/* === Status Message === */
#status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ====================================================== */
/* ==================== TABLE STYLES =================== */
/* ====================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

th {
    background-color: var(--hoa-black);
    font-weight: bold;
    color: #333;
}

tr:nth-child(even) {
    background-color: #818181;
}