/* ========================================
   GOOGLE FONT IMPORT
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

/* ========================================
   GENERAL PAGE STYLING
======================================== */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 20px auto;
    color: #222;
    line-height: 1.5;
    padding: 12px;
    padding-top: 0;
}

.page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.index-page-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cards-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.home-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home-card h3 {
    margin-top: 0;
}


/* ========================================
   HEADER / FOOTER
======================================== */

header {
    background-color: #003366;

    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 25px;
}


footer {
    background-color: #003366;
    color: #646363;
    font-size: 0.9rem;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ========================================
   SITE TITLE
======================================== */

.site-title {
    color: white;

    font-family: 'Merriweather', serif;

    font-size: 1.8rem;
    font-weight: bold;
}


/* ========================================
   HEADINGS
======================================== */

h1 {
    color: #003366;
    margin-bottom: 10px;
}

h2 {
    color: #00509e;
    margin-bottom: 8px;
}


/* ========================================
   LINKS
======================================== */

a {
    color: #00509e;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}


/* ========================================
    BUTTONS
======================================== */


.primary-button {
    background-color: #0056a6;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}
.primary-button:hover {
    background-color: #003d7a;
}
.form-button {
    width: 220px;
    text-align: center;
}
/* ========================================
    PARAGRAPHS
======================================== */
p {
    margin-top: 1em;
    margin-bottom: 1em;
}


/* ========================================
   LABELS
======================================== */

label {
    margin-left: 10px;
    font-weight: bold;
}

/* ========================================
   FORMS
======================================== */

form {
    background-color: white; 
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;   
    width: 90%;
    margin: 0 auto;
}
.inline-form {
    background: none;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: none;
}

/* ========================================
   FIELDSETS
======================================== */

fieldset {
    border: 2px solid #cccccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}

legend {
    font-weight: bold;
    color: #003366;
}


/* ========================================
   INPUTS / TEXTAREA / SELECT
======================================== */

input,
textarea,
select {
    padding: 8px;
    width: 100%;
    margin-bottom: 12px;
    margin-top: 5px;
    box-sizing: border-box;
}


/* ========================================
   RADIO BUTTONS
======================================== */

input[type="radio"] {
    width: auto;
    margin-right: 5px;
}


/* ========================================
   BUTTONS
======================================== */

button,
input[type="submit"] {
    background-color: #00509e;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover,
input[type="submit"]:hover {
    background-color: #003f7d;
}


/* ========================================
   TABLES
======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #eef6ff;
    margin-top: 15px;
}

th {
    background-color: #003366;
    color: white;
    padding: 10px;
    text-align: left;
}

td {
    border: 1px solid #cccccc;
    padding: 10px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-wrapper {
    overflow-x: auto;
}

/* ========================================
   UTILITY CLASSES
======================================== */

.result-box {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 700px;
}

.result-box ul {
    margin-top: 5px;
}

.result-box li {
    margin-bottom: 4px;
}

.demo-notice {
    background-color: #eef6ff;
    border-left: 5px solid #0056a6;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.alert-message {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

.success-message {
    color: green;
    font-weight: bold;
}

.danger-button {
    background-color: #b00020;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.danger-button:hover {
    background-color: #870018;
}

