/* 
 * ToolCurve Dashboard - Panel & Card Styles
 * Reusable layout and component styles for specific dashboard views.
 */

/* Card System */
.tc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tc-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.tc-card-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: -12px;
    margin-bottom: 16px;
    display: block;
}

.tc-card-body {
    position: relative;
}

.tc-card-table {
    padding: 0;
    height: auto;
}

/* Stat Cards */
.tc-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 24px;
}

.tc-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 4px;
}

.tc-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
}

.tc-stat-change {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tc-stat-change.up {
    background-color: #dcfce7;
    color: #166534;
}

.tc-stat-change.down {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Grid & Layout Updates */

.tc-performance-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.tc-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

.tc-col {
    flex: 1;
}

/* Dashboard Tables */
.tc-dash-table {
    width: 100%;
    border-collapse: collapse;
}

.tc-dash-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tc-dash-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
    color: #334155;
}

.tc-dash-table tr:last-child td {
    border-bottom: none;
}

/* Movers List (Risers/Fallers) */
.tc-movers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tc-movers-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    color: #334155;
}

.tc-movers-list li:last-child {
    border-bottom: none;
}

/* Funnel Visualization */
.tc-funnel-viz {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-funnel-step {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    align-items: center;
    gap: 20px;
}

.tc-funnel-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.tc-funnel-bar-container {
    background: #f1f5f9;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
}

.tc-funnel-bar {
    background: #2563eb;
    height: 100%;
    border-radius: 7px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-funnel-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

/* Alerts & Mini Lists */
.tc-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tc-mini-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    color: #334155;
}