.usage-dashboard {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: calc(100vh - 64px);
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.subtitle {
    margin: 0.25rem 0 0;
    color: #666;
    font-size: 0.875rem;
}

.credit-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.credit-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.credit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.credit-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
}

.refresh-date, .expiry-date {
    font-size: 0.75rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.credit-amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: #0A66C3;
    margin: 1rem 0;
}

.credit-progress-container {
    margin-top: 1rem;
}

.credit-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #0A66C3;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.credit-label {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.rollover-credits .credit-amount {
    color: #198754;
}

.credit-note {
    color: #666;
    font-size: 0.875rem;
}

.usage-details {
    display: block;
}

.usage-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 500;
}

.view-all-btn {
    color: #0A66C3;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.used {
    background: #0A66C3;
}

.legend-color.rollover {
    background: #198754;
}

.activity-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    margin-bottom: 0.5rem;
}

.activity-content {
    flex: 1;
}

.activity-grid {
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.5rem;
}

.activity-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-title {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.activity-credits {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.activity-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.toggle-details {
    background: none;
    border: none;
    color: #0A66C3;
    font-size: 0.85rem;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    margin-left: auto;
}

.toggle-details:hover {
    background: #f0f7ff;
}

.prompt-details {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #0A66C3;
    width: 100%;
}

.prompt-details.hidden {
    display: none;
}

.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.prompt-number {
    color: #0A66C3;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 1.5rem;
}

.prompt-content {
    color: #1a1a1a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.activity-item.expanded {
    background-color: rgba(0, 0, 0, 0.02);
}

.activity-item.expanded .toggle-icon {
    transform: rotate(180deg);
}

.no-activity {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.no-activity .update-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.no-activity .update-link:hover {
    text-decoration: underline;
}

.activity-icon.prompt_flow {
    background: #e3f2fd;
    color: #1976d2;
}

.activity-icon.summary_generation {
    background: #f3e5f5;
    color: #7b1fa2;
}

.activity-icon.review_all_expectations {
    background: #fff3e0;
    color: #f57c00;
}

.activity-icon.focus_questions {
    background: #e8f5e8;
    color: #388e3c;
}

.activity-icon.recommendation {
    background: #e0f2f1;
    color: #00796b;
}

.activity-icon.single_expectation_review {
    background: #fce4ec;
    color: #c2185b;
} 