
:root {
    /* Orbital Color Palette */
    --primary-color: #3F1263;           /* Primary Brand Color */
    --secondary-color: #363F87;         /* Secondary/Support Color */
    --interactive-color: #508C9B;       /* Neutral 1 (Dark) - for interactions */
    --attention-color: #EB7C6B;         /* Semantic - Error (repurposed for attention) */
    --main-text: #508C9B;               /* Neutral 1 (Dark) for primary text */
    --secondary-text: #6B7280;          /* Neutral 2 (Medium) for secondary text */
    --background: #F3EEE8;              /* Neutral 3 (Light) background */
    --success-color: #ACD3A8;           /* Semantic - Success */
    --error-color: #EB7C6B;             /* Semantic - Error */
    --card-bg: #FFFFFF;                 /* White for cards */
    --timer-active: #ACD3A8;            /* Active timer border */
    --timer-paused: #EB7C6B;            /* Paused timer border */
    --timer-auto-paused: #EB7C6B;       /* Auto-paused timer border */
}

/* Import Google Fonts for Orbital typography */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Cormorant:wght@400;500;600;700&display=swap');

/* Global Styles */
body {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    background-color: var(--background);
    color: var(--main-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
}

.app-title {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.app-description {
    color: var(--secondary-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.current-date {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Custom button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0;
    padding: 8px 16px;
    border-width: 0;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #2f0e4d;
    border-color: #2f0e4d;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #FFFFFF;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 6px;
    padding: 8px 16px;
    border-width: 1px;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-danger {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: #FFFFFF;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0;
    padding: 8px 16px;
    border-width: 0;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--main-text);
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0;
    padding: 8px 16px;
    border-width: 0;
}

.btn-warning {
    background-color: var(--timer-paused);
    border-color: var(--timer-paused);
    color: #FFFFFF;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0;
    padding: 8px 16px;
    border-width: 0;
}

/* Ghost button style */
.btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--primary-color);
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 6px;
    padding: 8px 16px;
    border-width: 0;
}

.btn-ghost:hover, .btn-ghost:focus {
    background-color: rgba(63, 18, 99, 0.1);
    color: var(--primary-color);
}

/* Task Cards */
.task-card {
    --timer-height: 120px;
    min-height: var(--timer-height);
    background-color: #f8f9fa;
    border: 1px solid var(--secondary-text);
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: visible;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Timer states */
.task-card {
    border: 1px solid var(--secondary-text);
    transition: all 0.3s ease;
}

.task-card.active-timer {
    border: 3px solid var(--timer-active);
    box-shadow: 0 0 15px rgba(172, 211, 168, 0.3);
}

.task-card.paused-timer, .task-card.auto-paused-timer {
    border: 3px solid var(--timer-paused);
    box-shadow: 0 0 15px rgba(235, 124, 107, 0.3);
}

.task-badge, .auto-paused-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

.auto-paused-badge {
    display: inline-block;
    margin-left: 0.5rem;
    background-color: var(--error-color);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 2px 5px rgba(235, 124, 107, 0.3);
}

.task-description {
    resize: none;
    position: relative;
    z-index: 1;
    min-height: 40px;
    font-size: 1.25rem;
    color: var(--main-text);
    line-height: 1.4;
    max-height: 5.6em;
    overflow-y: auto;
    font-family: 'Cormorant', serif;
}

.task-card textarea:focus {
    position: relative;
    z-index: 2;
    outline: 2px solid var(--interactive-color);
    box-shadow: none;
}

/* Timer Display */
.timer-display {
    font-family: 'Exo 2', monospace;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background-color: var(--background);
    border-radius: 5px;
    margin: 10px 0;
    color: var(--primary-color);
}

/* Time adjustment buttons */
.time-adjustments {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    gap: 0.5rem;
}

.time-adjust {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1rem;
    flex: 1;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
}

/* Timer control buttons */
.timer-controls {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.timer-controls .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
}

.btn-start {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--main-text);
}

.btn-pause {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.btn-end {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Completed Tasks Section */
.completed-tasks-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.completed-tasks-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Exo 2', sans-serif;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

.table td {
    font-family: 'Cormorant', serif;
}

/* Action buttons in table */
.action-btn {
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
}

/* Toast notifications */
.toast {
    background-color: var(--card-bg);
    color: var(--main-text);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Cormorant', serif;
}

.toast.success {
    background-color: #f0f8ef;
    border-left: 4px solid var(--success-color);
}

.toast.error {
    background-color: #fdf4f3;
    border-left: 4px solid var(--error-color);
}

.toast.warning {
    background-color: #fdf4f3;
    border-left: 4px solid var(--error-color);
}

.toast.info {
    background-color: #f2f6f8;
    border-left: 4px solid var(--interactive-color);
}

.toast-header {
    background-color: transparent;
    border-bottom: none;
    padding: 0.5rem 0.75rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
}

.toast-body {
    padding: 0.5rem 0.75rem 0.75rem;
    font-weight: 400;
}

/* Modal styles */
.modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
}

.modal-header {
    border-bottom-color: var(--background);
}

.modal-header .modal-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-body {
    font-family: 'Cormorant', serif;
}

.modal-footer {
    border-top-color: var(--background);
}

/* Auto-paused indicator */
.auto-paused-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--error-color);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

/* Footer styles */
footer {
    margin-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    color: var(--secondary-text);
    font-family: 'Cormorant', serif;
}

footer .version {
    background-color: var(--primary-color);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

/* Form elements */
.form-control, .form-select {
    font-family: 'Cormorant', serif;
    border-color: var(--secondary-text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--interactive-color);
    box-shadow: 0 0 0 0.2rem rgba(80, 140, 155, 0.25);
}

.form-label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-title {
        font-size: 1.75rem;
    }

    .timer-display {
        font-size: 1.5rem;
    }

    .task-card {
        min-height: auto;
    }

    .time-adjust {
        padding: 6px 12px;
        font-size: 0.875rem;
    }

    .timer-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timer-controls .btn {
        width: 100%;
    }

    .task-description {
        font-size: 1.1rem;
    }
}

/* Basic View Mode Styles */
.basic-view .task-card {
    min-height: auto;
    height: auto;
    padding: 0.5rem;
}

.basic-view .task-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
    margin-bottom: 0.25rem;
}

.basic-view .task-inputs-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.basic-view .client-select {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.basic-view .task-description {
    font-size: 0.9rem;
    min-height: 28px;
    margin-bottom: 0;
    max-height: 2.7em;
    padding: 0.2rem 0.4rem;
    flex: 1;
    min-width: 0;
}

.basic-view .timer-display {
    font-size: 1.1rem;
    padding: 0.25rem;
    margin: 0.25rem 0;
}

.basic-view .time-adjustments {
    display: none;
}

.basic-view .timer-controls {
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.basic-view .timer-controls .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    flex: 1;
}

.basic-view .timer-controls .btn svg {
    width: 14px;
    height: 14px;
}

.basic-view .auto-paused-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.25rem;
    top: 3px;
    right: 3px;
}

/* Make task cards smaller in basic view */
.basic-view .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .basic-view .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Transition for smooth view change */
.task-card,
.task-badge,
.client-select,
.task-description,
.timer-display,
.timer-controls .btn {
    transition: all 0.3s ease;
}
