/*
CHANGE LOG
File: /var/www/html/siteplanner.nsgia.com/static/css/front_page.css
Purpose: Styles for front page dashboard: 7-step workflow cards, project table,
         create form, empty state.
Templates: index.html
Version History:
  2026-02-23 v1.0 - Extracted from index.html v4.0
*/

/* ===== HERO ===== */
.front-hero {
    margin-bottom: 28px;
}
.front-hero h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 4px;
}
.front-hero p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* ===== STEP CARDS ===== */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.step-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    transition: box-shadow 0.15s, border-color 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.step-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-color: #ccc;
}
.step-card.ready:hover {
    border-color: #3498db;
}
.step-card.locked {
    opacity: 0.7;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8edf2;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: 10px;
}
.step-card.ready .step-num {
    background: #2c3e50;
    color: #fff;
}
.step-card.done .step-num {
    background: #27ae60;
    color: #fff;
}

.step-card h3 {
    font-size: 15px;
    color: #2c3e50;
    margin: 0 0 6px;
}
.step-card p {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
    flex: 1;
}

.step-link {
    display: inline-block;
    font-size: 13px;
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}
.step-link:hover { text-decoration: underline; }

.step-prereq {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.step-prereq a {
    color: #2980b9;
    text-decoration: none;
}
.step-prereq a:hover { text-decoration: underline; }

/* ===== PROJECTS SECTION ===== */
.projects-section {
    margin-top: 10px;
}
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.projects-header h2 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}
.btn-new {
    padding: 7px 14px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}
.btn-new:hover { background: #34495e; }

.create-form {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.create-form.visible { display: block; }
.create-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 8px;
}
.create-form button {
    padding: 8px 16px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.create-form button:hover { background: #219a52; }

/* ===== PROJECT TABLE ===== */
.project-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.project-table th, .project-table td {
    text-align: left;
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.project-table th {
    background: #f5f6f8;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}
.project-table tr:last-child td {
    border-bottom: none;
}
.project-table a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}
.project-table a:hover { text-decoration: underline; }

.chip {
    display: inline-block;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    margin-right: 4px;
}
.chip-done { background: #d4edda; color: #155724; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
}
