/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fc;
    color: #5a5c69;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.07);
}

h1 {
    color: #4e73df;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
}

input[type="text"],
input[type="date"] {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #6e707e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d3e2;
    border-radius: .35rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-sizing: border-box;
}

input[type="color"] {
    padding: 0;
    border: 1px solid #d1d3e2;
    border-radius: .35rem;
    width: 50px;
    height: 38px; /* Match height of text inputs */
    vertical-align: middle;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    margin-right: .5rem;
}

/* ==========================================================================
   Fieldsets
   ========================================================================== */

fieldset {
    border: 1px solid #d1d3e2;
    border-radius: .35rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

legend {
    width: auto;
    padding: 0 10px;
    font-weight: 600;
    color: #4e73df;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #4e73df;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .35rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

/* ==========================================================================
   Messages & Alerts
   ========================================================================== */

.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: .35rem;
}

.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}