/* Activity Tracking Styles */

/* Header */
.activity-header {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card i {
    font-size: 2rem;
    margin-right: 20px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: #e9ecef;
    font-size: 0.9rem;
}

/* Tabs */
.activity-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #3498db;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Forms */
.activity-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

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

/* Photo Upload */
.photo-upload-area {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-upload-area:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}

.upload-placeholder i {
    font-size: 2rem;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activity History */
.activity-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.activity-timeline {
    margin-top: 30px;
}

.activity-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content {
    flex: 1;
}

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

.activity-title {
    margin: 0;
    font-weight: 600;
}

.activity-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.activity-photos {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.activity-photo {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container {
    margin: 20px 0;
    height: 300px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

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

.summary-item .label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.achievement-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: #3498db;
    transition: width 0.3s;
}

.species-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.species-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.species-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .activity-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .activity-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 10px);
    }

    .photo-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .activity-header {
        padding: 20px 0;
    }

    .tab-btn {
        flex: 1 1 100%;
    }

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