:root {
    --primary-color: #2C3E50;
    --bg-color: #F4F7F6;
    --text-color: #333333;
    --white: #FFFFFF;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --border-color: #DDD;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    width: 80px;
    height: 80px;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
}

input[readonly] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #ced4da;
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:active {
    opacity: 0.8;
}

/* Dashboard Specifics */
.dashboard-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.question-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777;
}

.card-name {
    font-weight: bold;
    color: var(--primary-color);
}

.card-topic {
    font-style: italic;
    color: #555;
    font-size: 0.85rem;
}

.card-question {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.card-actions button {
    padding: 8px 2px;
    font-size: 0.75rem;
    border-radius: 4px;
    width: auto;
}

.btn-answered { background-color: var(--success); }
.btn-later { background-color: var(--warning); }
.btn-not-relevant { background-color: var(--danger); }

/* Toast */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

/* Login Page */
.login-container {
    width: 100%;
    max-width: 400px;
}
