@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

body {
    background: linear-gradient(to bottom right, #0d1117, #161b22, #0d1117);
    color: #e0e0e0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.auth-container {
    background-color: rgba(25, 30, 38, 0.85);
    border: 1px solid #2c2f3a;
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    margin: 10vh auto 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #a0a9b8;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #61dafb;
    animation: fade-in 0.6s ease-out;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    max-width: 387px;
    padding: 10px 14px;
    border-radius: 0.5rem;
    background-color: #12151d;
    border: 1px solid #2c2f3a;
    color: #e0e0e0;
    outline: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: block;
    margin: 0 auto;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #61dafb;
    box-shadow: 0 0 8px #61dafb66;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    border-radius: 0.5rem;
    background-color: #61dafb;
    border: none;
    font-weight: 700;
    color: #0d1117;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background-color: #4ac1f7;
}

.flash-error {
    background-color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.dashboard-wrapper {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 2rem;
    color: #e0e0e0;
    animation: fade-in 0.6s ease-out;
    text-align: center;
}

.dashboard-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #61dafb;
}

.dashboard-subtitle {
    color: #8a9ba8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 1rem;
}

.card {
    background-color: #1c2128;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #c8d7e6;
    border: 1px solid #2c2f3a;
    backdrop-filter: saturate(180%) blur(8px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px #61dafb88;
    border-color: #61dafb;
    color: #e0f0ff;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #61dafb;
}

.card p {
    font-size: 0.95rem;
    color: #9aaabb;
}

.card-alt {
    background-color: #0a192f;
    border-color: #08406e;
    color: #9ab;
}

.card-alt:hover {
    background-color: #065f9a;
    border-color: #61dafb;
    color: #cde6ff;
}

.settings-wrapper {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #161b22cc;
    border-radius: 1rem;
    border: 1px solid #2c2f3a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    text-align: center;
    animation: fade-in 0.5s ease-in-out;
}

.settings-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #8a9ba8;
}

input[type="date"] {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #12151d;
    color: #e0e0e0;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.button-primary {
    padding: 0.75rem 1.5rem;
    background-color: #61dafb;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    color: #0d1117;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background-color: #4ac1f7;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.card-link:hover {
    transform: scale(1.02);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button-secondary {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid #61dafb;
    border-radius: 0.5rem;
    font-weight: 700;
    color: #61dafb;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-secondary:hover {
    background-color: #61dafb;
    color: #0d1117;
}

select {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #12151d;
    color: #e0e0e0;
    font-size: 1rem;
    width: 100%;
    max-width: 333px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%2361dafb' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: border 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #61dafb;
    box-shadow: 0 0 10px #61dafb88;
    background-color: #1a1f29;
}

select option {
    background-color: #1a1f29;
    color: #e0e0e0;
    padding: 0.3rem 0.6rem;
}

select option:hover {
    background-color: #26303e;
}

select::-ms-expand {
    display: none;
}

.results-container {
    max-width: 100%;
    overflow-x: auto;
    background-color: #12151d;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #2c2f3a;
}

table {
    border-collapse: collapse;
    width: 100%;
    color: #e0e0e0;
}

th,
td {
    padding: 0.7rem 1rem;
    border: 1px solid #2c2f3a;
    font-size: 0.9rem;
    text-align: left;
}

th {
    background-color: #1a1f29;
    color: #61dafb;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background-color: #181c25;
}

tr:hover {
    background-color: #26303e;
}

@media (max-width: 600px) {
    .auth-container,
    .dashboard-wrapper,
    .settings-wrapper {
        margin: 4rem 1rem 0 1rem;
        padding: 2rem 1.5rem;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 16px;
    }
}


.logger-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logger-card {
    background-color: #61dafb; 
    border: 1px solid #2c2f3a;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.logger-card:hover {
    background-color: #0f0f0f !important; 
    color: #61dafb !important; 
    border-color: #61dafb !important;
}

.devlogs-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #61dafb;
    border: none;
    border-radius: 0.75rem;
    color: #0d1117;
    font-weight: 700;
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    z-index: 999;
}
.devlogs-button:hover {
    background-color: #4ac1f7;
}

.devlogs-window {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 720px;
    background-color: rgba(22, 27, 34, 0.97);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 40px #61dafb88;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #2c2f3a;
    backdrop-filter: blur(12px);
}
.devlogs-window.hidden {
    display: none;
}
.devlogs-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.25rem;
    cursor: pointer;
    color: #e0e0e0;
}
.devlogs-title {
    color: #61dafb;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.devlogs-content {
    margin-bottom: 1.5rem;
}
.devlogs-entry {
    background-color: #12151d;
    border: 1px solid #2c2f3a;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.devlogs-entry time {
    font-size: 0.8rem;
    color: #8a9ba8;
}
.devlogs-entry .text {
    margin-top: 0.5rem;
    color: #c8d7e6;
}

.devlogs-editor textarea {
    width: 100%;
    height: 100px;
    background-color: #0d1117;
    color: #e0e0e0;
    border: 1px solid #2c2f3a;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.devlogs-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.devlogs-actions button {
    background-color: #61dafb;
    color: #0d1117;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
}
.devlogs-actions button:hover {
    background-color: #4ac1f7;
}