/* ==============================
   Fresh Ventilation – Theme CSS
   Single source of truth
   ============================== */

:root {
    /* Colors */
    --color-primary: #0a4da3;
    --color-primary-hover: #083d82;
    --color-secondary: #00a6a6;
    --color-bg: #f4f6f8;
    --color-card: #ffffff;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-success: #16a34a;
    --color-success-hover: #15803d;

    /* Typography */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;

    /* Layout */
    --radius: 8px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ==============================
   Reset / base
   ============================== */

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    background: var(--color-bg);
    color: var(--color-text);
}

/* ==============================
   Layout helpers
   ============================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==============================
   Card
   ============================== */

.card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* ==============================
   Headings
   ============================== */

h1, h2, h3 {
    margin-top: 0;
}

/* ==============================
   Buttons (global)
   ============================== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

/* Reset native button styles */
button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

/* ==============================
   FORMS (LOGIN / CREATE / PROJECT)
   ============================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--color-text);
    background: #ffffff;
    outline: none;
    appearance: none;
}

/* Focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 163, 0.15);
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 110px;
}

/* Remove number arrows (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove number arrows (Firefox) */
input[type="number"] {
    -moz-appearance: textfield;
}

/* ==============================
   Project action buttons
   ============================== */

.project-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    color: #ffffff;
    background: var(--color-danger);
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background 0.2s ease, transform 0.1s ease;
}

.project-btn:hover {
    background: var(--color-danger-hover);
    transform: translateY(-1px);
}

.project-btn:active {
    transform: translateY(0);
}

.project-btn.completed {
    background: var(--color-success);
}

.project-btn.completed:hover {
    background: var(--color-success-hover);
}

/* ==============================
   Price Card Layout
   ============================== */

.price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.price-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-success);
    text-align: center;
    line-height: 1.2;
}

.price-note {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
}