@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #070913;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #aab4be;
    --accent-green: #00e676;
    --accent-red: #ff1744;
    --accent-blue: #00d4ff;
    --font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.6), rgba(76, 29, 149, 0));
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.6), rgba(15, 23, 42, 0));
    bottom: -20%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4), rgba(6, 78, 59, 0));
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Container */
.app-container {
    max-width: 1800px;
    width: 95%;
    margin: 20px auto 40px auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.hide-widget-titles .widget-title {
    display: none !important;
}

/* Removed antigravity floating animation for cards */
@keyframes antigravity {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glassmorphism Card Style */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, filter 0.4s ease;
}

.card:hover {
    animation-play-state: paused;
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 20;
}

.hidden {
    display: none !important;
}

/* Auth Section */
#auth-section {
    text-align: center;
    margin-top: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#auth-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a0aab2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

#auth-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Header */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.user-header span {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Controls */
.controls {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.input-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input,
.input-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    width: 180px;
    font-family: var(--font-family);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.touch-picker {
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    cursor: pointer;
    color: var(--accent-blue) !important;
}

.touch-picker:hover {
    background: rgba(0, 212, 255, 0.15) !important;
}

.timer-display {
    margin: 30px 0;
    position: relative;
}

#timer {
    font-size: 4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: block;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.highlight-text {
    color: var(--accent-green);
    font-size: 1.4rem;
    margin-top: 15px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* Condensed Light Buttons */
button {
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.8;
}

button:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 198, 251, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 25px rgba(0, 198, 251, 0.5), 0 0 20px rgba(0, 198, 251, 0.4);
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(150, 201, 61, 0.3);
}

.btn-success:hover {
    box-shadow: 0 12px 25px rgba(150, 201, 61, 0.5), 0 0 20px rgba(150, 201, 61, 0.4);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: white;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(255, 8, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 12px 25px rgba(255, 8, 68, 0.5), 0 0 20px rgba(255, 8, 68, 0.4);
    transform: translateY(-3px);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.95rem;
}

.btn-text::before {
    display: none;
}

.btn-text:hover {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 8px 18px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.btn-outline::before {
    display: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Stats Grid */
.stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.stat-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* History List */
.history {
    display: flex;
    flex-direction: column;
}

.history h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

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

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 15px;
    border-radius: 14px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateX(5px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

.history-details {
    text-align: right;
    font-weight: 500;
}

.history-details small {
    color: var(--text-secondary);
    font-weight: normal;
}

.history-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.history-badge {
    font-size: 0.70rem;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100px;
}

.history-badge-project {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.history-badge-company {
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.3);
}

.history-badge-focus {
    background: rgba(156, 39, 176, 0.15);
    border-color: rgba(156, 39, 176, 0.3);
    color: #e1bee7;
}

.history-badge-multitasking {
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
    color: #ffe0b2;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .app-container {
        margin-top: 60px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    #timer {
        font-size: 3rem;
    }
}

/* Delete & Edit Buttons */
.btn-delete,
.btn-edit {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete::before,
.btn-edit::before {
    display: none;
}

.btn-delete:hover {
    color: var(--accent-red);
    background: rgba(255, 23, 68, 0.15);
    transform: scale(1.1);
}

.btn-edit:hover {
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.15);
    transform: scale(1.1);
}

.history-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-right: 10px;
}

/* Calendar Styling */
.calendar {
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.day-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
    min-width: 0;
    min-height: 0;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.calendar-day.today {
    border: 1px solid rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.05);
    color: var(--text-primary);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.2);
}

.calendar-day.has-work {
    background: rgba(0, 230, 118, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(0, 230, 118, 0.2);
    cursor: pointer;
}

.calendar-day.has-work:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.2);
    border-color: rgba(0, 230, 118, 0.4);
    z-index: 2;
}

.work-hours-indicator {
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-top: 4px;
    font-weight: 700;
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: rgba(15, 18, 30, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    font-weight: 500;
}

#close-settings {
    font-size: 1.8rem;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

#close-settings:hover {
    background: rgba(255, 255, 255, 0.15);
}

.currency-dropdown {
    width: 100%;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 35px;
}

/* Chart Widget */
.chart-widget {
    display: flex;
    flex-direction: column;
}

.chart-widget h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex-grow: 1;
    min-height: 220px;
    margin-top: 20px;
    padding-left: 35px;
    padding-bottom: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 30px;
    /* Aligns with padding-bottom of container */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    width: 25px;
}

.chart-day-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 12%;
    height: 100%;
    position: relative;
}

