/* Default Light Mode */
body {
    background-color: #ffffff;  /* White background for light mode */
    color: #000000;  /* Black text for light mode */
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Gray Dark Mode */
body.dark-mode {
    background-color: #2e2e2e; /* Softer gray background */
    color: #e0e0e0; /* Light text for dark mode */
}

/* Form Elements */
input, select, textarea, button {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

/* Dark Mode Form Elements */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea, 
body.dark-mode button {
    background-color: #444; /* Darker background for inputs */
    color: #e0e0e0; /* Light text */
    border: 1px solid #666;
}

/* Button Styles */
button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3; /* Darker blue for hover */
}

/* Dark Mode Button */
body.dark-mode button {
    background-color: #444;
    color: #e0e0e0;
}

body.dark-mode button:hover {
    background-color: #333;
}

/* Links Styling */
a {
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Dark Mode Links */
body.dark-mode a {
    color: #80bfff;
}

body.dark-mode a:hover {
    color: #6699cc;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Default Table Styling (Light Mode) */
table th, table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Dark Mode Table Styling */
body.dark-mode table th,
body.dark-mode table td {
    border-color: #444;
}

body.dark-mode table th {
    background-color: #444; /* Darker gray for header */
    color: #fff; /* Light text */
}

body.dark-mode table tr:nth-child(odd) {
    background-color: #3a3a3a; /* Darker background for odd rows */
}

body.dark-mode table tr:nth-child(even) {
    background-color: #444; /* Even rows with different gray */
}

body.dark-mode table td {
    color: #e0e0e0; /* Text color for dark mode */
}

/* Highlighted Row (hover effect) */
body.dark-mode table tr:hover {
    background-color: #555;
}

/* Toggle Button Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

body.dark-mode .switch input:checked + .slider {
    background-color: #444;
}

/* Scrollable Table with Dark Mode */
body.dark-mode .table {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .table td, body.dark-mode .table th {
    border-color: #444;
}

