/* Corporate Emerald Light Theme - GetWork.ph */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');
@import url('/css/global.css');
@import url('/css/forms.css');
@import url('/css/home.css');

:root {
    /* Color Palette - Emerald Green System */
    --primary: #064E3B;
    /* Deep Emerald Forest */
    --secondary: #059669;
    /* Vibrant Emerald */
    --accent: #022C22;
    /* Dark Emerald Accent */
    --highlight: #10B981;
    /* Bright Work Emerald for buttons/links */

    --bg-body: #FFFFFF;
    --bg-light: #F0FDF4;
    /* Soft Sage Tint for section separation */
    --bg-white: #FFFFFF;

    --text-main: #1A202C;
    /* Dark Gray/Black */
    --text-muted: #4A5568;
    /* Slate Gray */
    --text-light: #FFFFFF;

    --border: #E2E8F0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--highlight);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: #15803d;
}

.text-danger {
    color: #b91c1c;
}

.text-right {
    text-align: right;
}

.text-small {
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    /* Hard corners or slight radius for corporate */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b02a37;
}

.btn-success {
    background-color: #15803d;
    color: #fff;
}

.btn-success:hover {
    background-color: #166534;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    background-color: #fff;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    /* Context for mobile menu */
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.05em;
    text-transform: uppercase;
    z-index: 1002;
    /* Above mobile menu */
}

/* Desktop Navigation */
nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.25rem;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--highlight);
}

.nav-link.text-highlight {
    color: var(--secondary);
}

/* Intermediate Desktop Breakpoint (901px to 1200px) */
@media (max-width: 1200px) and (min-width: 901px) {
    header .container {
        padding: 0.75rem 1.25rem;
    }

    nav ul {
        gap: 0.65rem;
    }

    .nav-link {
        font-size: 0.825rem;
        padding: 0.4rem 0.15rem;
        letter-spacing: 0.02em;
    }

    .nav-btn.btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.825rem;
    }

    .dropdown-menu {
        left: 0;
        transform: none;
    }

    .dropdown-menu::before,
    .dropdown-menu::after {
        left: 25px;
        transform: none;
    }
}

/* Dropdown (Desktop) */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '\25BE';
    font-size: 0.8em;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s;
}

.nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 210px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1100;
    margin-top: 10px;
    border: 1px solid var(--border);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--border);
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.nav-item.dropdown.show .dropdown-menu {
    display: block;
    animation: fadeInSlide 0.2s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.nav-btn.btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav-logout-form {
    margin: 0;
}


/* Mobile Navigation (Up to 900px) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }

    nav.active {
        visibility: visible;
        opacity: 1;
    }

    /* The Drawer */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: calc(var(--header-height) + 1rem) 1.5rem 2rem 1.5rem;
        background-color: #FFFFFF;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
        gap: 0;
        transform: translateY(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    nav.active ul {
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.95rem 0;
        font-size: 1rem;
        width: 100%;
    }

    /* Mobile Dropdown Accordion */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(15, 52, 96, 0.04);
        border-left: 3px solid var(--highlight);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: 100%;
        border-radius: 0;
    }

    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: block;
        max-height: 500px;
        animation: none;
        padding: 0.25rem 0;
    }

    .dropdown-item {
        padding: 0.75rem 1.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        color: var(--text-main);
        font-size: 0.95rem;
        font-weight: 500;
    }

    .nav-item .nav-btn.btn {
        width: 100%;
        text-align: center;
        margin-top: 0.75rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        display: block;
    }

    .nav-logout-form {
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-logout-form .btn {
        width: 100%;
    }
}

/* Sections */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Or a clean white background with a subtle graphic */
    background: #fff;
}

.hero p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* Cards / Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}

.card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    /* Slight radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--highlight);
}

/* Forms */
form .form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

/* Backend / Dashboard UI */
.backend-page {
    padding: 4rem 0;
}

