/* General Table Styling */
table, #movelist, #punishments-table, #mentalFrameTraps-table, #rank-points, #techniques-table, #otherChars-table, #stats-table {
    width: auto;
    margin: 0;
    border-collapse: collapse;
    background-color: #262626;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    border: 1px solid #444;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #ff4d4d;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

th:hover {
    background-color: #ff1a1a;
}

tr:nth-child(even) {
    background-color: #333;
}

tr:hover {
    background-color: #444;
    transition: background-color 0.3s ease;
}

/* General Content Styling */
.page-content, .page-theory-learning-plan {
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin: 0 ;
    padding: 20px;
}

/* Consolidated Theory and Learning Plan Pages */
.page-theory-learning-plan h2,
.page-theory-learning-plan h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ff4d4d; /* Red accent */
    margin-top: 40px; /* Increased margin-top for better separation */
    margin-bottom: 15px;
    border-bottom: 2px solid #ff4d4d; /* Red underline */
    padding-bottom: 5px;
    text-transform: uppercase;
}

.page-theory-learning-plan h3 {
    margin-top: 30px; /* Increased margin-top for better separation */
    margin-bottom: 15px;
}

.page-theory-learning-plan p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Notes Section */
.note {
    background-color: #333; /* Dark gray */
    padding: 15px;
    border-left: 5px solid #ff4d4d; /* Red accent */
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: left; /* Align to left */
    width: auto; /* Allow width to adjust to content */
    display: inline-block; /* Makes the box fit the content */
}

.note p {
    margin: 0;
    font-size: 0.95em;
    color: #ffffff;
}

.note a {
    color: #ff4d4d; /* Red accent */
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

.note p strong {
    color: #ffffff; /* Ensures "Resources:" stays white */
}

/* Divider Styling */
.divider {
    border: 0;
    height: 1px;
    background: #444; /* Dark gray line */
    margin: 20px auto;
    max-width: 800px;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ff4d4d;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: left; /* Align left */
}

h2 {
    font-size: 2em;
    margin-top: 40px; /* Increased top margin */
    margin-bottom: 20px; /* Increased bottom margin */
    text-align: left; /* Align left */
    border-top: 2px solid #ff4d4d; /* Red border on top */
    padding-top: 10px; /* Added padding to top */
    padding-bottom: 5px; /* Adjusted padding for a cleaner look */
}

h3 {
    font-size: 1.5em;
    margin-top: 30px; /* Increased top margin */
    margin-bottom: 15px;
    text-align: left; /* Align left */
}

/* Paragraphs */
p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: left; /* Align left */
}

/* Code Styling */
code {
    background-color: #333;
    color: #ff4d4d;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: left;
    color: #888;
    font-size: 0.9em;
}

/* Navigation Bar */
nav {
    background-color: #333;
    padding: 10px;
    text-align: left; /* Align the content to the left */
    margin-bottom: 20px;
    border-radius: 5px;
    width: 100%;
    position: relative; /* Required for absolute positioning of submenu */
}

nav a {
    color: #ff4d4d;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

nav a:hover {
    color: #ff1a1a;
    text-decoration: underline;
}

nav a.active {
    color: #ffffff;
    background-color: #ff4d4d;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Search Box Styling */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 200px;  /* Keeps the width limited */
    margin-bottom: 15px;
}

/* Search Input Field */
#searchBox {
    flex: 1; /* Takes full width */
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ff4d4d;
    border-radius: 8px;
    background-color: #222;
    color: white;
    font-family: "Roboto", sans-serif;
    transition: border-color 0.3s ease;
}

#searchBox:focus {
    border-color: #ffeb3b; /* Yellow highlight on focus */
    outline: none;
}

/* Dropdown Menu */
#columnSelect {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ff4d4d;
    border-radius: 8px;
    background-color: #222;
    color: white;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#columnSelect:hover, #columnSelect:focus {
    border-color: #ffeb3b;
}

/* Search Button (if needed) */
.search-box button {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #ff1a1a;
}


/* Tables */
#techniques-table {
    width: auto;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #262626; /* Dark gray */
    color: #ffffff; /* White text */
}

#techniques-table th, #techniques-table td {
    padding: 12px;
    border: 1px solid #444; /* Darker borders */
    text-align: left; /* Left align text */
}

#techniques-table th {
    background-color: #ff4d4d; /* Red header */
    color: #ffffff;
    font-weight: bold;
}

#techniques-table tr:nth-child(even) {
    background-color: #333; /* Alternate row color */
}

