/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212; /* Dark background for body */
    color: #e0e0e0; /* Light text color */
    line-height: 1.6;
    padding: 20px;
}

/* Header */
header {
    background-color: #1f1f1f;
    color: #f0f0f0;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin: 0;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: #f0f0f0;
    text-decoration: none;
    padding: 10px;
    margin: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: #4CAF50;
}

/* Card Container */
.card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h3,
.card h4 {
    color: #e0e0e0;
}

/* Form Elements */
.form-label {
    color: #e0e0e0; /* Lighter text for labels */
    font-weight: bold;
}

.form-input {
    background-color: #333; /* Dark background for inputs */
    color: #f0f0f0; /* Light text inside input */
    border: 1px solid #444;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
}

.form-input:focus {
    border-color: #4CAF50; /* Highlight on focus */
}

.form-checkbox-input {
    accent-color: #4CAF50; /* Customize checkbox color for dark theme */
}

/* Buttons */
.btn-submit {
    background-color: #4CAF50; /* Green button for dark theme */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #45a049; /* Hover effect */
}

/* Links */
.dark-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
}

.dark-link:hover {
    color: #4CAF50; /* Highlight color for links */
}

/* Error Message */
.error-message {
    color: #f44336; /* Red color for error messages */
    font-weight: bold;
}

/* Page Titles */
.page-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Navigation Bar */
nav {
    background-color: #1f1f1f;
    padding: 15px;
    text-align: center;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    padding: 10px;
    margin: 0 5px;
    border-radius: 4px;
}

nav a:hover {
    background-color: #4CAF50;
}

/* Footer */
footer {
    background-color: #1f1f1f;
    color: #e0e0e0;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 15px;
    }

    .form-input, .btn-submit {
        width: 100%;
    }
}

/* Modal (Optional for alerts or dialogs) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #1f1f1f;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 400px;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.modal-close:hover,
.modal-close:focus {
    color: #f44336;
    text-decoration: none;
    cursor: pointer;
}

/* Cards */
.card-header {
    font-size: 1.5em;
    color: #e0e0e0;
}

.card-body {
    margin-top: 10px;
}

.card-footer {
    font-size: 0.9em;
    color: #9e9e9e;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* Add some space above the table */
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
    /* color: #e0e0e0; */
    /* Remove forced color so class-based styles apply */
    /* Or set it only if no color class is present */
    /* Optional fallback */
    color: inherit;
}

table th {
    background-color: #333;
    font-weight: bold;
    text-transform: uppercase; /* Make the table headers uppercase for better readability */
}

table tr:hover {
    background-color: #333; /* Darken the row when hovered */
    cursor: pointer; /* Make the pointer a hand to show it's clickable */
}

table td {
    font-size: 1.1em; /* Increase font size for better readability */
}

/* Custom Row Styling for Specific Columns */
table td:nth-child(2) {
    font-weight: bold;
    color: #f1c40f; /* Highlight Name column with a gold color */
}

table td:nth-child(6) {
    font-weight: bold;
    color: #e74c3c; /* Color for Class */
}

/* Card Styling */
.card {
    background-color: #1f1f1f;
    border-radius: 10px;
    border: 1px solid #333;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Add shadow for better depth */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Add hover effect for the card */
}

/* Page Title Styling */
.page-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

/* Header Styling */
header {
    background-color: #1f1f1f;
    color: #f0f0f0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Slight shadow for the header */
}

/* Table Row Hover Effects */
table tr:hover {
    background-color: #444;
    transform: scale(1.02); /* Slightly scale up the row on hover */
}

/* Styling Table Columns */
table th:nth-child(1) {
    width: 5%;
}

table th:nth-child(2) {
    width: 30%;
}

table th:nth-child(3),
table th:nth-child(4) {
    width: 15%;
}

table th:nth-child(5) {
    width: 20%;
}

table th:nth-child(6) {
    width: 15%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4CAF50;
}

/* Nation and Status Colors */
.lightpurple {
    color: #b19cd9; /* Light Purple */
}

.lightblue {
    color: #add8e6; /* Light Blue */
}

.lightgreen {
    color: #90ee90; /* Light Green */
}

.red {
    color: #f44336; /* Red */
}

.darkgreen {
    color: #388e3c; /* Dark Green */
}

.news-list {
    margin-top: 20px;
}

.news-item {
    background-color: #1c1c1c;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.news-item h3 {
    margin: 0;
    color: #00ffff;
}

.news-item small {
    color: #aaa;
    display: block;
    margin-bottom: 10px;
}

.news-item p {
    color: #ddd;
}

.container {
    max-width: 1920px;
    margin: 40px auto;
    padding: 0 20px;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
}
.container {
    max-width: 1920px;
    margin: 40px auto;
    padding: 0 20px;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
}
.page-title, .news-title {
    text-align: center;
    color: #00bcd4;
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.1);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
}

.news-date {
    font-size: 14px;
    color: #999;
}

.news-content {
    font-size: 16px;
    line-height: 1.5;
}

.no-news {
    text-align: center;
    color: #999;
}

.page-title {
    text-align: center;
    margin-bottom: 25px;
    color: #00bcd4;
}

.card {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.1);
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #ccc;
}

.form-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    margin-bottom: 15px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    color: #aaa;
}

.form-checkbox input {
    margin-right: 6px;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-submit {
    width: 100%;
    background: #00bcd4;
    border: none;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0097a7;
}

.user-panel h2 {
    text-align: center;
    color: #fff;
}

.user-panel .highlight {
    color: #00e5ff;
}

.user-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.user-links li {
    margin-bottom: 10px;
    text-align: center;
}

.dark-link {
    color: #00bcd4;
    text-decoration: none;
}

.dark-link:hover {
    text-decoration: underline;
}

.info-message,
.error-message {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
}

.info-message {
    background: #2c3e50;
    color: #76d7c4;
}

.error-message {
    background: #c0392b;
    color: #fff;
}

.collapsible-item {
    border-bottom: 1px solid #333;
}

.collapsible-toggle {
    width: 100%;
    background: none;
    color: #00bcd4;
    text-align: left;
    font-weight: bold;
    padding: 12px 15px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.collapsible-toggle:hover,
.collapsible-toggle.active {
    background: #2c2c2c;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #1b1b1b;
    color: #ccc;
    padding: 0 25px;
}
