body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
}
/* Table container with a light shadow */
.table-container {
    margin: 25px 0;
    font-family: sans-serif;
    /* The shadow is now a semi-transparent white to be visible on a dark background */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.styled-table {
    border-collapse: collapse;
    width: 100%;
    color: #f1f1f1; /* Lighter text color for readability */
}

/* Header remains mostly the same, as it had a light text color */
.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

/* Row borders are now a lighter grey */
.styled-table tbody tr {
    border-bottom: 1px solid #ffffff;
}

/* Zebra-striping uses a slightly lighter shade of grey */
.styled-table tbody tr:nth-of-type(even) {
    background-color: #1a1a1b;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

/* Hover effect with a lighter background and bright text */
.styled-table tbody tr:hover {
    background-color: #2c2c2c;
    color: #ffffff; /* Ensure text stays white on hover */
    font-weight: bold;
    cursor: pointer;
}
/* Container for login/register pages */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}
.login-card, .register-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}
.card-title {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: #e0e0e0;
}
.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #45a049;
}
.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
}
.register-link a, .login-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}
.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.messages li {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #fff;
}
.messages li.success {
    background-color: #4CAF50;
}
.messages li.error {
    background-color: #f44336;
}
.alert-danger {
    color: #f44336;
    font-size: 0.8em;
}
.navbar {
    background-color: #1f1f1f;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #bdbdbd;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #4CAF50;
}
.main-content {
    padding: 2rem;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.header h1 {
    font-size: 2.5rem;
    color: #4CAF50;
}
/* Card Styles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 10px;
}
.card-description {
    font-size: 0.9rem;
    color: #a0a0a0;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #1f1f1f;
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover, .close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}
/* Form Styles */
.form-container {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 10px;
}
.form-container input, .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: #e0e0e0;
}
.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #45a049;
}
.add-card-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.add-card-button:hover {
    background-color: #45a049;
}
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.blog-card {
    background-color: #1f1f1f;
    border: 2px solid #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: #e0e0e0;
    display: block;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #4CAF50; /* Glow on hover */
}
.blog-title {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-top: 0;
}
.blog-meta {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 15px;
}
.blog-summary {
    font-size: 0.9rem;
    line-height: 1.6;
}
.blog-post {
    background-color: #1f1f1f;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: auto;
}
.blog-post h1 {
    color: #4CAF50;
}
.blog-post .blog-content {
    line-height: 1.8;
}
