/* ============================================================
   SKY WINGS - INDEPENDENT UI SYSTEM
   Phase 32
   Presentation only - no business logic
   ============================================================ */

:root {
    --sw-pink: #E91E63;
    --sw-pink-2: #FF2D8A;
    --sw-pink-dark: #B91655;
    --sw-plum: #240817;
    --sw-plum-2: #3A0A25;
    --sw-ink: #17131A;
    --sw-muted: #6F6872;
    --sw-bg: #F7F5F7;
    --sw-card: #FFFFFF;
    --sw-border: #E9E3E8;
    --sw-soft: #FFF0F6;
    --sw-radius: 22px;
    --sw-radius-sm: 14px;
    --sw-shadow: 0 14px 40px rgba(36, 8, 23, .08);
    --sw-shadow-soft: 0 6px 22px rgba(36, 8, 23, .06);
}

/* PAGE */
html,
body {
    background: var(--sw-bg) !important;
    color: var(--sw-ink);
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

/* LINKS */
a {
    color: var(--sw-pink);
}

a:hover {
    color: var(--sw-pink-dark);
}

/* CARDS */
.card,
.panel,
.box,
.dashboard-card,
.stat-card,
.summary-card,
.transfer-card,
.form-card,
.table-card,
.content-card {
    border: 1px solid var(--sw-border) !important;
    border-radius: var(--sw-radius) !important;
    box-shadow: var(--sw-shadow-soft) !important;
    background: var(--sw-card) !important;
}

/* BUTTONS */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
.btn-success,
button.btn-success {
    background: linear-gradient(135deg, var(--sw-pink), var(--sw-pink-2)) !important;
    border-color: var(--sw-pink) !important;
    color: #fff !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 20px rgba(233, 30, 99, .22) !important;
    font-weight: 700 !important;
}

.btn-primary:hover,
button.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--sw-pink-dark), var(--sw-pink)) !important;
    transform: translateY(-1px);
}

/* FORM CONTROLS */
.form-control,
.form-select,
select,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea {
    border: 1px solid var(--sw-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--sw-ink) !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: var(--sw-pink) !important;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, .10) !important;
    outline: none !important;
}

/* BADGES */
.badge,
.status-badge,
.badge-success,
.badge-primary {
    border-radius: 999px !important;
    font-weight: 700 !important;
}

/* TABLES */
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
}

table thead th {
    background: #FBF8FA !important;
    color: var(--sw-plum) !important;
    font-weight: 800 !important;
    border-bottom: 1px solid var(--sw-border) !important;
}

table tbody tr {
    transition: background .15s ease;
}

table tbody tr:hover {
    background: var(--sw-soft) !important;
}

/* SIDEBAR / NAVIGATION */
.sidebar,
.admin-sidebar,
.nav-sidebar,
.side-menu {
    background:
        linear-gradient(180deg, #240817 0%, #351026 55%, #240817 100%)
        !important;
}

.sidebar a,
.admin-sidebar a,
.nav-sidebar a,
.side-menu a {
    border-radius: 12px !important;
    margin: 3px 8px !important;
    transition: all .18s ease;
}

.sidebar a:hover,
.admin-sidebar a:hover,
.nav-sidebar a:hover,
.side-menu a:hover {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
}

.sidebar a.active,
.admin-sidebar a.active,
.nav-sidebar a.active,
.side-menu a.active {
    background: linear-gradient(
        135deg,
        rgba(233,30,99,.95),
        rgba(255,45,138,.85)
    ) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(233,30,99,.20);
}

/* TOP NAV */
.navbar,
.topbar,
.admin-header,
.header-bar {
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--sw-border) !important;
    box-shadow: 0 4px 18px rgba(36,8,23,.04) !important;
}

/* HERO / LARGE SECTIONS */
.hero,
.hero-section,
.page-hero,
.auth-hero {
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,45,138,.32), transparent 30%),
        linear-gradient(135deg, #240817 0%, #4A0D2E 55%, #E91E63 150%)
        !important;
}

/* PRIMARY HERO TITLES */
.lp-hero-title,
.hero h1,
.hero-section h1 {
    letter-spacing: -1.8px !important;
    font-weight: 850 !important;
}

/* SOFT SECTIONS */
.section-soft,
.bg-light,
.bg-gray,
.light-section {
    background: var(--sw-bg) !important;
}

/* PINK HIGHLIGHT */
.text-primary,
.text-success,
.text-brand,
.text-green {
    color: var(--sw-pink) !important;
}

/* ICON CIRCLES */
.icon-box,
.feature-icon,
.stat-icon,
.quick-action-icon {
    border-radius: 16px !important;
    background: var(--sw-soft) !important;
    color: var(--sw-pink) !important;
}

/* ALERTS */
.alert {
    border-radius: 14px !important;
    border-width: 1px !important;
}

/* AUTH PAGES */
.auth-card,
.login-card,
.register-card {
    border: 1px solid var(--sw-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--sw-shadow) !important;
    background: #fff !important;
}

/* FOOTER */
footer {
    background: var(--sw-plum) !important;
    color: rgba(255,255,255,.78);
}

footer a {
    color: #fff !important;
}

/* SELECTION */
::selection {
    background: var(--sw-pink);
    color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
    .card,
    .panel,
    .box,
    .dashboard-card,
    .stat-card,
    .summary-card,
    .transfer-card,
    .form-card,
    .table-card,
    .content-card {
        border-radius: 17px !important;
    }

    .hero,
    .hero-section,
    .page-hero,
    .auth-hero {
        border-radius: 20px !important;
    }
}
