/*
 * MonoPay Website Styles
 *
 * This stylesheet defines the look and feel of the public‐facing MonoPay
 * website. It borrows heavily from the dark, neon‑tinted aesthetic of the
 * original developer portal while introducing a more flexible layout for
 * multiple pages. Colours are declared as CSS variables up front to make
 * theming easy. Whenever you need to tweak the accent or background
 * colours simply adjust the values below and the entire site will update
 * accordingly.
 */

:root {
    /* Core palette based off the original developer portal */
    --primary-bg: #0a192f;
    --primary-accent: #003f2f;
    --green-matte: #76d9b0;
    --blue-dark: #022c43;
    --highlight: #a8ffb0;
    --light-text: #d4f4dd;
    --card-bg: #011627;
}

/* General layout */
body {
    background: linear-gradient(135deg, var(--primary-bg), var(--primary-accent));
    color: var(--light-text);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding-top: 70px; /* reserve space for fixed nav */
    min-height: 100vh;
}

/* Navigation bar */
.navbar {
    background-color: var(--blue-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-brand, .nav-link {
    color: var(--highlight) !important;
    font-weight: bold;
}

.nav-link:hover {
    color: var(--green-matte) !important;
}

/* Hero section */
.hero {
    position: relative;
    background: url('../images/hero_abstract.png') no-repeat center/cover;
    text-align: center;
    padding: 100px 20px 140px;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #cde5d1;
}

.btn-primary {
    background-color: var(--green-matte);
    border: none;
    color: var(--primary-bg);
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--highlight);
    color: var(--primary-bg);
}

/* Sections */
.section {
    padding: 60px 20px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--highlight);
}

/* Feature cards */
.feature-card {
    background-color: var(--card-bg);
    border: 1px solid #014b36;
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 25px;
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--green-matte);
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #b3dacf;
}

/* Provider logos */
.provider-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

/* How it works steps */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.step {
    flex: 1 1 250px;
    background-color: var(--card-bg);
    border: 1px solid #014b36;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-5px);
}

.step .step-number {
    font-size: 1.8rem;
    color: var(--highlight);
    margin-bottom: 10px;
    font-weight: bold;
}

.step h5 {
    color: var(--green-matte);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: #b3dacf;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #014b36;
}

.form-container h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--highlight);
}

.form-control {
    background-color: #014b36;
    color: #e6ffe6;
    border: none;
    border-bottom: 2px solid var(--green-matte);
    border-radius: 0;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.form-control::placeholder {
    color: #88cfa8;
}

.form-control:focus {
    background-color: #014b36;
    color: #ffffff;
    border-bottom-color: var(--highlight);
    box-shadow: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--green-matte);
    color: var(--primary-bg);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--highlight);
    color: var(--primary-bg);
}

/* Dashboard table styling */
table.table-dark {
    background-color: var(--card-bg);
}
table.table-dark thead th {
    border-bottom: 2px solid #014b36;
    color: var(--green-matte);
}
table.table-dark tbody td {
    color: #b3dacf;
    border-top: 1px solid #014b36;
}

/* Code block styling */
.code-block {
    background-color: #0b2545;
    color: #8ab4f8;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 30px;
}

.copy-btn {
    display: inline-block;
    margin-top: 5px;
    background-color: var(--green-matte);
    color: var(--primary-bg);
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: var(--highlight);
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 40px 0;
    color: #7ecdb9;
    margin-top: 60px;
}

.footer a {
    color: #7ecdb9;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--highlight);
}

.footer .social-icons i {
    font-size: 1.4rem;
    margin-right: 15px;
    color: var(--green-matte);
    transition: color 0.2s;
}

.footer .social-icons i:hover {
    color: var(--highlight);
}