body {
    background: #f5f3ff;
}

main > .container {
    padding: 90px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

.navbar-brand {
    width: 120px;
    height: auto;
    padding: 0;
}

.navbar-brand img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.nav-item {
    margin-right: 10px;
}

.upload-form {
    margin-top: 40px;
}

.generation-result {
    margin-top: 20px;
}

.generation-result .download-link-label {
    font-size: 20px;
}

.help-block {
    color: #FF3333;
}

.bg-dark {
    background-color: #fff !important;
}

.bg-dark a {
    color: #000;
}

.bg-dark a:hover, .bg-dark a:focus {
    color: rgba(0,0,0,0.7);
}

.bg-dark a.active {
    color: rgba(0,0,0,0.5) !important;
}

.nav > li > form > button.logout {
    color: #000;
}

.nav > li > form > button.logout:focus, .nav > li > form > button.logout:hover {
    color: #000;
    background-color: #7c3aed;
}

.bg-light {
    background-color: #1f1b2e !important;
}

.bg-light .text-muted {
    color: #bbb !important;
}

.navbar-expand-md .navbar-nav .btn-link {
    background-color: #8b5cf6;
    color: #fff;
    padding: 7px 10px;
}

.btn-success, .btn-primary {
    background-color: #8b5cf6;
}

.btn-success:hover, .btn-primary:hover {
    background: #7c3aed;
}

.navbar-toggler {
    background-color: #555555;
    width: auto;
}

.navbar-toggler:hover {
    background-color: #777777 !important;
}

/* ================= HERO ================= */

.hero {
    padding: 100px 20px 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 25px;
}

.hero p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.highlight {
    color: #8b5cf6;
    font-weight: bold;
}

.cta-btn {
    margin-top: 30px;
    display: inline-block;
    padding: 16px 35px;
    font-size: 18px;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(45deg, #8b5cf6, #6366f1);
    color: white;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139,92,246,0.4);
}

/* ================= FEATURES ================= */

.features {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139,92,246,0.25);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #8b5cf6;
}

.feature-card p {
    color: #555;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero {
        padding: 70px 20px;
    }

    .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}