﻿/* ===========================
   Content/Site.Theme.css
   MyGym global theme + navbar + login centering
   =========================== */

/* Hero improvements for contrast & alignment */

 

/* Right action bar with Create + Search in one line */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1; /* take remaining space */
}

.members-hero {
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #6f42c1, #8a2be2); /* <--- add back */
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    color: #fff; /* text stays white */
}

/* Create button: white background with purple icon/text */
.btn-hero-create {
    background: #ffffff;
    color: var(--brand-1);
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    text-decoration: none;
}

    .btn-hero-create i {
        color: var(--brand-1);
        font-size: 14px;
    }

/* Search group: white input with subtle shadow so it pops on purple */
.search-group {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    background: #fff;
    max-width: 560px;
    width: 100%;
}

.search-input {
    border: 0;
    padding: 10px 14px;
    min-width: 260px;
    font-size: 1rem;
    color: #222;
    flex: 1 1 auto;
    background: transparent;
}

    .search-input::placeholder {
        color: #9aa0a6;
    }

/* Search button: purple solid to contrast with white input */
.btn-hero-search {
    background: linear-gradient(135deg, #6f42c1, #8a2be2);
    border: none;
    color: #fff;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* small-screen behavior */
@media (max-width: 767.98px) {
    .hero-right {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-group {
        max-width: 100%;
        width: 100%;
    }

    .btn-hero-create {
        width: 100%;
        justify-content: center;
    }
}


/* ---------- COLORS / ROOT ---------- */
:root {
    --brand-1: #6f42c1;
    --brand-2: #8a2be2;
    --success: #28a745;
    --danger: #dc3545;
    --page-bg: #f5f6fa;
    --card-bg: #ffffff;
    --muted: #6c757d;
    --navbar-height: 64px; /* adjust if needed */
}

/* ---------- BASE ---------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    color: #222;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

/* Utility */
.text-muted {
    color: var(--muted) !important;
}

/* ---------- NAVBAR (THEMED) ---------- */
.theme-navbar, .navbar {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2)) !important;
    box-shadow: 0 4px 12px rgba(20,20,40,0.12);
    padding: 0.45rem 1rem;
    border: 0;
}

    /* Brand */
    .theme-navbar .brand-logo,
    .navbar .brand-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(255,255,255,0.08);
        border-radius: 8px;
        margin-right: 10px;
        color: #fff;
    }

    .theme-navbar .brand-text,
    .navbar .brand-text {
        color: #fff;
        font-weight: 700;
        font-size: 1.15rem;
        letter-spacing: 0.3px;
    }

    /* toggler */
    .theme-navbar .navbar-toggler, .navbar .navbar-toggler {
        border-color: rgba(255,255,255,0.18);
    }

    .theme-navbar .navbar-toggler-icon, .navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    /* center menu layout (remove list bullets) */
    .theme-navbar .navbar-nav, .navbar .navbar-nav {
        list-style: none !important;
        padding-left: 0 !important;
        margin: 0;
    }

    /* main menu links */
    .theme-navbar .main-menu .nav-link,
    .navbar .main-menu .nav-link {
        color: rgba(255,255,255,0.95);
        padding: .55rem .9rem;
        font-weight: 600;
    }

        .theme-navbar .main-menu .nav-link:hover,
        .navbar .main-menu .nav-link:hover {
            color: #ffd54f;
            text-decoration: none;
        }

        /* active highlight */
        .theme-navbar .main-menu .nav-link.active,
        .theme-navbar .main-menu .nav-link[aria-current="page"],
        .navbar .main-menu .nav-link.active,
        .navbar .main-menu .nav-link[aria-current="page"] {
            background: rgba(255,255,255,0.06);
            border-radius: 6px;
            color: #fff;
        }

    /* user area */
    .theme-navbar .user-section .nav-link,
    .navbar .user-section .nav-link {
        color: #fff;
        font-weight: 600;
    }

        .theme-navbar .user-section .nav-link:hover,
        .navbar .user-section .nav-link:hover {
            color: #ffd54f;
        }

    /* dropdown visuals */
    .theme-navbar .dropdown-menu,
    .navbar .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

/* ---------- LAYOUT CONTAINERS ---------- */
.app-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ---------- PAGE HEADER CARD ---------- */
.page-header-card {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

    .page-header-card h2 {
        margin: 0;
        font-weight: 700;
        font-size: 28px;
    }

    .page-header-card p {
        margin: 6px 0 0;
        opacity: 0.95;
        font-size: 0.95rem;
    }

/* ---------- CARD SURFACE ---------- */
.card-surface {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* ---------- TABLES ---------- */
.table thead th {
    background: var(--brand-1);
    color: #fff;
    border: 0;
    font-weight: 700;
}

.table td, .table th {
    vertical-align: middle;
    padding: 12px 14px;
}

.table tbody tr:hover {
    background: #f9f6ff;
}

/* ---------- BUTTONS ---------- */
.btn {
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background: var(--brand-1);
    border-color: var(--brand-1);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--brand-2);
        border-color: var(--brand-2);
    }

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* ---------- BADGES ---------- */
.badge-active {
    background: var(--success);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-expired {
    background: var(--danger);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-none {
    background: #6c757d;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* ---------- LOGIN CENTERING HELPERS ---------- */
/* Use with _LayoutLogin (layout that has no navbar) */
.login-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page-bg);
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 480px;
}

/* wrapper variant used when navbar present: uses available height */
.login-vh {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* fallback */
.login-wrapper {
    min-height: 100vh;
    background: var(--page-bg);
    padding: 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .theme-navbar .main-menu {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .theme-navbar .brand-text {
        font-size: 1.05rem;
    }

    .app-container {
        padding: 8px;
    }

    .page-header-card, .card-surface {
        padding: 16px;
    }
}

/* small screens: ensure login box fits nicely */
@media (max-width: 575.98px) {
    .login-box {
        max-width: 100%;
    }

    .page-header-card h2 {
        font-size: 20px;
    }
}

/* ---------- TWEAKS / FIXES ---------- */
/* ensure ULs inside navbar don't show bullets */
.theme-navbar .navbar-nav, .navbar .navbar-nav {
    list-style: none !important;
    padding-left: 0 !important;
}

/* small visual helpers */
.small {
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}


.members-hero {
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #6f42c1, #8a2be2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

    .members-hero h2 {
        font-weight: 700;
        color: #fff;
    }

    .members-hero p {
        color: rgba(255,255,255,0.85);
    }

.search-input {
    max-width: 300px;
}


/* ---------- END OF FILE ---------- */
