[data-view="home"]
{
    background: #ffffff !important;
}
/* Header spacing */
[data-view="home"] .section-header{
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    background: var(--bg-primary);
    color: #F5F7FA !important;
    padding-bottom: 8px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;

}



.chevron{
    width: 2rem;
    height: 2rem;
    background: rgba(255,255,255, .5);
    text-align: center !important;
    vertical-align: center !important;
    border-radius: 2rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.chevron span {
padding: 7px 0 0 7px;
    font-size: 18px;

}

.chevron:active{

    background: rgba(255,255,255, .9);
    transform: scale(1.05);
    span{
        color: var(--bg-primary);
        outline: none !important;
    }
}


.section-name{
    font-size: 16px ;

}


/* Header spacing */
[data-view="home"] .auth-header {
    margin-bottom: 24px;
    overflow-y: auto ;
}


/*=====================================================*/




/* Greeting at the top */
h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

/* Card container holds the credit card visual */
.card-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 20px;
    color: #ffffff;
}

/* Abstract shapes behind the card content */
.card-container .shape-left,
.card-container .shape-right {
    position: absolute;
    border-radius: 50%;
}

.card-container .shape-left {
    width: 230px;
    height: 230px;
    /* Deep navy fading into midnight blue */
    background: radial-gradient(circle at 30% 30%, #2d4c83, #151c45);
    top: -70px;
    left: -80px;
}

.card-container .shape-right {
    width: 280px;
    height: 280px;
    /* Vibrant turquoise fade */
    background: radial-gradient(circle at 60% 40%, #1ed3b0, #29e7c9);
    top: -110px;
    right: -110px;
}

/* Base gradient for the card background */
.card-container::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Blend deep navy into bright turquoise */
    background: linear-gradient(135deg, #1a2c55 20%, #1a2c55 50%, #37e0bb 80%, #29e7c9 100%);
    z-index: 0;
}

/* Orange shadow under the card */
.card-container::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: linear-gradient(to right, #ffa248, #ff7a58);
    border-radius: 8px;
    z-index: -1;
}

/* Position content above all shapes */
.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.card-number {
    font-size: 14px;
    letter-spacing: 2px;
}

.card-balance {
    font-size: 24px;
    font-weight: 600;
    margin-top: 8px;
}

.card-logo {
    align-self: flex-end;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Tiles grid for actions */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}

.tile {
    /* Soft gradient and gentle shadow for an iOS feel */
    background: linear-gradient(to bottom, #ffffff, #f6f4fe);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 14px rgba(145, 131, 200, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* iOS‑like press feedback for action tiles */
.tile:active {
    transform: scale(0.94);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) inset;
}

/* Change icon background and stroke when tile is pressed */
.tile:active .tile-icon {
    background: currentColor;
    border-color: currentColor;
    color: #ffffff;
}

.tile:active .tile-icon svg path,
.tile:active .tile-icon svg line,
.tile:active .tile-icon svg polyline,
.tile:active .tile-icon svg rect,
.tile:active .tile-icon svg circle {
    stroke: #ffffff;
}

.tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    /* White background with coloured border; icon inherits current text colour */
    background: #ffffff;
    border: 2px solid currentColor;
}

.tile-label {
    font-size: 12px;
    font-weight: 500;
    color: #4f4f4f;
    line-height: 1.2;
}

/* Colour variations for individual tiles */
/* Each tile sets its accent colour via the 'color' property. The border and svg strokes use currentColor. */
.tile.account { color: #5d50f6; }
.tile.transfer { color: #ff72af; }
.tile.withdraw { color: #56aaf9; }
.tile.mobile { color: #f7ab42; }
.tile.paybill { color: #67cfad; }
.tile.credit { color: #ff7e59; }
.tile.report { color: #4f4ff7; }

/* Space adjustments for the report tile */
.tile.report {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*
  ==================================================================
  Application Header
  ------------------------------------------------------------------
  Added a fixed top bar to unify the look with the login and signup
  screens. It features a back button on the left, a title in the
  centre, and a menu button on the right. The colours come from
  the accent variables defined above.
  ==================================================================
*/
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.app-header .header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.app-header .header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* Bottom navigation bar */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 50px;
    padding: 12px 20px;
    height: 84px;
    background: #ffffff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 90;

}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 52px;
    width: 52px;
    border-radius: 16px;
    background: #f4f7fb;
    color: #8f99b2;

    transition: background 0.3s, color 0.3s;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    color: #1babce;


}

.nav-item.active svg,
.nav-item:active svg{
    color: #ffffff !important;

}
.nav-item.active {
    flex-direction: row;
    height: 52px;
    width: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    color: #ffffff !important;
}




.nav-item.active.active2{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    background: linear-gradient(135deg, #ffa248, #ff7a58);
    border-radius: 28px;


}


.nav-item.active.active2:active{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
}




.nav-item.active svg path {
    stroke: #ffffff;
}

/* Temporary active feedback on inactive icons */
.nav-item:not(.active):active {
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    color: #ffffff;
}

.nav-item:not(.active):active svg path {
    stroke: #ffffff;
}

/* New balance card styles */
.balance-card {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 24px;
    /* Use the primary accent for the balance card gradient to tie it into the rest of the app */
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    padding: 20px;
    margin-bottom: 24px;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.balance-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.balance-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.balance-title {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.withdraw-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.withdraw-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.eye-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    cursor: pointer;
}

.eye-btn svg {
    width: 24px;
    height: 24px;
}

/* Quick stats section */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card {
    position: relative;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    color: currentColor;
    /* Softer shadow and lighter background to align with the other screens */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Colour schemes for each stat */
.stat-card.pending { background: linear-gradient(to bottom, #fff8ec, #fff4e2); color: #e1a64e; }
.stat-card.processing { background: linear-gradient(to bottom, #f0f7ff, #e8f2ff); color: #6da7f3; }
.stat-card.success { background: linear-gradient(to bottom, #eaf9f0, #e1f7ea); color: #5bbc92; }
.stat-card.declined { background: linear-gradient(to bottom, #fff1f1, #ffe9e8); color: #e96e6e; }

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
}

.stat-info .stat-number {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    /* Inherit colour from the card itself */
    color: inherit;
}

.stat-info .stat-label {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
    /* Inherit colour from the card itself */
    color: inherit;
}

.stat-graph {
    margin-top: 6px;
}

.stat-graph svg {
    width: 100%;
    height: 16px;
    stroke: currentColor;
    opacity: 0.7;
}

.stat-bonus {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 8px;
    background: #ffd47f;
    color: #8e6a2b;
    padding: 2px 6px;
    border-radius: 8px;
}

/* Active state feedback for quick stats cards */
.stat-card:active {
    transform: scale(0.96);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Greeting styles align with login pages */
.greeting {
    margin-bottom: 16px;
}
.greeting span:first-child {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}
.greeting span:last-child {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

/* Recent activity section */
.recent-activity {
    margin-bottom: 100px;
}

.recent-activity h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Active state feedback for recent activity items */
.activity-item:active {
    transform: scale(0.97);
    background: #f0f5fb;
}

.activity-date {
    margin-right: 12px;
}

.activity-date .date-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.activity-date .status-small {
    font-size: 10px;
    color: var(--text-muted);
}

.activity-desc {
    flex: 1;
    font-size: 13px;
    color: var(--text-main);
    margin: 0 8px;
    font-weight: 500;
}

.activity-status-group {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 12px;
}

.status-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.status-tag {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-approved {
    background: rgba(31, 170, 207, 0.15);
    color: var(--accent);
}

.status-pending {
    background: rgba(255, 189, 68, 0.2);
    color: #d17a00;
}

.status-processing {
    background: rgba(31, 170, 207, 0.15);
    color: var(--accent);

}

.status-success {
    background: rgba(74, 169, 108, 0.15);
    color: #4aa96c;
}

.status-declined {
    background: rgba(233, 110, 110, 0.15);
    color: #e96e6e;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.submit-report {
    width: 100%;
    padding: 16px 16px;
    margin-top: 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
}

.submit-report:active {
    transform: scale(0.97);
}


/*===================================================*/
/*===================================================*/
/*===================================================*/
/*===================================================*/
/* Filter tabs similar to the segmented control in the example */
.filter-tabs {

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    /* Enable horizontal scrolling on touch devices when tabs overflow */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    /* Hide the scroll bar for a cleaner look */
    scrollbar-width: none; /* Firefox */
}

/* Hide the horizontal scroll bar in WebKit-based browsers */
.filter-tabs::-webkit-scrollbar {
    display: none;
}


.filter-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: #eef3f8;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05) !important;
    transition: background 0.15s ease, color 0.15s ease;
    flex: 0 0 auto;
    /* Ensure text doesn't wrap to new line */
    white-space: nowrap;
}

.filter-tab.active {
    background: rgba(31, 170, 207, 0.15);
    color: var(--accent);
}

/* Pressed state for tabs */
.filter-tab:active {
    background: rgba(31, 170, 207, 0.25);
    color: var(--accent);
}

/* Report list container */
.report-list {
    margin-top: 24px;
    /* Make the list scrollable vertically. Height is calculated to fit below the header and tabs */
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.report-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* Container for the first row of each report item (icon, title, statuses) */
.report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hidden details section shown when the item is opened */
.report-details {
    display: none;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #e6eef5;
    color: var(--text-main);
    line-height: 1.4rem;
}
.report-details p{
    font-size: 14px;
    line-height: 1.2rem;
    color: var(--text-main);
}
.text{
    font-size: 14px;
    line-height: 1.4;
    color: var(--accent) !important;
}

.text strong{
    font-size: 12px !important;
    font-weight: normal !important;
    color: var( --text-main) !important;
    display: inline-block;
    width: 3.25rem !important;
}

.border-bottom{
    border-bottom:1px solid #e6eef5;
    margin: .5rem 0 !important;
}

.report-item.open .report-details {
    display: block;
}

.report-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f0f4f8;
    display: grid;
    place-items: center;
    margin-right: 12px;
}

.report-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.report-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.report-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Status tags reused from home screen */
.status-tag {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-approved {
    background: rgba(31, 170, 207, 0.15);
    color: var(--accent);
}

.status-pending {
    background: rgba(255, 189, 68, 0.2);
    color: #d17a00;
}

.status-processing {
    background: rgba(105, 126, 255, 0.15);
    color: #5766d6;
}

.status-success {
    background: rgba(74, 169, 108, 0.15);
    color: #4aa96c;
}

.status-declined {
    background: rgba(233, 110, 110, 0.15);
    color: #e96e6e;
}

.report-statuses {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add Report button floating at the bottom right */
.add-report-btn {
    position: fixed;
    bottom: 96px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-end));
    color: #ffffff;
    font-size: 32px;
    line-height: 56px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}


/*===================================================*/
/*===================================================*/
/*===================================================*/
/*===================================================*/


/* Form wrapper and card styles */
.form-wrapper {

    padding-bottom: 100px;
    overflow-y: auto;
    flex: 1;
}

.form-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 10px ;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-card label {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: bold;
    color: var(--text-muted);
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.form-card textarea {
    resize: none;
    min-height: 100px;
}


/* Photo capture styles */
.photo-input {
    display: none;
}

.camera-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#previewImage {
    display: none;
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
