/* Project dashboard page styles — uses base.css design tokens */

.page-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    display: block;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.project-card:hover {
    border-color: hsl(var(--ring));
    box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.12);
}

.project-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.project-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.project-card-head h3 a {
    color: inherit;
    text-decoration: none;
}

.project-card-head h3 a:hover {
    text-decoration: underline;
}

.project-card-desc {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.project-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Small button modifier for card actions */
.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 0.8rem;
}

/* ============================================
   Dashboard header (title + new button)
   ============================================ */
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-header .page-header {
    margin-bottom: 24px;
}

/* ============================================
   Modal form controls
   ============================================ */
#project-modal textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    outline: none;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#project-modal textarea:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: hsl(var(--primary));
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
    }
}
