/* ==========================================
   PawTrack Dashboard
   ========================================== */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}


/* ==========================================
   Main Container
   ========================================== */

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}


/* ==========================================
   Header
   ========================================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-header h1 {
    margin: 0 0 5px;
}

.dashboard-header p {
    margin: 0;
    color: #666;
}


/* ==========================================
   Back Button
   ========================================== */

.back-button {
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-button:hover {
    transform: translateY(-1px);
}


/* ==========================================
   Dog Summary
   ========================================== */

.dog-summary {
    display: flex;
    align-items: center;
    gap: 20px;

    background-color: white;

    padding: 20px;

    margin-bottom: 20px;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dog-icon {
    font-size: 45px;
}

.dog-summary h2 {
    margin: 0 0 5px;
}

.dog-summary p {
    margin: 0;
    color: #666;
}


/* ==========================================
   Main Statistics Grid
   ========================================== */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 20px;
}


.stat-card {
    background-color: white;

    padding: 20px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}


.stat-icon {
    font-size: 30px;
}


.stat-card div:last-child {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.stat-label {
    color: #777;

    font-size: 14px;
}


.stat-card strong {
    font-size: 28px;
}


/* ==========================================
   General Card
   ========================================== */

.card {
    background-color: white;

    padding: 25px;

    margin-bottom: 20px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   Section Title
   ========================================== */

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0 0 5px;
}

.section-title p {
    margin: 0;

    color: #777;
}


/* ==========================================
   Activity Grid
   ========================================== */

.activity-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 12px;
}


.activity-card {
    text-align: center;

    padding: 18px 10px;

    border-radius: 10px;

    background-color: #f8f9fb;

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.activity-icon {
    font-size: 28px;
}


.activity-name {
    font-weight: bold;

    color: #666;
}


.activity-card strong {
    font-size: 18px;
}


/* ==========================================
   History
   ========================================== */

/* ==========================================
   History
   ========================================== */

#dashboardHistory {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.dashboard-history-card {

    background-color: #f8f9fb;

    border-radius: 12px;

    padding: 18px;

    border: 1px solid #eeeeee;
}


/* Date + Score */

.history-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;
}


.history-date {

    font-weight: bold;

    font-size: 16px;
}


.history-score {

    font-size: 20px;

    font-weight: bold;
}


/* Mood + Message */

.history-card-subheader {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;
}


.history-mood {

    color: #666;

    font-weight: 500;
}


.score-message {

    font-size: 14px;

    font-weight: bold;

    padding: 6px 10px;

    background-color: white;

    border-radius: 20px;
}


/* Daily Activities */

.daily-activities {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 10px;
}


.daily-activity {

    background-color: white;

    border-radius: 8px;

    padding: 12px 8px;

    text-align: center;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.daily-activity .activity-icon {

    font-size: 22px;
}


.daily-activity .activity-label {

    font-size: 12px;

    color: #777;

    font-weight: bold;
}


.daily-activity strong {

    font-size: 14px;
}


/* ==========================================
   Empty History
   ========================================== */

.empty-history {
    text-align: center;

    padding: 30px;

    color: #777;
}


/* ==========================================
   Footer
   ========================================== */

footer {
    text-align: center;

    color: #777;

    font-size: 14px;

    padding: 10px 0 20px;
}


/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 900px) {

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

    .activity-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 600px) {

    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;
    }

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

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

    .dashboard-history-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

}

@media (max-width: 700px) {

    .history-card-header {

        align-items: flex-start;

        gap: 10px;
    }

    .history-card-subheader {

        align-items: flex-start;

        gap: 10px;

        flex-direction: column;
    }

    .daily-activities {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 400px) {

    .daily-activities {

        grid-template-columns: 1fr 1fr;
    }

}