/* =========================
   Agent Dashboard Styles
========================= */

/* Layout */
.full-width h2 {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
}
.full-width > div:last-child {
    flex-shrink: 0;
}

/* Safe responsive image */
.full-width img {
    max-width: 100%;
    max-height: 150px; /* you can change this height */
    object-fit: contain; /* keeps aspect ratio */
    display: block;
}
@media (max-width: 768px) {
    .full-width {
        flex-direction: column;
        text-align: center;
    }

    .full-width > div:last-child {
        flex-shrink: 1;
    }

    .actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
    }
}

.content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.left-column,
.right-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-content {
    gap: 16px;
}

/* Typography */
.sub-text {
    margin: 6px 0 0;
    color: var(--muted-2);
}

.sub-text-bold {
    margin-top: 8px;
    color: var(--muted-2);
    font-weight: 700;
}

.time-text {
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 6px;
}

/* Buttons (global styles already exist, keep only spacing adjustments) */
.actions a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.btn i {
    opacity: 0.95;
    font-size: 14px;
}

.mini-btn {
    padding: 6px 10px;
    font-size: 13px;
}

/* Cards */
.widget {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 16px;
    border: 1px solid var(--border);
}

.stats-row,
.activities-row,
.events-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.stat-link {
    text-decoration: none;
    color: inherit;
}

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius);
    flex: 1;
    min-height: 90px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: linear-gradient(180deg, var(--card), var(--light));
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    cursor: pointer;
    background: linear-gradient(180deg, var(--card), #fafafd);
}

.stat-card .stat-left h6 {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card .stat-left h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.stat-card .icon {
    font-size: 26px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(20, 20, 60, 0.04);
    color: var(--accent-solid);
}

/* Chart / Progress / Pipeline */
.chart-card,
.progress-card,
.pipeline-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px !important;
}

.chart-card h6,
.progress-card h6,
.pipeline-card h6 {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 700;
}

.canvas-small,
.canvas-medium,
#progressChart {
    height: auto !important;
}

.progress-stats {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.progress-stats .stat {
    padding: 4px 6px;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
    font-size: 10px;
    color: var(--muted-2);
    border: 1px solid var(--border);
}

.progress-stats.grid-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Activities & Events */
.events-card ul,
.activity-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-card li,
.activity-card li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
}

.activity-card {
    flex: 1 1 300px;
    min-height: 140px;
    overflow: auto;
    padding: 12px;
}

/* Widgets */
.widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.widget-title {
    font-size: 13px;
    color: var(--muted-2);
}

.widget-value {
    font-size: 20px;
    font-weight: 700;
}

.quick-actions {
    display: flex;
    gap: 8px;
}

/* Tasks */
.tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--card);
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Calendar */
.calendar {
    height: 180px;
    border-radius: var(--radius);
    background: var(--light);
    border: 1px dashed rgba(14, 20, 30, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    font-weight: 600;
}

/* Events Grid */
.events-grid div {
    flex: 1;
}

.events-grid h6 {
    margin: 6px 0 4px;
}

/* Grid Utilities */
.grid-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

/* Pipeline Images */
.pipeline-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* =========================
   Responsive Media Queries
========================= */
@media (max-width: 1100px) {
    .content {
        grid-template-columns: 1fr;
    }

    .grid-two-columns {
        grid-template-columns: 1fr;
    }

    .widgets-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .widgets-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
    }

    .events-grid {
        flex-direction: column;
    }
}
