/*
===============================================================================
Author: Antonio Corona
Date: 2026-03-15
Project: Job Tracker
File: style.css

Description:
This stylesheet defines the visual layout and styling for the Job Tracker
application. It styles the page structure, dashboard cards, form controls,
filter section, and job application cards.

Technologies Used:
CSS3 – layout, responsive design, spacing, typography, and component styling
===============================================================================
*/

/* Global page styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #222;
}

/* Main centered layout container */
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* Header / hero section */
.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.hero p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

/* Dashboard summary cards */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.card {
    background-color: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card h2 {
    margin-top: 0;
    font-size: 1rem;
    color: #444;
}

.card p {
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: bold;
}

/* Shared section box styling */
.form-section,
.filter-section,
.list-section {
    background-color: #ffffff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

/* Form layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input,
select,
textarea,
button {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
}

input,
select,
textarea {
    padding: 10px;
    border: 1px solid #cfd6dd;
    border-radius: 8px;
}

/* Notes section spacing */
.notes-group {
    margin-bottom: 18px;
}

/* Button layout */
.form-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
}

#submit-btn {
    background-color: #1f6feb;
    color: white;
}

.secondary-btn {
    background-color: #d0d7de;
    color: #222;
}

/* Filter section */
.filter-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-section label {
    margin-bottom: 0;
}

/* Job list */
.job-list {
    display: grid;
    gap: 16px;
}

/* Individual job application card */
.job-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    background-color: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover effect for better interactivity */
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.job-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.job-meta {
    margin: 6px 0;
    color: #555;
}

.job-notes {
    margin-top: 12px;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.job-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-btn {
    background-color: #f0b429;
    color: #222;
}

.delete-btn {
    background-color: #d64545;
    color: white;
}

/* Empty-state message */
.empty-state {
    text-align: center;
    color: #666;
    padding: 24px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
}


/*
===============================================================================
STATUS BADGES
===============================================================================
Colored labels used to visually represent the current status of a job
application. Each status has a unique color for quick recognition.
===============================================================================
*/

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}

/* Applied status */
.status-applied {
    background-color: #2563eb;
}

/* Interview status */
.status-interview {
    background-color: #eab308;
    color: #222;
}

/* Rejected status */
.status-rejected {
    background-color: #dc2626;
}

/* Offer status */
.status-offer {
    background-color: #16a34a;
}