.chart-bar-area {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
}

.chart-sub-session {
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.8) 0%, rgba(0, 91, 234, 0.8) 100%);
    border-radius: 6px;
    margin-top: 3px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.chart-bar-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 90%;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.chart-sub-session:hover {
    filter: brightness(1.3);
    transform: scaleX(1.1);
}

.chart-day-label {
    position: absolute;
    bottom: -30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sortable List Styles */
.sortable-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sortable-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: grab;
    transition: background 0.2s, box-shadow 0.2s;
    user-select: none;
}

.sortable-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item.dragging {
    opacity: 0.5;
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Gantt Chart Widget */
.gantt-widget {
    display: flex;
    flex-direction: column;
}

.gantt-container {
    position: relative;
    width: 100%;
    min-height: 80px;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    /* Extra padding at bottom for hour labels if desired, or keep them inside */
}

/* Vertical lines for hours */
.gantt-hour-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.gantt-hour-marker span {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* The actual session blocks */
.gantt-block {
    position: absolute;
    top: 10px;
    height: 40px;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: width 1s linear;
    /* Smooth growth for live block */
}

.gantt-block-label {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    padding: 0 4px;
}

/* Live pulsating effect */
@keyframes pulsate-live {
    0% {
        opacity: 0.8;
        box-shadow: 0 0 8px rgba(255, 60, 60, 0.8);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 60, 60, 1);
    }

    100% {
        opacity: 0.8;
        box-shadow: 0 0 8px rgba(255, 60, 60, 0.8);
    }
}

.gantt-live {
    background: rgba(255, 60, 60, 0.8) !important;
    animation: pulsate-live 2s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sortable-item .drag-handle {
    margin-right: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    cursor: grab;
}

/* Print / Export Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .bg-orbs,
    .user-header,
    #auth-section,
    .timer-widget .btn-group,
    .timer-widget .input-group,
    .modal-overlay,
    #active-filters-container {
        display: none !important;
    }

    .app-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .dashboard-grid {
        gap: 20px !important;
    }

    .card {
        background: transparent !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 20px !important;
        page-break-inside: avoid;
    }

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: #000 !important;
    }

    .widget-title {
        color: black !important;
    }

    .text-secondary,
    .input-group label,
    .day-label,
    .stat-item .label,
    .history-date,
    .history-details small {
        color: #000 !important;
    }

    .stat-item {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: black !important;
    }

    .calendar-day {
        border-color: #000 !important;
        color: #000 !important;
    }

    .calendar-day.today {
        background: rgba(0, 0, 0, 0.05) !important;
        border-color: #000 !important;
        box-shadow: none !important;
        color: black !important;
    }

    .calendar-day.has-work {
        background: rgba(0, 0, 0, 0.1) !important;
        border-color: #000 !important;
        color: black !important;
    }

    .btn-delete {
        display: none !important;
    }

    .history-item {
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #000 !important;
        border-radius: 0 !important;
        padding: 10px 0 !important;
    }

    .chart-y-axis div,
    .chart-day-label {
        color: #000 !important;
    }

    #timer {
        color: black !important;
        text-shadow: none !important;
    }

    .highlight-text,
    .stat-item .value {
        color: #000 !important;
        text-shadow: none !important;
    }

    /* Ensure colors print correctly */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .gantt-hour-marker {
        border-left: 1px dashed #000 !important;
    }

    .gantt-hour-marker span {
        color: #000 !important;
        background: white !important;
    }

    /* Make inline-styled and text elements darker for readability on white background */
    .gantt-block,
    .chart-sub-session {
        filter: brightness(0.6) contrast(1.5) !important;
        border: 1px solid #000 !important;
    }

    .work-hours-indicator {
        color: #000 !important;
        font-weight: 800 !important;
    }

    .history-badge {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #666 !important;
    }
}