/* =============================================
   PRODUCTIVEAPP - TIME TRACKING MODULE
   Chronometre, Timesheet, Rapports, Tarification
   v1.0 - 2026-02-07
   ============================================= */

.tt-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tt-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

/* Timer Display */
.tt-timer-display {
    text-align: center;
    padding: 32px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 16px;
    margin-bottom: 24px;
}

.tt-timer-clock {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--accent-color, #d4af37);
    letter-spacing: 4px;
}

.tt-timer-label {
    color: var(--text-secondary, #888);
    font-size: 0.9rem;
    margin-top: 8px;
}

.tt-timer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.tt-btn-start {
    background: #10B981;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}

.tt-btn-start:hover { background: #059669; }

.tt-btn-stop {
    background: #EF4444;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}

.tt-btn-stop:hover { background: #DC2626; }

/* Tabs */
.tt-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #333);
    padding-bottom: 12px;
}

.tt-tab {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #888);
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}

.tt-tab.active {
    background: var(--accent-color, #d4af37);
    color: #fff;
    font-weight: 600;
}

.tt-tab:hover:not(.active) {
    background: var(--bg-secondary, #1a1a2e);
    color: var(--text-primary, #fff);
}

/* Entry Cards */
.tt-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.tt-entry:hover { transform: translateX(4px); }

.tt-entry-project {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.tt-entry-desc {
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
}

.tt-entry-duration {
    font-weight: 700;
    color: var(--accent-color, #d4af37);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.tt-entry-amount {
    color: #10B981;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Stats Cards */
.tt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tt-stat-card {
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.tt-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color, #d4af37);
}

.tt-stat-label {
    color: var(--text-secondary, #888);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .tt-wrapper { padding: 12px; }
    .tt-timer-clock { font-size: 2.5rem; }
    .tt-stats { grid-template-columns: repeat(2, 1fr); }
    .tt-entry { flex-direction: column; align-items: flex-start; gap: 8px; }
}
