:root {
    --primary-color: #0b84ff;
    --primary-dark: #0a6ecc;
    --secondary-color: #7b68ee;
    --accent-color: #ff5a5f;
    --light-bg: #f5f7fa;
    --dark-text: #333;
}

/* Base layout */

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section {
    padding: 3rem 1.5rem;
}

.box {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Hero and buttons */

.hero.is-primary {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
}

.button.is-link {
    background-color: var(--primary-color);
}

.button.is-link:hover {
    background-color: var(--primary-dark);
}

/* Form elements */

.input,
.textarea {
    border-radius: 6px !important;
    border: 1px solid #d0d7e2;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input:focus,
.textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(11, 132, 255, 0.25);
}

/* Footer */

.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* DynDNS step indicator */

.dyndns-steps {
    margin: 1.5rem 0 1rem 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.dyndns-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    transform: translateY(-50%);
    z-index: 0;
}

.dyndns-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
}

.dyndns-step.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
}

.dyndns-step.completed {
    border-color: #22c55e;
    background-color: #22c55e;
    color: #ffffff;
}

/* Inline FQDN control: [subdomain] . [zone] */

.dyndns-fqdn-control {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
    max-width: 100%;
}

.dyndns-fqdn-sub,
.dyndns-fqdn-zone {
    flex: 1 1 auto;
}

/* Make subdomain and zone look like a single combined control */
.dyndns-fqdn-sub input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.dyndns-fqdn-zone select {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.dyndns-fqdn-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    color: #4b5563;
    font-size: 1.1rem;
}

/* Ensure Bulma .select works full-width inside flex */

.dyndns-fqdn-zone .select,
.dyndns-fqdn-zone .select select {
    width: 100%;
}

/* Responsive tweaks */

@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }

    .dyndns-step {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .dyndns-fqdn-control {
        flex-direction: column;
        gap: 0.4rem;
    }

    .dyndns-fqdn-sub input,
    .dyndns-fqdn-zone select {
        border-radius: 4px !important;
    }
}