/* Dashboard widgets — Sporcu Özeti (Planox-style) */
.sporcu-panel {
    background: linear-gradient(180deg, #0e131d 0%, #0b0f17 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 22px 24px 24px;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
}

.sporcu-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.sporcu-panel-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0;
}

.sporcu-panel-head h2 i {
    color: #5B8DEF;
    font-size: 20px;
}

.sporcu-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, .45);
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
    white-space: nowrap;
}

.sporcu-panel-link:hover {
    background: rgba(59, 130, 246, .12);
    color: #93c5fd;
}

.sporcu-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.sporcu-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 12px;
    color: #fff;
    min-height: 76px;
    transition: transform .2s;
}

.sporcu-stat:hover { transform: translateY(-2px); }

.sporcu-stat i {
    font-size: 22px;
    opacity: .95;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.sporcu-stat-body { min-width: 0; }

.sporcu-stat-label {
    font-size: 11px;
    font-weight: 600;
    opacity: .92;
    margin-bottom: 2px;
}

.sporcu-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.sporcu-stat-red { background: linear-gradient(135deg, #e85d5d, #d64545); }
.sporcu-stat-green { background: linear-gradient(135deg, #10b981, #059669); }
.sporcu-stat-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sporcu-stat-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.sporcu-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.sporcu-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    min-height: 76px;
    transition: transform .2s, box-shadow .2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.sporcu-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4);
    color: #fff;
}

.sporcu-action i {
    font-size: 22px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.sporcu-action-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sporcu-action-sub {
    font-size: 11px;
    opacity: .88;
}

.sporcu-action-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.sporcu-action-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sporcu-action-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.sporcu-action-slate { background: linear-gradient(135deg, #64748b, #475569); }

@media (max-width: 1100px) {
    .sporcu-stats,
    .sporcu-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .sporcu-stats,
    .sporcu-actions {
        grid-template-columns: 1fr;
    }

    .sporcu-stat-value { font-size: 24px; }
}

/* Dashboard widget lists */
.dash-widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.dash-widget {
    background: linear-gradient(180deg, #101622 0%, #0b0f17 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -28px rgba(0, 0, 0, .55);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-widget-green { border-top: 3px solid #10b981; }
.dash-widget-red { border-top: 3px solid #ef4444; }
.dash-widget-blue { border-top: 3px solid #3b82f6; }
.dash-widget-amber { border-top: 3px solid #f59e0b; }

.dash-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .02);
}

.dash-widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dash-widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.dash-widget-green .dash-widget-icon { background: linear-gradient(135deg, #10b981, #059669); }
.dash-widget-red .dash-widget-icon { background: linear-gradient(135deg, #f87171, #dc2626); }
.dash-widget-blue .dash-widget-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.dash-widget-amber .dash-widget-icon { background: linear-gradient(135deg, #fbbf24, #d97706); }

.dash-widget-title h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1.3;
}

.dash-widget-meta {
    font-size: 12px;
    color: var(--px-mut, #b0bdd0);
    font-weight: 500;
}

.dash-widget-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, .35);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
    flex-shrink: 0;
}

.dash-widget-link:hover {
    background: rgba(59, 130, 246, .12);
    color: #93c5fd;
}

.dash-widget-body {
    flex: 1;
    min-height: 280px;
    max-height: 360px;
    overflow: auto;
}

.dash-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.dash-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.dash-list-item + .dash-list-item {
    margin-top: 4px;
}

.dash-list-item:hover {
    background: rgba(255, 255, 255, .04);
    transform: translateX(2px);
}

.dash-list-item .px-avatar {
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-list-item .px-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 90, 95, .25), rgba(255, 138, 91, .18));
    color: #ffb4b6;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-task-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 158, 11, .15);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dash-list-main {
    min-width: 0;
}

.dash-list-main strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list-main span {
    display: block;
    font-size: 12px;
    color: var(--px-mut, #b0bdd0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list-end {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.dash-list-end small {
    font-size: 11px;
    color: var(--px-mut, #b0bdd0);
}

.dash-amount {
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
}

.dash-amount-ok { color: #34d399; }
.dash-amount-late { color: #f87171; }

.dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.dash-pill-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dash-pill-success { background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.dash-pill-warning { background: rgba(251, 191, 36, .15); color: #fcd34d; }
.dash-pill-danger { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.dash-pill-info { background: rgba(96, 165, 250, .15); color: #93c5fd; }

.dash-widget-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    color: var(--px-mut);
    font-size: 13px;
}

.dash-widget-empty i {
    font-size: 34px;
    opacity: .45;
}

@media (max-width: 1100px) {
    .dash-widgets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dash-list-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .dash-list-end {
        grid-column: 2;
        align-items: flex-start;
        text-align: left;
    }

    .dash-pill-row {
        justify-content: flex-start;
    }

    .dash-widget-head {
        flex-wrap: wrap;
    }
}
