:root {
    --duo-green: #58cc02;
    --duo-green-shadow: #58a700;
    --duo-blue: #1cb0f6;
    --duo-blue-shadow: #1899d6;
    --duo-gray: #e5e5e5;
    --duo-text: #4b4b4b;
    --duo-bg: #ffffff;
    --card-border: #e5e5e5;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #f7f7f7;
    /* Very light gray bg */
    color: var(--duo-text);
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--duo-green);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo span.icon {
    font-size: 32px;
}

.logo h1 span {
    color: var(--duo-text);
}

.status-badge {
    background: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 0 var(--card-border);
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border: 2px solid var(--card-border);
    border-radius: 16px;
    /* Rounded card corners */
    /* Duolingo style "chunkiness" via bottom border */
    box-shadow: 0 4px 0 var(--card-border);
    overflow: hidden;
}

.card-header {
    padding: 24px;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    font-size: 24px;
}

.card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--duo-text);
}

.card-body {
    padding: 24px;
}

.description {
    color: #777;
    margin-bottom: 20px;
    font-weight: 600;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 16px;
    background: #f7f7f7;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    margin-bottom: 16px;
    outline: none;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--duo-blue);
    background: white;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-primary {
    background-color: var(--duo-green);
    color: white;
    box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn-primary:active {
    box-shadow: none;
    transform: translateY(4px);
}

.btn-secondary {
    background-color: var(--duo-blue);
    color: white;
    box-shadow: 0 4px 0 var(--duo-blue-shadow);
}

.btn-secondary:active {
    box-shadow: none;
    transform: translateY(4px);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    margin-bottom: 0;
}

.input-group button {
    width: auto;
    padding: 0 24px;
}

.queue-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.queue-item {
    padding: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: #afafaf;
    font-weight: 700;
}

.version {
    display: inline-block;
    background: #eee;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
}

.queue-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #4b4b4b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-delete {
    background: #ff4b4b;
    border: none;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.btn-delete:hover {
    background: #e63e3e;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 0 #e5e5e5;
    width: 300px;
    text-align: center;
}

.modal h2 {
    margin-top: 0;
    color: var(--duo-text);
}

.modal .input-group {
    display: block;
    margin-bottom: 1rem;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    animation: slideUp 0.3s ease-out;
}

.toast.success {
    background: var(--duo-green);
}

.toast.error {
    background: #ff4b4b;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Queue Controls */
.queue-item .controls {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
    gap: 2px;
}

.btn-sm {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    color: #666;
}

.btn-sm:hover {
    color: var(--duo-blue);
}

.cat-badge {
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}