/* File: css/style.css

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*
 * Global typography and colour palette
 *
 * Define a handful of CSS variables up front so that pages across the
 * template share the same look and feel. The primary gradient is used for
 * call‑to‑action buttons and highlights, while the secondary gradient
 * serves supporting actions. The grey background creates a gentle
 * contrast against the white card surfaces.
 */
body {
    font-family: 'Poppins', sans-serif;
    --color-primary-start: #4f46e5; /* indigo‑600 */
    --color-primary-end:   #9333ea; /* purple‑600 */
    --color-primary-hover-start: #4338ca; /* indigo‑700 */
    --color-primary-hover-end:   #7e22ce; /* purple‑700 */
    --color-secondary-start: #22c55e; /* emerald‑500 */
    --color-secondary-end:   #059669; /* green‑600 */
    --color-secondary-hover-start: #16a34a; /* emerald‑600 */
    --color-secondary-hover-end:   #047857; /* green‑700 */
    --color-danger-start: #ef4444; /* red‑500 */
    --color-danger-end:   #dc2626; /* red‑600 */
    --color-danger-hover-start: #b91c1c; /* red‑700 */
    --color-danger-hover-end:   #991b1b; /* red‑800 */
    --color-gray-bg: #f3f4f6; /* gray‑100 */
    --color-card: #ffffff; /* white cards */

    /* Apply the grey background and sensible defaults */
    background-color: var(--color-gray-bg);
    color: #374151; /* gray‑700 */
    line-height: 1.6;
}

/*
 * Reusable button styles. These classes can be applied to links or button
 * elements to produce gradient call‑to‑action buttons. Hover states darken
 * the gradients to provide clear affordance.
 */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #ffffff;
    background-image: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-image 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.btn-gradient:hover {
    background-image: linear-gradient(to right, var(--color-primary-hover-start), var(--color-primary-hover-end));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #ffffff;
    background-image: linear-gradient(to right, var(--color-secondary-start), var(--color-secondary-end));
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-image 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.btn-secondary:hover {
    background-image: linear-gradient(to right, var(--color-secondary-hover-start), var(--color-secondary-hover-end));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #ffffff;
    background-image: linear-gradient(to right, var(--color-danger-start), var(--color-danger-end));
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-image 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.btn-danger:hover {
    background-image: linear-gradient(to right, var(--color-danger-hover-start), var(--color-danger-hover-end));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Section headings provide consistent typographic hierarchy */
.section-heading {
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.2;
    font-weight: 800;
    color: #1f2937; /* gray-800 */
    margin-bottom: 0.75rem;
    text-align: center;
}
.section-subheading {
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* gray-600 */
    margin-bottom: 2rem;
    text-align: center;
}

/* Card component for containers */
.card {
    background-color: var(--color-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Improve link hover outside of buttons */
a {
    transition: color 0.15s ease;
}
a:hover {
    color: var(--color-primary-end);
}

/* Form elements for a consistent look */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    /*
     * Apply sensible defaults for form elements without overriding
     * left padding. The original styles used a shorthand `padding`
     * declaration which set all four sides at once. This overrode any
     * utility classes (e.g. `pl-10` or `pl-12`) used to create space
     * for icons inside inputs. By specifying only the top, bottom and
     * right paddings here, we leave the left padding untouched so
     * that Tailwind utility classes can control it. Forms without
     * explicit left padding (e.g. those using `px-` utilities) will
     * still look consistent.
     */
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary-start);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); /* ring-indigo-500 */
}