/* Default light theme styles */
.status-unread {
    color: #4a90e2;
}

.status-accepted {
    color: green;
}

.status-denied {
    color: red;
}

header {
    height: 64px;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.submissions-page,
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding-top: 20px;
    overflow: hidden;
}

.submissions-page h1,
.login-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.submissions-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    width: 100%;
    max-width: calc(100% - 60px);
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 1rem; /* Optional: Adds space between items */
}

.submission-card {
    width: calc(33.333% - 1rem); /* 33.333% width minus the gap */
    box-sizing: border-box;
    margin-bottom: 1rem; /* Space between rows */
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.submission-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.submission-card p,
.login-page form input {
    margin: 0.5rem 0;
}

.submission-card a {
    color: #007bff;
    text-decoration: none;
}

.submission-card a:hover {
    text-decoration: underline;
}

/* Styles for the login page */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px); /* Adjust height considering header */
    padding-top: 20px;
    overflow: hidden;
}

.login-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem; /* Space between title and form */
}

.login-page form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(100vh - 128px); /* Limits the form width */
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.login-page form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.login-page form input {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Lexend Deca", sans-serif;
}

.login-page form button {
    font-family: "Lexend Deca", sans-serif;
    padding: 0.75rem;
    background-color: #595959; /* Primary button color */
    color: #fff; /* Button text color */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.login-page form button:hover {
    background-color: #404040; /* Darker shade on hover */
}

.login-page .error-message {
    color: #ff3a3a;
    font-size: 0.875rem;
    padding-top: 10px;
    text-align: center;
}

/* Dark theme styles when 'dark' class is applied to the root element */

.dark header {
    background-color: #333;
    color: #fff;
}

.dark .submissions-page,
.dark .login-page {
    background-color: #1c1b1f;
    color: #fff;
    color-scheme: dark;
}

.dark .submissions-list,
.dark .login-page form {
    background-color: #1c1b1f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark .submission-card {
    background-color: #1c1b1f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark .submission-card a {
    color: #4a90e2;
}

.dark .login-page form button {
    background-color: #595959;
    color: #fff;
}

.dark .login-page form button:hover {
    background-color: #3a3a3a;
}

/* New styles for action buttons */
.submission-actions {
    margin-top: 1rem;
}

.accept-button,
.deny-button {
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.accept-button {
    background-color: green;
}

.deny-button {
    background-color: red;
}

.accept-button:hover,
.deny-button:hover {
    opacity: 0.8;
}

/* Add button styles for dark theme */
.dark .accept-button {
    background-color: #00b700;
}

.dark .deny-button {
    background-color: red;
}