.backend-hero {
    padding: 4rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.backend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.backend-header .lead {
    margin: 0.35rem 0 0;
}

.backend-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.backend-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stack-sm {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.backend-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.backend-card-main {
    flex: 1;
    min-width: 260px;
}

.backend-meta {
    margin: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.backend-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.back-link {
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.form-card {
    margin: 0 auto;
}

.form-card--narrow {
    max-width: 600px;
}

.form-card--medium {
    max-width: 800px;
}

.form-card--wide {
    max-width: 900px;
}

.form-actions {
    text-align: right;
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-check input[type="checkbox"] {
    margin-top: 0.2rem;
}

.backend-page select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #4a5568 50%),
        linear-gradient(135deg, #4a5568 50%, transparent 50%),
        linear-gradient(to right, #e2e8f0, #e2e8f0);
    background-position: calc(100% - 18px) calc(50% - 3px),
        calc(100% - 13px) calc(50% - 3px),
        calc(100% - 2.5rem) 50%;
    background-size: 5px 5px, 5px 5px, 1px 1.5rem;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.backend-page input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--highlight);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 2rem;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf3;
    border-color: #b7f5d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.alert-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table thead th {
    background: var(--bg-light);
    font-weight: 700;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table-subrow td {
    background: #f8fafc;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.list li:last-child {
    border-bottom: none;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-item .emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.notification-item .meta {
    color: #6b7280;
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 0.78rem;
}

.status-select {
    font-size: 0.85rem;
    padding: 0.35rem 2.2rem 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    background-color: #f8fafc;
}

.status-select[data-status="open"] {
    background-color: #ecfdf3;
    border-color: #a7f3d0;
    color: #065f46;
}

.status-select[data-status="filled"] {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.status-select[data-status="archived"] {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.status-select[data-status="closed"] {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.status-select[data-status="draft"] {
    background-color: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.85rem;
}

.status-pill--accepted {
    background: #dcfce7;
    color: #166534;
}

.status-pill--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-pill--pending {
    background: #e2e8f0;
    color: #334155;
}

.panel {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f9fafb;
}

.panel-danger {
    background: #fff5f5;
    border-color: #fecaca;
}

.link {
    color: var(--highlight);
    text-decoration: underline;
    font-weight: 600;
}

.grid-tight {
    gap: 1.5rem;
}

.offer-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.offer-status {
    font-weight: 600;
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.mt-sm {
    margin-top: 0.75rem;
}

.mt-md {
    margin-top: 1.5rem;
}

.mb-sm {
    margin-bottom: 0.75rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.mb-lg {
    margin-bottom: 2rem;
}

.m-0 {
    margin: 0;
}

.block {
    display: block;
}

.form-inline {
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 4.5rem 0 2.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col h4 {
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
}

/* Logo Scroller */
.logo-slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.logo-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.logo-slider::before {
    left: 0;
    top: 0;
}

.logo-slide-track {
    animation: scroll 30s linear infinite;
    display: flex;
    width: calc(250px * 11 * 2);
    /* 11 logos duplicated once = 22 total slides */
}

.logo-slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    max-height: 70px;
    /* Reduced from fixed height to max-height */
    max-width: 200px;
    /* Ensure wide logos don't overflow */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    /* Removed destructive contrast/brightness filters */
    opacity: 0.6;
    /* Slightly lighter for subtle effect */
    transition: all 0.3s ease;
}

.logo-slide img:hover {
    filter: none;
    opacity: 1;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 11));
        /* Move by exactly one set width */
    }
}

/* ==========================================================================
   Modern Sidelines Dashboard & Admin UI Components
   ========================================================================== */

/* Modern Admin Header */
.sidelines-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
    border-radius: 16px;
    color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.25);
    margin-bottom: 2rem;
}

.sidelines-header-title h1 {
    color: #FFFFFF;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidelines-header-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.sidelines-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* KPI / Metrics Bar */
.sidelines-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon-navy {
    background: #ECFDF5;
    color: #047857;
}

.stat-icon-emerald {
    background: #ECFDF5;
    color: #059669;
}

.stat-icon-sky {
    background: #F0FDF4;
    color: #065F46;
}

.stat-icon-amber {
    background: #FEF3C7;
    color: #D97706;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value-large {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label-muted {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Modern Card Item Layout */
.sideline-card-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sideline-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--highlight) 0%, var(--primary) 100%);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.sideline-card-item:hover {
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.08);
    transform: translateY(-3px);
    border-color: #A7F3D0;
}

.sideline-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 1.25rem;
}

.sideline-badges-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.badge-step {
    background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(6, 78, 59, 0.2);
}

.badge-commission-gold {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill.active {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.status-pill.inactive {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-pill.active .status-pulse-dot {
    background: #059669;
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    animation: pulse-sky 2s infinite;
}

.status-pill.inactive .status-pulse-dot {
    background: #94A3B8;
}

@keyframes pulse-sky {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(5, 150, 105, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

/* Card Main Info */
.sideline-partner-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.sideline-logo-container {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.sideline-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sideline-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #064E3B 0%, #10B981 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


.sideline-partner-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.sideline-content-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.sideline-info-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.sideline-info-box-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sideline-info-box-text {
    font-size: 0.92rem;
    color: #334155;
    margin: 0;
    line-height: 1.6;
}

/* Metadata Bar */
.sideline-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.5rem;
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    color: #3730A3;
}

.sideline-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.sideline-meta-item strong {
    color: #1E1B4B;
    font-weight: 600;
}

.sideline-meta-item a {
    color: #4F46E5;
    text-decoration: underline;
    font-weight: 600;
    word-break: break-all;
}

/* Action Buttons */
.sideline-actions-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-action-edit {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-action-edit:hover {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #94A3B8;
}

.btn-action-delete {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-action-delete:hover {
    background: #FEE2E2;
    color: #7F1D1D;
    border-color: #F87171;
}

/* Styled Form Sections for Add/Edit */
.form-section-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #F1F5F9;
}

.form-section-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.form-section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.form-section-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   High-Converting Modern Sidelines Page Design System
   ========================================================================== */

/* Hero Banner */
.sidelines-hero-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1E40AF 100%);
    border-radius: 24px;
    padding: 2.5rem;
    color: #FFFFFF;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.sidelines-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sidelines-hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F8FAFC;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.hero-main-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtext {
    font-size: 1.05rem;
    color: rgba(241, 245, 249, 0.9);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.btn-hero-back {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-back:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    transform: translateX(-3px);
}

/* Empty State */
.sidelines-empty-state {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Modern Card Item */
.sideline-card-modern {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sideline-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #2563EB 0%, #059669 100%);
}

.sideline-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
    border-color: #CBD5E1;
}

/* Card Top Bar */
.sideline-card-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #F1F5F9;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-sequence-tag {
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.badge-commission-emerald {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.08);
}

/* Brand Header */
.sideline-brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.sideline-brand-logo-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sideline-brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sideline-brand-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sideline-brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
}

.sideline-brand-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: #0284C7;
    font-weight: 600;
}

/* Structured Content Grid */
.sideline-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.sideline-info-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sideline-info-card.highlight-card {
    background: #F0F9FF;
    border-color: #BAE6FD;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.info-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-header-icon {
    font-size: 1.25rem;
}

.info-card-body {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.65;
    flex-grow: 1;
}

/* Section Headings inside content */
.sideline-section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E3A8A;
    margin: 1.25rem 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sideline-section-heading:first-child {
    margin-top: 0;
}

.heading-icon {
    width: 6px;
    height: 16px;
    background: #2563EB;
    border-radius: 4px;
    display: inline-block;
}

.sideline-paragraph {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.65;
}

.sideline-paragraph:last-child {
    margin-bottom: 0;
}

/* Formatted Bullet List */
.sideline-feature-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sideline-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.94rem;
    color: #1E293B;
    line-height: 1.5;
    background: #FFFFFF;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.list-bullet-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E0F2FE;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.list-content {
    flex-grow: 1;
}

.list-label {
    color: #0F172A;
    font-weight: 700;
}

/* Highlights */
.highlight-stat {
    color: #0284C7;
    font-weight: 700;
    background: #E0F2FE;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
}

.highlight-currency {
    color: #047857;
    font-weight: 800;
    background: #D1FAE5;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

/* Instructions Banner */
.sideline-instructions-banner {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border: 1px solid #6EE7B7;
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.05);
}

.instructions-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.instructions-icon {
    font-size: 1.6rem;
}

.instructions-header h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.15rem;
    color: #064E3B;
    font-weight: 800;
}

.instructions-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #047857;
}

.instructions-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.instructions-step-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #FFFFFF;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #A7F3D0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #047857;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-desc {
    font-size: 0.95rem;
    color: #065F46;
    font-weight: 500;
}

.instructions-callout-text {
    font-size: 0.98rem;
    color: #065F46;
    font-weight: 500;
    line-height: 1.6;
    background: #FFFFFF;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #A7F3D0;
}

.keyword-action-badge {
    background: #064E3B;
    color: #ECFDF5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95em;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
    display: inline-block;
}

/* Footer Action Bar */
.sideline-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
}

.footer-guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
}

.btn-sideline-cta {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.btn-sideline-cta:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .sidelines-hero-banner {
        padding: 1.75rem;
    }

    .hero-main-title {
        font-size: 1.8rem;
    }

    .sideline-card-modern {
        padding: 1.25rem;
    }

    .sideline-brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sideline-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-sideline-cta {
        justify-content: center;
        width: 100%;
    }
}