/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1887C1 0%, #003E7C 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main content */
main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
}

/* Claim section */
.claim-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #555;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #1887C1;
    box-shadow: 0 0 0 3px rgba(24, 135, 193, 0.1);
}

.input-group select {
    cursor: pointer;
}

#startClaimBtn {
    align-self: center;
    margin-top: 10px;
}

/* Task section */
.task-section {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timer display at top */
.timer-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.current-claim {
    background: linear-gradient(90deg, #1887C1, #006AA4);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.current-claim h2 {
    font-size: 1.3rem;
}


.timer-container {
    margin-bottom: 20px;
}

.timer-label {
    display: block;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.timer {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    color: #003E7C;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Task input */
.task-input {
    margin-bottom: 25px;
}

.task-input label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

#currentTask {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#currentTask:focus {
    outline: none;
    border-color: #1887C1;
    box-shadow: 0 0 0 3px rgba(24, 135, 193, 0.1);
}

/* Task controls */
.task-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Summary section */
.summary-section {
    border-top: 2px solid #e9ecef;
    padding-top: 25px;
    margin-bottom: 25px;
}

.summary-section h3 {
    color: #003E7C;
    margin-bottom: 15px;
}

.task-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.task-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.task-time {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #9FDE07;
    background: rgba(159, 222, 7, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.task-description {
    color: #555;
    line-height: 1.4;
}

.total-time {
    text-align: center;
    font-size: 1.2rem;
    color: #003E7C;
    background: rgba(24, 135, 193, 0.1);
    padding: 15px;
    border-radius: 8px;
}

/* Export section */
.export-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Activity Log */
.activity-log-section {
    border-top: 2px solid #e9ecef;
    padding-top: 25px;
    margin-top: 25px;
}

.activity-log-section h3 {
    color: #003E7C;
    margin-bottom: 15px;
    text-align: center;
}

.activity-log {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.log-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 600;
    color: #003E7C;
}

.log-time {
    font-family: 'Courier New', monospace;
    color: #9FDE07;
    background: rgba(159, 222, 7, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.log-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.log-description {
    color: #555;
    font-style: italic;
}

/* Button styles */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(45deg, #1887C1, #006AA4);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 135, 193, 0.4);
}

.btn-secondary {
    background: #003E7C;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #002851;
    transform: translateY(-2px);
}

.btn-success {
    background: #9FDE07;
    color: #003E7C;
}

.btn-success:hover:not(:disabled) {
    background: #8BC406;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-info {
    background: #006AA4;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #005082;
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    .timer {
        font-size: 2.5rem;
    }
    
    .claim-section {
        gap: 15px;
    }
    
    .timer-controls,
    .task-controls,
    .export-section {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Scrollbar styling */
.task-list::-webkit-scrollbar {
    width: 8px;
}

.task-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.task-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}