/*======================================================
    GridLabs CRM Pro
    Dashboard - Light Theme
======================================================*/

.dashboard-page {
    width: 100%;
}


/*======================================================
    Dashboard Header
======================================================*/

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.dashboard-title {
    min-width: 0;
}

.dashboard-title h1 {
    margin: 0;

    color: #1f2937;

    font-size: 24px;
    font-weight: 600;

    line-height: 1.3;
}

.dashboard-title p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 13px;
}


/*======================================================
    Dashboard Action
======================================================*/

.dashboard-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.dashboard-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 18px;

    border: 0;

    border-radius: 9px;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    transition: var(--transition);
}

.dashboard-actions .btn-primary {
    background: var(--primary);

    color: #ffffff;

    box-shadow: 0 5px 15px rgba(196, 0, 0, 0.15);
}

.dashboard-actions .btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


/*======================================================
    Statistics
======================================================*/

.dashboard-stats {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 24px;
}


/*======================================================
    Dashboard Card
======================================================*/

.dashboard-card {
    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);

    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: #dbe2ea;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);

    transform: translateY(-2px);
}


/*======================================================
    Card Icon
======================================================*/

.dashboard-card-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #fff1f1;

    color: var(--primary);

    font-size: 18px;
}


/*======================================================
    Card Content
======================================================*/

.dashboard-card-content {
    min-width: 0;

    display: flex;

    flex-direction: column;
}

.dashboard-card-label {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 12px;

    font-weight: 500;
}

.dashboard-card-value {
    display: block;

    color: #1f2937;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 600;
}


/*======================================================
    Dashboard Grid
======================================================*/

.dashboard-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}


/*======================================================
    Dashboard Panel
======================================================*/

.dashboard-panel {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}


/*======================================================
    Panel Header
======================================================*/

.dashboard-panel-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border-bottom: 1px solid #edf2f7;
}

.dashboard-panel-header h2 {
    margin: 0;

    color: #1f2937;

    font-size: 15px;

    font-weight: 600;
}

.dashboard-panel-header p {
    margin: 4px 0 0;

    color: #94a3b8;

    font-size: 11px;
}

.dashboard-view-all {
    flex-shrink: 0;

    color: var(--primary);

    text-decoration: none;

    font-size: 11px;

    font-weight: 500;
}

.dashboard-view-all:hover {
    text-decoration: underline;
}


/*======================================================
    Panel Body
======================================================*/

.dashboard-panel-body {
    min-height: 180px;

    padding: 20px;
}


/*======================================================
    Empty State
======================================================*/

.dashboard-empty-state {
    min-height: 140px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: #94a3b8;
}

.dashboard-empty-state i {
    margin-bottom: 10px;

    color: #cbd5e1;

    font-size: 28px;
}

.dashboard-empty-state p {
    margin: 0;

    color: #94a3b8;

    font-size: 12px;
}


/*======================================================
    Laptop
======================================================*/

@media (max-width: 1199px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/*======================================================
    Tablet
======================================================*/

@media (max-width: 991px) {

    .dashboard-header {
        margin-bottom: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


/*======================================================
    Mobile
======================================================*/

@media (max-width: 767px) {

    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .dashboard-card {
        padding: 16px;
    }

}


/*======================================================
    Small Mobile
======================================================*/

@media (max-width: 575px) {

    .dashboard-title h1 {
        font-size: 21px;
    }

    .dashboard-title p {
        font-size: 12px;
    }

    .dashboard-card-icon {
        width: 44px;
        height: 44px;
    }

    .dashboard-card-value {
        font-size: 21px;
    }

    .dashboard-panel-header {
        padding: 15px;
    }

    .dashboard-panel-body {
        padding: 15px;
    }

}



/*======================================================
    Dashboard Lists
======================================================*/

.dashboard-list {
    display: flex;
    flex-direction: column;
}

.dashboard-list-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid #f1f5f9;
}

.dashboard-list-item:last-child {
    border-bottom: 0;
}

.dashboard-list-icon {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border-radius: 10px;

    background: #fff1f1;
    color: var(--primary);

    font-size: 14px;
}

.dashboard-list-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

.dashboard-list-content strong {
    color: #1f2937;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-list-content span {
    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-list-meta {
    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 3px;

    text-align: right;
}

.dashboard-list-meta small {
    color: #94a3b8;
    font-size: 9px;
}

.lead-status {
    padding: 4px 8px;

    border-radius: 20px;

    background: #f1f5f9;

    color: #475569;

    font-size: 9px;
    font-weight: 500;
}

.meeting-date {
    color: #475569;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.5;
}


/* Mobile */

@media (max-width: 575px) {

    .dashboard-list-item {
        align-items: flex-start;
    }

    .dashboard-list-meta {
        max-width: 90px;
    }

    .dashboard-list-icon {
        width: 34px;
        height: 34px;
    }

}