
body {
    margin: 0;
    background: #f4f4f9;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.bottom-nav {
    line-height: 1.6;
}

.logo {
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

/* BUTTONS */
.actions button {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #fafafa;
    cursor: pointer;
    transition: 0.2s;
    font-size: 10px;
}

.actions button:hover {
    background: #eaeaea;
    transform: translateY(-1px);
}

/* CONTAINER */
.container {
    max-width: 950px;
    margin: 35px auto;
    padding: 0 18px;
}

/* CARD */
.card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.card:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

/* PROFILE HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* SECTION TITLES */
.section-title {
    font-size: 18px;
    margin-bottom: 14px;
    border-left: 5px solid #1a73e8;
    padding-left: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* LISTS */
ul {
    padding-left: 20px;
    margin: 0;
}

li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

li:last-child {
    border-bottom: none;
}

/* TITLES AND HEADING INSIDE LIST */
.example-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
.example-heading {
    font-size: 18px;
    color: #060;
}

/* SETTINGS */
.settings-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: #1a73e8;
    font-size: 14.5px;
    transition: 0.2s;
}

.settings-links a:hover {
    color: #0b57d0;
    padding-left: 4px;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ==== Loader ==== */

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0000ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#recent-activity-view, #recommendation-view {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

#recent-activity-view {
    max-height: 350px;
}

.empty-message {
    text-align: center;
    color: #92400e;
    font-style: italic;
}

.ui-icon {
    width: 20px;
    height: 20px;
    color: #555;
    flex-shrink: 0;
    display: block;
}

/* ==== STATS ==== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-box {
    background: #f8f9fc;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 22px;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.extra-stats p {
    margin: 6px 0;
    font-size: 14px;
}

.stats-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;   /* was 24px */
}

.stats-block {
    background: #f9fafc;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.2s ease;
}

.stats-block h3 {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

.stats-block:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ==== 7 Day Streak ==== */

.streak-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.streak-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #666;
}

.streak-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.streak-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #22c55e;
    transition: height 0.6s ease;
}

.streak-circle.freeze .streak-fill {
    background: #3b82f6;
}

.streak-date {
    margin-top: 4px;
}

/* Highlight today's circle */
.streak-circle.today {
    border: 2px solid #1a73e8;
}

/* Pulse animation when today is active */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.streak-circle.pulse {
    animation: pulse 1.2s infinite;
}

/* Tooltip */
.streak-item {
    position: relative;
}

.streak-item:hover::after {
    content: attr(data-full-date);
    position: absolute;
    bottom: 40px;
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Profile completion */

.completion-wrapper {
    margin-top: 12px;
}

.completion-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    width: 0%;
    background: #1a73e8;
    transition: width 0.4s ease;
}

/* ==== Profile Completion Border ==== */

.profile-progress {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.6s ease, box-shadow 0.4s ease;
}

/* Inner profile image */
#profile-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(#ddd, #ccc);
}

/* Glow effect when 100% */
.profile-progress.complete {
    box-shadow:
        0 0 8px rgba(34,197,94,0.6),
        0 0 18px rgba(34,197,94,0.4),
        0 0 28px rgba(34,197,94,0.2);
}

.profile-progress:hover::after {
    content: attr(data-progress);
    position: absolute;
    bottom: -28px;
    font-size: 12px;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

/* level */

.level-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 8px;
}

.level-fill {
    height: 100%;
    width: 0%;
    background: #1a73e8;
    transition: width 0.4s ease;
}

