518 lines
9.1 KiB
CSS
518 lines
9.1 KiB
CSS
/* Claude Usage Tracker Extension Styles */
|
||
|
||
.claude-usage-tracker-container {
|
||
margin-top: 16px;
|
||
padding: 16px;
|
||
background: rgba(255, 255, 255, 0.05);
|
||
border-radius: 12px;
|
||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||
}
|
||
|
||
.claude-usage-tracker-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-100, #e5e5e5);
|
||
margin-bottom: 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.claude-usage-tracker-title svg {
|
||
width: 16px;
|
||
height: 16px;
|
||
}
|
||
|
||
/* Weekly Progress Bar */
|
||
.weekly-progress-container {
|
||
display: flex;
|
||
gap: 4px;
|
||
height: 32px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.day-segment {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
position: relative;
|
||
}
|
||
|
||
.day-bar {
|
||
width: 100%;
|
||
height: 20px;
|
||
background: rgba(255, 255, 255, 0.05);
|
||
border-radius: 4px;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.day-bar-bg {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100%;
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.day-bar-fill {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100%;
|
||
border-radius: 4px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.day-segment.future .day-bar {
|
||
opacity: 0.4;
|
||
}
|
||
|
||
/* Offset para el día de reinicio (hueco al principio) */
|
||
.day-bar-offset {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100%;
|
||
background: repeating-linear-gradient(
|
||
-45deg,
|
||
rgba(50, 50, 50, 0.8),
|
||
rgba(50, 50, 50, 0.8) 3px,
|
||
rgba(30, 30, 30, 0.8) 3px,
|
||
rgba(30, 30, 30, 0.8) 6px
|
||
);
|
||
border-radius: 4px 0 0 4px;
|
||
z-index: 2;
|
||
}
|
||
|
||
.day-segment.reset-day .day-label::after {
|
||
content: ' 🔄';
|
||
font-size: 8px;
|
||
}
|
||
|
||
.day-bar-fill.under-budget {
|
||
background: linear-gradient(90deg, #10b981, #34d399);
|
||
}
|
||
|
||
.day-bar-fill.on-track {
|
||
background: linear-gradient(90deg, #f59e0b, #fbbf24);
|
||
}
|
||
|
||
.day-bar-fill.over-budget {
|
||
background: linear-gradient(90deg, #ef4444, #f87171);
|
||
}
|
||
|
||
.day-label {
|
||
font-size: 10px;
|
||
color: var(--text-400, #a3a3a3);
|
||
margin-top: 4px;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.day-segment.today .day-label {
|
||
color: var(--accent-main-100, #f97316);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.day-segment.today .day-bar {
|
||
border: 1px solid var(--accent-main-100, #f97316);
|
||
}
|
||
|
||
/* Daily Target Line */
|
||
.daily-target-line {
|
||
position: absolute;
|
||
top: 0;
|
||
height: 100%;
|
||
width: 2px;
|
||
background: rgba(255, 255, 255, 0.5);
|
||
z-index: 1;
|
||
}
|
||
|
||
/* Info Row */
|
||
.usage-info-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: 12px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||
}
|
||
|
||
.usage-stat {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
.usage-stat-label {
|
||
font-size: 10px;
|
||
color: var(--text-400, #a3a3a3);
|
||
text-transform: uppercase;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.usage-stat-value {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--text-100, #e5e5e5);
|
||
}
|
||
|
||
.usage-stat-value.good {
|
||
color: #10b981;
|
||
}
|
||
|
||
.usage-stat-value.warning {
|
||
color: #f59e0b;
|
||
}
|
||
|
||
.usage-stat-value.danger {
|
||
color: #ef4444;
|
||
}
|
||
|
||
/* Session Info */
|
||
.session-info-container {
|
||
margin-top: 16px;
|
||
padding: 12px;
|
||
background: rgba(255, 255, 255, 0.03);
|
||
border-radius: 8px;
|
||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.session-info-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--text-200, #d4d4d4);
|
||
margin-bottom: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.session-info-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 12px;
|
||
}
|
||
|
||
.session-info-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.session-info-label {
|
||
font-size: 10px;
|
||
color: var(--text-400, #a3a3a3);
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.session-info-value {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: var(--text-100, #e5e5e5);
|
||
}
|
||
|
||
.session-reset-text {
|
||
margin-top: 8px;
|
||
font-size: 11px;
|
||
color: var(--text-400, #a3a3a3);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* Tooltip */
|
||
.day-tooltip {
|
||
position: absolute;
|
||
bottom: 100%;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
background: rgba(0, 0, 0, 0.9);
|
||
color: white;
|
||
padding: 6px 10px;
|
||
border-radius: 6px;
|
||
font-size: 11px;
|
||
white-space: nowrap;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.2s;
|
||
z-index: 100;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.day-segment:hover .day-tooltip {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Reset Info */
|
||
.reset-info {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 11px;
|
||
color: var(--text-400, #a3a3a3);
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.reset-info svg {
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
|
||
/* Progress summary */
|
||
.progress-summary {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
font-size: 13px;
|
||
color: var(--text-200, #d4d4d4);
|
||
margin-top: 12px;
|
||
padding: 12px 16px;
|
||
background: rgba(255, 255, 255, 0.03);
|
||
border-radius: 8px;
|
||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.progress-ideal {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.progress-ideal-indicator {
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
box-shadow: 0 0 6px currentColor;
|
||
}
|
||
|
||
.progress-ideal-indicator.perfect {
|
||
background: #06b6d4;
|
||
box-shadow: 0 0 8px #06b6d4;
|
||
}
|
||
|
||
.progress-ideal-indicator.good {
|
||
background: #10b981;
|
||
box-shadow: 0 0 8px #10b981;
|
||
}
|
||
|
||
.progress-ideal-indicator.warning {
|
||
background: #f59e0b;
|
||
box-shadow: 0 0 8px #f59e0b;
|
||
}
|
||
|
||
.progress-ideal-indicator.danger {
|
||
background: #ef4444;
|
||
box-shadow: 0 0 8px #ef4444;
|
||
}
|
||
|
||
.progress-summary .usage-values {
|
||
display: flex;
|
||
gap: 16px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.progress-summary .usage-value {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
.progress-summary .usage-value-label {
|
||
font-size: 10px;
|
||
color: var(--text-400, #a3a3a3);
|
||
text-transform: uppercase;
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.progress-summary .usage-value-number {
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.progress-summary .usage-value-number.used {
|
||
color: var(--text-100, #f5f5f5);
|
||
}
|
||
|
||
.progress-summary .usage-value-number.ideal {
|
||
color: var(--text-300, #a3a3a3);
|
||
}
|
||
|
||
.progress-summary .usage-value-number.under {
|
||
color: #10b981;
|
||
}
|
||
|
||
.progress-summary .usage-value-number.over {
|
||
color: #ef4444;
|
||
}
|
||
|
||
/* Estimated end date */
|
||
.estimated-end {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-top: 12px;
|
||
padding: 10px 14px;
|
||
background: rgba(16, 185, 129, 0.1);
|
||
border: 1px solid rgba(16, 185, 129, 0.3);
|
||
border-radius: 8px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.estimated-end.warning {
|
||
background: rgba(239, 68, 68, 0.1);
|
||
border-color: rgba(239, 68, 68, 0.3);
|
||
}
|
||
|
||
.estimated-end-label {
|
||
color: var(--text-300, #a3a3a3);
|
||
}
|
||
|
||
.estimated-end-date {
|
||
font-weight: 600;
|
||
color: var(--text-100, #f5f5f5);
|
||
text-transform: capitalize;
|
||
}
|
||
|
||
.estimated-end-time {
|
||
color: var(--text-200, #d4d4d4);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.estimated-end-hours {
|
||
color: #ef4444;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
/* Session sliders */
|
||
.session-sliders {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
margin: 12px 0;
|
||
padding: 12px;
|
||
background: rgba(0, 0, 0, 0.2);
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.session-slider-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.session-slider-label {
|
||
font-size: 12px;
|
||
color: var(--text-300, #a3a3a3);
|
||
width: 70px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.session-slider-track {
|
||
flex: 1;
|
||
height: 8px;
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border-radius: 4px;
|
||
position: relative;
|
||
overflow: visible;
|
||
}
|
||
|
||
.session-slider-fill {
|
||
height: 100%;
|
||
border-radius: 4px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.session-slider-fill.time {
|
||
background: linear-gradient(90deg, #3b82f6, #60a5fa);
|
||
}
|
||
|
||
.session-slider-fill.usage.good {
|
||
background: linear-gradient(90deg, #10b981, #34d399);
|
||
}
|
||
|
||
.session-slider-fill.usage.over {
|
||
background: linear-gradient(90deg, #f59e0b, #fbbf24);
|
||
}
|
||
|
||
.session-slider-marker {
|
||
position: absolute;
|
||
top: -3px;
|
||
width: 3px;
|
||
height: 14px;
|
||
background: white;
|
||
border-radius: 2px;
|
||
transform: translateX(-50%);
|
||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
.session-slider-value {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--text-200, #d4d4d4);
|
||
width: 35px;
|
||
text-align: right;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Boost 2× indicator */
|
||
.boost-indicator {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 14px;
|
||
border-radius: 8px;
|
||
margin-bottom: 12px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.boost-indicator.active {
|
||
background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
|
||
border: 1px solid rgba(16, 185, 129, 0.4);
|
||
}
|
||
|
||
.boost-indicator.inactive {
|
||
background: rgba(255, 255, 255, 0.03);
|
||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||
}
|
||
|
||
.boost-badge {
|
||
font-weight: 700;
|
||
font-size: 14px;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.boost-indicator.active .boost-badge {
|
||
background: linear-gradient(135deg, #10b981, #06b6d4);
|
||
color: white;
|
||
animation: boost-pulse 2s ease-in-out infinite;
|
||
}
|
||
|
||
.boost-indicator.inactive .boost-badge {
|
||
background: rgba(255, 255, 255, 0.1);
|
||
color: var(--text-300, #a3a3a3);
|
||
}
|
||
|
||
@keyframes boost-pulse {
|
||
0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
|
||
50% { box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.3); }
|
||
}
|
||
|
||
.boost-text {
|
||
font-weight: 600;
|
||
color: var(--text-100, #f5f5f5);
|
||
}
|
||
|
||
.boost-indicator.inactive .boost-text {
|
||
color: var(--text-300, #a3a3a3);
|
||
}
|
||
|
||
.boost-next {
|
||
margin-left: auto;
|
||
color: var(--text-300, #a3a3a3);
|
||
font-size: 12px;
|
||
}
|