:root {
    --green-primary: #198754;
    --green-dark: #0f5132;
    --green-light: #effaf4;
    --green-soft: #f4fbf7;
    --green-border: rgba(25, 135, 84, 0.12);
    --text-dark: #1f2d1f;
    --text-soft: #5f6f64;
}

body.green-theme {
    background:
        radial-gradient(circle at top left, rgba(25, 135, 84, 0.08), transparent 28%),
        linear-gradient(180deg, #f7fbf8 0%, #f4f8f5 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

.green-navbar {
    background: linear-gradient(90deg, #157347 0%, #198754 100%);
}

.navbar {
    backdrop-filter: blur(8px);
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 4px;
}

.soft-panel {
    background: var(--green-light);
    border: 1px solid var(--green-border);
    border-radius: 1rem;
}

.card {
    border-radius: 1.25rem;
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border-color: rgba(25, 135, 84, 0.16);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(25, 135, 84, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.14);
}

.btn {
    border-radius: 0.9rem;
    font-weight: 600;
}

.btn-success {
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.16);
}

.table td,
.table th {
    vertical-align: middle;
}

footer {
    margin-top: auto;
}

.landing-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 250, 244, 0.98) 100%);
    border-radius: 1.5rem;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.12);
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-text {
    color: var(--text-soft);
    max-width: 42rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(25, 135, 84, 0.1);
    color: var(--green-dark);
    font-size: 0.92rem;
    box-shadow: 0 8px 18px rgba(15, 81, 50, 0.05);
}

.hero-highlight {
    background: linear-gradient(180deg, rgba(25, 135, 84, 0.08), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(25, 135, 84, 0.12);
    border-radius: 1.35rem;
    padding: 1.2rem;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 22px rgba(15, 81, 50, 0.06);
}

.hero-stat-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.hero-stat-card small,
.hero-stat-label {
    color: var(--text-soft);
}

.hero-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.hero-stat-card-wide {
    grid-column: 1 / -1;
}

.form-shell,
.overview-shell,
.links-shell {
    background: rgba(255, 255, 255, 0.96);
}

.section-heading h1,
.section-heading h2 {
    font-weight: 700;
}

.empty-state-panel,
.latest-link-panel,
.placeholder-panel {
    border-radius: 1.15rem;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(25, 135, 84, 0.15);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-stack {
    display: grid;
    gap: 0.9rem;
}

.feature-item {
    background: #ffffff;
    border: 1px solid rgba(25, 135, 84, 0.08);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
}

.global-message-stack {
    margin-bottom: 1.25rem;
}

.custom-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1rem;
    border-radius: 1rem;
}

.custom-alert .btn-close {
    margin-left: auto;
    padding: 0.75rem;
}

.custom-alert-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.custom-alert-title {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.custom-alert-message {
    line-height: 1.5;
}

.links-table-wrap {
    border: 1px solid rgba(25, 135, 84, 0.09);
    border-radius: 1.1rem;
    overflow: hidden;
}

.links-table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.links-table thead th {
    background: rgba(25, 135, 84, 0.06);
    border-bottom: 0;
    color: var(--green-dark);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.links-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(25, 135, 84, 0.08);
}

.table-main-text a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.table-main-text a:hover {
    text-decoration: underline;
}

.long-url-cell {
    color: var(--text-soft);
}

.status-badge {
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
}

.click-pill {
    display: inline-flex;
    min-width: 52px;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.08);
    color: var(--green-dark);
    font-weight: 700;
}

.action-cluster .btn {
    min-width: 78px;
}

.copy-btn.is-copied,
.share-btn.is-shared {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .landing-hero,
    .form-shell,
    .overview-shell,
    .links-shell {
        border-radius: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-stat-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat-card-wide {
        grid-column: auto;
    }

    .custom-alert {
        padding-right: 0.75rem;
    }

    .links-table thead {
        white-space: nowrap;
    }
}
