/*
|--------------------------------------------------------------------------
| DASHBOARD
|--------------------------------------------------------------------------
*/

.dashboard-header{
    padding:32px;
    margin-bottom:24px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.dashboard-title{
    font-size:22px;
    font-weight:400;
    color:var(--dark-color);
    margin-bottom:8px;
}

.dashboard-subtitle{
    margin:0;
    color:#64748b;
    font-size:15px;
}

.dashboard-header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

/*
|--------------------------------------------------------------------------
| GLASS BUTTON
|--------------------------------------------------------------------------
*/

.btn-glass{
    background:rgba(255,255,255,.7);
    border:1px solid rgba(255,255,255,.55);
    border-radius:16px;
    height:52px;
    padding:0 18px;

    display:flex;
    align-items:center;
    gap:10px;
}

/*
|--------------------------------------------------------------------------
| ALERT
|--------------------------------------------------------------------------
*/

.urgent-alert{
    margin-bottom:24px;
    padding:20px 24px;

    border-radius:24px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;

    background:linear-gradient(
        135deg,
        rgba(239,68,68,.12),
        rgba(255,255,255,.7)
    );

    border:1px solid rgba(239,68,68,.15);
}

.alert-left{
    display:flex;
    align-items:flex-start;
    gap:16px;
}

.alert-icon{
    width:52px;
    height:52px;
    border-radius:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    background:linear-gradient(
        135deg,
        #ef4444,
        #f87171
    );
}

.alert-left h6{
    margin-bottom:6px;
    font-weight:700;
}

.alert-left p{
    margin:0;
    color:#64748b;
}

.alert-btn{
    border:none;
    height:48px;
    padding:0 22px;
    border-radius:14px;
    color:#fff;
    font-weight:600;

    background:linear-gradient(
        135deg,
        #ef4444,
        #f87171
    );
}

/*
|--------------------------------------------------------------------------
| OVERVIEW CARD
|--------------------------------------------------------------------------
*/

.overview-card{
    padding:24px;
    height:100%;
}

.overview-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.overview-icon{
    width:56px;
    height:56px;
    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.overview-icon svg{
    width:24px;
    height:24px;
}

.overview-icon.purple{
    background:rgba(79,70,229,.12);
    color:var(--primary-color);
}

.overview-icon.blue{
    background:rgba(14,165,233,.12);
    color:#0ea5e9;
}

.overview-icon.green{
    background:rgba(34,197,94,.12);
    color:#22c55e;
}

.overview-icon.yellow{
    background:rgba(245,158,11,.12);
    color:#f59e0b;
}

.overview-badge{
    padding:6px 10px;
    border-radius:12px;
    font-size:12px;
    font-weight:600;
}

.overview-badge.success{
    color:#16a34a;
    background:rgba(34,197,94,.12);
}

.overview-badge.danger{
    color:#dc2626;
    background:rgba(239,68,68,.12);
}

.overview-label{
    display:block;
    margin-bottom:10px;
    color:#64748b;
    font-size:12px;
    font-weight:600;
}

.overview-value{
    font-size:28px;
    font-weight:700;
    margin-bottom:14px;
    color:var(--dark-color);
}

.overview-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;

    font-size:13px;
    color:#64748b;
}

.overview-progress{
    height:8px;
    border-radius:20px;
    overflow:hidden;
    background:#e2e8f0;
    margin-bottom:14px;
}

.overview-progress-bar{
    width:70%;
    height:100%;
    border-radius:20px;

    background:linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
*/

.schedule-card,
.revenue-card{
    padding:24px;
    height:100%;
}

.card-header-custom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}

.card-header-custom h5{
    margin:0;
    font-weight:700;
}

.task-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:6px 10px;
    border-radius:12px;

    background:rgba(79, 70, 229, 0.1);
    color:var(--primary-color);

    font-size:12px;
    font-weight:600;
}

.icon-btn-sm{
    width:42px;
    height:42px;
    border:none;
    border-radius:14px;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f8fafc;
}

/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.table th{
    font-size:12px;
    color:#64748b;
    border:none;
    padding:18px 14px;
}

.table td{
    padding:18px 14px;
    border-color:#f1f5f9;
    vertical-align:middle;
}

.status-badge{
    padding:8px 12px;
    border-radius:12px;
    font-size:11px;
    font-weight:700;
}

.status-badge.success{
    background:rgba(34,197,94,.12);
    color:#16a34a;
}

.status-badge.pending{
    background:rgba(245,158,11,.12);
    color:#ca8a04;
}

.status-badge.danger{
    background:rgba(239,68,68,.12);
    color:#dc2626;
}

.table-btn{
    border:none;
    height:38px;
    padding:0 16px;
    border-radius:12px;
    cursor:pointer;

    background:rgba(79, 70, 229, 0.1);
    color:var(--primary-color);
    font-weight:600;
}

/*
|--------------------------------------------------------------------------
| REVENUE
|--------------------------------------------------------------------------
*/

.revenue-box{
    padding:24px;
    border-radius:22px;
    margin-bottom:24px;

    text-align:center;

    background:linear-gradient(
        135deg,
        rgba(79,70,229,.12),
        rgba(14,165,233,.10)
    );
}

.revenue-box h2{
    font-size:48px;
    font-weight:700;
    color:var(--primary-color);
    margin-bottom:10px;
}

.revenue-box p{
    margin:0;
    color:#64748b;
}

.revenue-item{
    margin-bottom:20px;
}

.mini-progress{
    height:8px;
    border-radius:20px;
    overflow:hidden;
    margin-top:10px;

    background:#e2e8f0;
}

.mini-progress-fill{
    width:70%;
    height:100%;

    background:linear-gradient(
        90deg,
        #22c55e,
        #4ade80
    );
}

.mini-progress.purple .mini-progress-fill{
    width:50%;

    background:linear-gradient(
        90deg,
        var(--primary-color),
        #818cf8
    );
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .dashboard-header{
        padding:22px;
    }

    .dashboard-title{
        font-size:30px;
    }

    .overview-value{
        font-size:24px;
    }

    .overview-footer{
        flex-direction:column;
        align-items:flex-start;
    }

    .urgent-alert{
        padding:18px;
    }

    .schedule-card,
    .revenue-card{
        padding:18px;
    }
}