#techniques-table tr:hover {
    background-color: #444; /* Hover effect */
    transition: background-color 0.3s ease;
}

/* Rank Color Classes */
.rank-green { color: #00FF00; font-weight: bold; }
.rank-yellow { color: #FFEB3B; font-weight: bold; }
.rank-orange { color: #FF9800; font-weight: bold; }
.rank-red { color: #F44336; font-weight: bold; }
.rank-purple { color: #9C27B0; font-weight: bold; }
.rank-blue { color: #2196F3; font-weight: bold; }
.rank-tekken-king { color: #FFD700; font-weight: bold; }

/* Index Menu */
#index-menu {
    background-color: #333;
    padding: 10px;
    text-align: left;
    margin-bottom: 20px;
    border-radius: 5px;
}

#index-menu a {
    color: #ff4d4d;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

#index-menu a:hover {
    color: #ff1a1a;
    text-decoration: underline;
}

/* Learning Plan tables */
#rank-goals, #greenYellowOrangeGoals, #redGoals, #purpleGoals, #blueGoals, #tKingPlusGoals {
    width: auto;
    border-collapse: collapse;
    text-align: left; /* Align text left */
}

#rank-goals th, #greenYellowOrangeGoals th, #redGoals th, #purpleGoals th, #blueGoals th, #tKingPlusGoals th {
    background-color: #f3f3f3; /* Preferred header background color */
    color: #ffffff;
    padding: 15px; /* Same padding for both tables */
    vertical-align: top; /* Align text to the top of the cell */
}

#rank-goals td, #greenYellowOrangeGoals td, #redGoals td, #purpleGoals td, #blueGoals td, #tKingPlusGoals td {
    padding: 12px;
    border: 1px solid #ccc;
    vertical-align: top; /* Align text to the top of the cell */
}

#rank-goals tr:nth-child(even), #greenYellowOrangeGoals tr:nth-child(even), #redGoals tr:nth-child(even), #purpleGoals tr:nth-child(even), #blueGoals tr:nth-child(even), #tKingPlusGoals tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Header color change for #greenYellowOrangeGoals only */
#greenYellowOrangeGoals th {
    background-color: #ffeb3b; /* Different header color for this table */
    color: black; /* Black text for the second table header */
}

/* Full-page container */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* General link styling for readability */
a {
    color: #ff4d4d; /* Red accent */
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #ff1a1a; /* Brighter red on hover */
    text-decoration: underline;
}

/* Drill collapsible styling */
.drill-section {
    border: 2px solid #444;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #222;
}

.drill-title {
    cursor: pointer;
    background-color: #333;
    padding: 10px 15px;
    margin: 0; /* Remove any extra margin */
    border-radius: 10px;
    width: fit-content; /* Border fits content */
    border: 2px solid #4db8ff; /* Adds the border */
    display: inline-block; /* Keeps it left-aligned */
}

.drill-title:hover {
    background-color: #555;
}

.drill-content {
    display: none;
    padding: 10px;
    border-top: 1px solid #444;
}

/* Statistics Form Styling */
form div {
    margin-bottom: 15px;
}

input {
    padding: 10px;
    margin: 5px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}

button {
    padding: 10px 15px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff1a1a;
}

/* Form Input Fields in a Row */
.form-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping when needed */
    gap: 10px; /* Space between inputs */
    align-items: center; /* Align input fields vertically */
}

/* Specific styling for Success, Defended, and Whiffed input boxes */
.form-row input[type="number"] {
    width: 80px; /* Smaller width for the numerical inputs */
}

/* Button aligned next to Whiffed */
.form-row button {
    width: auto;
    padding: 10px 15px;
    background-color: #ff4d4d; /* Button color */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-row button:hover {
    background-color: #ff1a1a;
}

/* Style for the Export and Upload Section */
.backup-section {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Make both button and file input look the same */
.backup-section button,
.backup-section label {
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #ff4d4d;
    color: #ffffff;  /* White text for both buttons */
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block; /* Ensure label behaves like a button */
    text-align: center; /* Center the text */
    min-width: 160px; /* Set a minimum width for consistent size */
    text-align: center;
    font-size: 16px; /* Ensures text inside the button is of the same size */
}

/* Add hover effect */
.backup-section button:hover,
.backup-section label:hover {
    background-color: #ff1a1a;
}

/* Hide the file input but keep the label styled */
.backup-section input[type="file"] {
    display: none; /* Hides the file input element */
}

/* Styling for the label when associated with file input */
.backup-section input[type="file"]:focus + label {
    outline: 2px solid #ffeb3b; /* Yellow border when file input is focused */
}