/* =========================================================
   ADMIN SCHEME MANAGEMENT PAGE
   ========================================================= */

.admin-scheme-page {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.admin-scheme-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
   
}

.admin-scheme-heading-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-scheme-heading-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0d6efd;
    font-size: 22px;
    flex-shrink: 0;
}

.admin-scheme-heading h1 {
    margin: 0;
    font-size: 27px;
    color: #172033;
}

.admin-scheme-heading p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   CREATE BUTTON
   ========================================================= */

.admin-scheme-create-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    transition: .2s ease;
    white-space: nowrap;
}

.admin-scheme-create-btn:hover {
    background: #0b5ed7;
    color: #fff;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.admin-scheme-summary {
    display: flex;
    margin-bottom: 22px;
}

.admin-scheme-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 18px;
}

.admin-scheme-summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0d6efd;
}

.admin-scheme-summary-item strong {
    display: block;
    font-size: 17px;
    color: #111827;
}

.admin-scheme-summary-item small {
    display: block;
    color: #6b7280;
    font-size: 11px;
}


/* =========================================================
   SCHEME GRID
   ========================================================= */

.admin-scheme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   SCHEME CARD
   ========================================================= */

.admin-scheme-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-scheme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
}


/* =========================================================
   SCHEME IMAGE AREA
========================================================= */

.admin-scheme-image-area {
    position: relative;
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

/* The actual uploaded image */
.admin-scheme-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    background: #f1f5f9;
}

/* No image */
.admin-scheme-no-image {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    background: #f1f5f9;
}

.admin-scheme-no-image i {
    font-size: 48px;
}

.admin-scheme-no-image span {
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   TYPE BADGE ON IMAGE
========================================================= */

.admin-scheme-type-badge {
    position: absolute;
    top: 18px;
    left: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.4px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

    z-index: 5;
}


/* =========================================================
   STATUS BADGE ON IMAGE
========================================================= */

.admin-scheme-status-badge {
    position: absolute;
    top: 18px;
    right: 18px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 7px 13px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

    z-index: 5;
}


/* Active */
.admin-scheme-status-badge.is-active {
    background: rgba(240, 253, 244, 0.96);
    color: #15803d;
}


/* Inactive */
.admin-scheme-status-badge.is-inactive {
    background: rgba(254, 242, 242, 0.96);
    color: #dc2626;
}


/* Status icon */
.admin-scheme-status-badge i {
    font-size: 10px;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.admin-scheme-card-content {
    padding: 20px;
}


/* =========================================================
   TITLE
   ========================================================= */

.admin-scheme-title-block h2 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    line-height: 1.25;
}

.admin-scheme-title-block p {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.admin-scheme-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.admin-scheme-info-box {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px;
    background: #f8fafc;
    border-radius: 10px;
}

.admin-scheme-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0d6efd;
    font-size: 13px;
}

.admin-scheme-info-box small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    margin-bottom: 3px;
}

.admin-scheme-info-box strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.admin-scheme-info-box em {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-style: normal;
}


/* =========================================================
   PACKAGE
   ========================================================= */

.admin-scheme-package {
    border-top: 1px solid #e5e7eb;
    margin-top: 18px;
    padding-top: 16px;
}

.admin-scheme-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.admin-scheme-section-title i {
    color: #0d6efd;
}

.admin-scheme-package ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-scheme-package li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.admin-scheme-package li i {
    color: #16a34a;
    font-size: 11px;
    margin-top: 4px;
    flex-shrink: 0;
}


/* =========================================================
   CREATED DATE
   ========================================================= */

.admin-scheme-created {
    margin-top: 15px;
    color: #94a3b8;
    font-size: 10px;
}

.admin-scheme-created i {
    margin-right: 5px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.admin-scheme-actions {
    border-top: 1px solid #e5e7eb;
    padding: 13px 20px;
    display: flex;
    gap: 8px;
}

.admin-scheme-action {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
    flex: 1;
}

.admin-scheme-action:hover {
    color: #fff;
}

.members-action {
    background: #eff6ff;
    color: #2563eb;
}

.members-action:hover {
    background: #2563eb;
}

.edit-action {
    background: #f0fdf4;
    color: #16a34a;
}

.edit-action:hover {
    background: #16a34a;
}

.pause-action {
    background: #fff7ed;
    color: #ea580c;
}

.pause-action:hover {
    background: #ea580c;
}

.activate-action {
    background: #ecfdf5;
    color: #15803d;
}

.activate-action:hover {
    background: #15803d;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.admin-scheme-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 70px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}

.admin-scheme-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 30px;
}

.admin-scheme-empty h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 20px;
}

.admin-scheme-empty p {
    max-width: 500px;
    margin: 0 auto 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


