/*=====================================================
  DASHBOARD LAYOUT
=====================================================*/

:root{
    --tnp-red:#d60000;
    --tnp-blue:#0057b8;
    --tnp-gold:#d4af37;

    --tnp-dark:#111827;
    --tnp-dark2:#1f2937;

    --tnp-bg:#f5f7fb;
    --tnp-text:#1f2937;
    --tnp-muted:#6b7280;
    --tnp-border:#e5e7eb;

    --tnp-radius:22px;
}

/*=====================================================
PAGE
=====================================================*/

.tnp-dashboard{
    width:min(1500px,96%);
    margin:45px auto 90px;
}
/*=====================================================
HERO
=====================================================*/

.tnp-dashboard-hero{
    background:linear-gradient(
        135deg,
        #111827,
        #1f2937
    );
    color:#fff;
     padding:60px;
    border-radius:28px;
    margin-bottom:35px;
    box-shadow:0 20px 55px rgba(0,0,0,.12);
}

.tnp-dashboard-hero h1{
    font-size:44px;
    margin-bottom:15px;
}

.tnp-dashboard-hero p{
    color:#d7d7d7;
    font-size:18px;
    max-width:700px;
}

/*=====================================================
NEW TWO COLUMN LAYOUT
=====================================================*/

.tnp-dashboard-layout{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:40px;
    align-items:start;
}

.tnp-dashboard-content{
    width:100%;
    min-width:0;
}

.tnp-dashboard-container{
    width:100%;
}

/*=====================================================
ALERTS
=====================================================*/

.tnp-alert-success{
    background:#e8f8ee;
    color:#146c2e;
    border-left:5px solid #28a745;
    padding:20px;
    border-radius:16px;
    margin-bottom:30px;
    font-weight:600;
}

.tnp-alert-info{
    background:#eef6ff;
    color:#0c4a8a;
    border-left:5px solid #2196f3;
    padding:20px;
    border-radius:16px;
    margin-bottom:30px;
    font-weight:600;
}

.tnp-alert-grace{
    background:#fff6db;
    border-left:5px solid #ffb300;
    padding:20px;
    border-radius:16px;
    margin-bottom:30px;
}

.tnp-alert-grace a{
    color:#d60000;
    font-weight:700;
}

/*=====================================================
FOOTER
=====================================================*/

.tnp-dashboard-footer{
    margin-top:60px;
    text-align:right;
}

.tnp-dashboard-hero-content{
    max-width:720px;
}

.tnp-dashboard-hero-stats{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    align-items:center;
}

/*=====================================================
HERO
=====================================================*/

.tnp-dashboard-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 420px;
    gap:40px;

    align-items:center;

    background:linear-gradient(135deg,#111827,#1f2937);

    color:#fff;

    padding:50px;

    border-radius:28px;

    margin-bottom:40px;

    box-shadow:0 20px 55px rgba(0,0,0,.12);
}

/* LEFT */

.tnp-dashboard-hero-content h1{
    margin:16px 0 10px;
    font-size:48px;
    line-height:1.1;
}

.tnp-dashboard-hero-content p{
    color:#d1d5db;
    line-height:1.8;
    max-width:600px;
}

.tnp-dashboard-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:8px 16px;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    font-size:12px;

    font-weight:700;

    letter-spacing:.4px;

    text-transform:uppercase;
}

.tnp-dashboard-intro{
    margin-top:16px;
}

.tnp-dashboard-actions{
    display:flex;
    gap:18px;
    margin-top:30px;
    flex-wrap:wrap;
}

/* RIGHT */

.tnp-dashboard-hero-stats{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;
}

.tnp-dashboard-stat{

    background:rgba(255,255,255,.10);

    border-radius:18px;

    padding:26px;

    text-align:center;

    backdrop-filter:blur(6px);
}

.tnp-dashboard-stat strong{

    display:block;

    font-size:34px;

    margin-bottom:8px;
}

.tnp-dashboard-stat span{

    color:#d1d5db;

    font-size:13px;
}

/*=====================================================
MOBILE & TABLET
=====================================================*/

@media (max-width:992px){

    /* Page */

    .tnp-dashboard{
        width:95%;
        margin:20px auto 60px;
    }

    /* Hero */

    .tnp-dashboard-hero{

        grid-template-columns:1fr;

        gap:30px;

        text-align:center;

        padding:35px 25px;

    }

    .tnp-dashboard-hero-content{

        max-width:100%;

    }

    .tnp-dashboard-hero-content h1{

        font-size:38px;

    }

    .tnp-dashboard-actions{

        justify-content:center;

    }

    .tnp-dashboard-hero-stats{

        grid-template-columns:repeat(2,1fr);

        gap:16px;

        width:100%;

    }

    .tnp-dashboard-stat{

        padding:22px;

    }

    /* Main Layout */

    .tnp-dashboard-layout{

        grid-template-columns:1fr;

        gap:30px;

    }

    /* Sidebar */

    .tnp-dashboard-sidebar{

        width:100%;

        max-width:100%;

        position:relative;

        top:auto;

        left:auto;

        right:auto;

    }

    /* Content */

    .tnp-dashboard-content{

        width:100%;

    }

}


/*=====================================================
PHONE
=====================================================*/

@media (max-width:600px){

    .tnp-dashboard{

        width:94%;

    }

    .tnp-dashboard-hero{

        padding:28px 20px;

    }

    .tnp-dashboard-hero-content h1{

        font-size:32px;

    }

    .tnp-dashboard-hero p{

        font-size:15px;

    }

    .tnp-dashboard-actions{

        flex-direction:column;

        align-items:stretch;

    }

    .tnp-dashboard-actions .tnp-btn,

    .tnp-dashboard-actions .tnp-btn-outline{

        width:100%;

        text-align:center;

    }

    .tnp-dashboard-hero-stats{

        grid-template-columns:1fr 1fr;

    }

    .tnp-dashboard-stat{

        padding:18px;

    }

    .tnp-dashboard-stat strong{

        font-size:28px;

    }

}