/* Activity Tracker Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #d8d8d8;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.navbar h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #222;
}

.navbar .subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.navbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-badge {
    color: #666;
    font-size: 0.9rem;
}

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

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

/* Typography */
h1 {
    color: #222;
    margin-bottom: 10px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #888;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

button:hover {
    background: #222;
}

button.secondary {
    background: white;
    color: #333;
    border: 1px solid #d0d0d0;
}

button.secondary:hover {
    background: #f5f5f5;
}

button.danger {
    background: #666;
    color: white;
}

button.danger:hover {
    background: #555;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Utility */
.hidden {
    display: none;
}

.error {
    background: #f5f5f5;
    color: #333;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #666;
}

/* Date Range Filter */
.date-range {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-range .date-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.date-range .date-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.date-range .search-row {
    margin-bottom: 0;
}

/* Activities List */
.activities-list {
    margin-top: 20px;
}

.activity-item {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 3px solid #333;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.activity-date {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.activity-stats {
    color: #666;
    font-size: 1rem;
}

.activity-comments {
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
    font-size: 1rem;
}

.activity-actions {
    margin-top: 10px;
}

.activity-actions button {
    margin-right: 10px;
    padding: 8px 16px;
    font-size: 1rem;
}

/* Totals Box */
.totals-box {
    background: #e8e8e8;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    border-left: 3px solid #555;
}

.totals-box h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.total-item {
    text-align: center;
}

.total-label {
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
}

.total-value {
    color: #222;
    font-size: 1rem;
    font-weight: 700;
}

/* GPX Import */
.gpx-import-section {
}

.gpx-file-input {
    display: none;
}

.gpx-preview {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.gpx-preview-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.gpx-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.gpx-preview-stat {
    text-align: center;
}

.gpx-preview-stat .label {
    font-size: 0.85rem;
    color: #666;
}

.gpx-preview-stat .value {
    font-weight: 600;
    color: #222;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar h1 {
        font-size: 1.2rem;
    }

    .navbar .subtitle {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 10px 10px 10px;
    }

    .card {
        padding: 15px;
    }

    .date-range {
        gap: 10px;
    }

    .date-range .date-row {
        flex-direction: column;
        gap: 10px;
    }

    .date-range .date-row .form-group {
        width: 100%;
    }

    .totals-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .total-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .total-item .total-label {
        text-align: left;
    }

    .total-item .total-value {
        font-size: 1.1rem;
        text-align: right;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .button-group {
        flex-direction: column;
    }

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

    .gpx-preview-stat {
        display: flex;
        justify-content: space-between;
    }
}
