/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

h2 {
    margin-bottom: 1.5rem;
    color: #3498db;
}

/* Button Styles */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.primary {
    background-color: #3498db;
    color: white;
}

.secondary {
    background-color: #2ecc71;
    color: white;
}

.danger {
    background-color: #e74c3c;
    color: white;
}

.info {
    background-color: #9b59b6;
    color: white;
}

/* Time Selection Section */
.time-selection {
    text-align: center;
    margin-bottom: 2rem;
}

.time-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.time-input input {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 200px;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.history-button-container {
    margin-top: 1rem;
    width: 100%;
}

/* Active Session Section */
.active-session {
    margin-bottom: 2rem;
}

.timer-display {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.current-time {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.task-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.task-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-input input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Statistics Section */
.statistics {
    margin-top: 2rem;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-options input {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.stats-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

.summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-buttons {
    display: flex;
    gap: 1rem;
}

@media print {
    .button-group, .action-buttons, .summary-buttons, .filter-options {
        display: none !important;
    }

    body {
        background-color: white;
    }

    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    h1, h2, h3 {
        color: black;
    }
}

.summary h3 {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }

    .task-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons, .summary {
        flex-direction: column;
    }

    .current-time {
        font-size: 2.5rem;
    }
}
