770 lines
12 KiB
CSS
770 lines
12 KiB
CSS
/* Time Tracking Styles */
|
|
|
|
/* Container */
|
|
.time-tracking-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Page Header - reuse existing styles */
|
|
.page-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
color: white;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.page-icon {
|
|
font-size: 2.5rem;
|
|
display: inline-block;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-10px); }
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 1.1rem;
|
|
opacity: 0.9;
|
|
margin: 0.5rem 0 0 0;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Timer Section */
|
|
.timer-section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.timer-card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.timer-card.active {
|
|
border: 2px solid #10b981;
|
|
background: linear-gradient(135deg, #10b98110 0%, #059b6910 100%);
|
|
}
|
|
|
|
.timer-display {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.timer-value {
|
|
font-size: 4rem;
|
|
font-weight: 700;
|
|
color: #1f2937;
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.timer-status {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 20px;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-badge.active {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.status-badge.paused {
|
|
background: #f59e0b;
|
|
color: white;
|
|
}
|
|
|
|
.timer-info {
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.info-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label {
|
|
font-weight: 600;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.info-value {
|
|
color: #1f2937;
|
|
}
|
|
|
|
.project-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 16px;
|
|
color: white;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.task-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.75rem;
|
|
background: #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.timer-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Start Work Form */
|
|
.start-work-container {
|
|
text-align: center;
|
|
}
|
|
|
|
.start-work-container h2 {
|
|
font-size: 1.75rem;
|
|
color: #1f2937;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.start-work-container p {
|
|
color: #6b7280;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.modern-form {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-label {
|
|
font-weight: 600;
|
|
color: #374151;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.optional-badge {
|
|
background: #e5e7eb;
|
|
color: #6b7280;
|
|
padding: 0.125rem 0.5rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.form-control {
|
|
padding: 0.75rem 1rem;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
background-color: #f9fafb;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
background-color: white;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.form-actions {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* Stats Section */
|
|
.stats-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
padding: 1.5rem;
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
border: 1px solid #e5e7eb;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
color: #667eea;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.9rem;
|
|
color: #6b7280;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Entries Section */
|
|
.entries-section {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.view-toggle {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.toggle-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: 2px solid #e5e7eb;
|
|
background: white;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.toggle-btn.active {
|
|
background: #667eea;
|
|
color: white;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.view-container {
|
|
display: none;
|
|
}
|
|
|
|
.view-container.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Table Styles */
|
|
.entries-table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.entries-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.entries-table th {
|
|
text-align: left;
|
|
padding: 1rem;
|
|
border-bottom: 2px solid #e5e7eb;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.entries-table td {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.entry-row:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.date-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.date-day {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.date-month {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.time-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
}
|
|
|
|
.time-separator {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.project-task-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.project-tag {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.task-name,
|
|
.project-name {
|
|
color: #374151;
|
|
}
|
|
|
|
.no-project {
|
|
color: #9ca3af;
|
|
font-style: italic;
|
|
}
|
|
|
|
.duration-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.75rem;
|
|
background: #ede9fe;
|
|
color: #5b21b6;
|
|
border-radius: 16px;
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.break-duration {
|
|
color: #6b7280;
|
|
}
|
|
|
|
.notes-preview {
|
|
color: #6b7280;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.actions-cell {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Specific button hover states */
|
|
.btn-icon.resume-work-btn:hover:not(:disabled) {
|
|
color: #10b981;
|
|
border-color: #10b981;
|
|
background: #f0fdf4;
|
|
}
|
|
|
|
.btn-icon.edit-entry-btn:hover {
|
|
color: #667eea;
|
|
border-color: #667eea;
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
.btn-icon.delete-entry-btn:hover {
|
|
color: #ef4444;
|
|
border-color: #ef4444;
|
|
background: #fef2f2;
|
|
}
|
|
|
|
/* Grid View */
|
|
.entries-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.entry-card {
|
|
background: #f8f9fa;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
border: 1px solid #e5e7eb;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.entry-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.entry-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.entry-date {
|
|
font-weight: 600;
|
|
color: #374151;
|
|
}
|
|
|
|
.entry-duration {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: #667eea;
|
|
}
|
|
|
|
.entry-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.entry-project {
|
|
padding-left: 1rem;
|
|
border-left: 4px solid;
|
|
}
|
|
|
|
.entry-task,
|
|
.entry-time,
|
|
.entry-notes {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
color: #6b7280;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.entry-footer {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-large {
|
|
padding: 1rem 2rem;
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 0.5rem;
|
|
border: 1px solid #e5e7eb;
|
|
background: white;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: #6b7280;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: #f3f4f6;
|
|
transform: translateY(-2px);
|
|
color: #374151;
|
|
}
|
|
|
|
.btn-icon:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-icon:disabled:hover {
|
|
transform: none;
|
|
background: white;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: white;
|
|
color: #4b5563;
|
|
border: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
.btn-success {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: #059669;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-warning {
|
|
background: #f59e0b;
|
|
color: white;
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
background: #d97706;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #dc2626;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
color: #374151;
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 4rem 2rem;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.empty-state p {
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
background: white;
|
|
border-radius: 16px;
|
|
max-width: 600px;
|
|
margin: 5vh auto;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modal-small {
|
|
max-width: 400px;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 2rem;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
color: #6b7280;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: #f3f4f6;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 2rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 1.5rem 2rem;
|
|
border-top: 1px solid #e5e7eb;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.time-tracking-container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.timer-value {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.entries-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.entries-table {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.entries-table th,
|
|
.entries-table td {
|
|
padding: 0.5rem;
|
|
}
|
|
} |