* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    /* Same soft nature background as the dashboard, with a light overlay for readability */
    background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.30)),
        url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.profile-header {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
}

.cover-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details-container {
    position: relative;
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 20px;
}

.profile-dp-wrapper {
    margin-top: -50px;
}

.profile-dp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #fff;
}

.profile-info {
    flex: 1;
    padding-top: 10px;
}

.profile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-info h2 {
    text-align: left;
    margin-bottom: 0;
    color: #2c3e50;
}

/* Comparison Indicators */
.status-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.arrow-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    color: white;
}

.arrow-indicator.up { background-color: #2ecc71; }
.arrow-indicator.down { background-color: #e74c3c; }

.compare-text {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.diff-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
}

.username {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
}

.meta-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links, .nav-buttons {
    display: flex;
    gap: 8px;
}

.social-btn, .nav-btn {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.social-btn:hover, .nav-btn:hover { opacity: 0.85; }

/* Text color kept at white for proper contrast against these backgrounds */
.whatsapp { background: #25D366; color: #ffffff; }
.linkedin { background: #0A66C2; color: #ffffff; }

.nav-btn { background: #e0e0e0; color: #333; }
.journal-btn { background: #3498db; color: white; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute; right: 15px; top: 10px;
    font-size: 22px; cursor: pointer; color: #888;
}
 /* Diff Table */
.diff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}
.diff-table th, .diff-table td {
    padding: 8px;
    border: 1px solid #eee;
    text-align: center;
}

/* Forms & Dashboard */
form {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.form-row { display: flex; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 150px; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #495057; }

input[type="number"], input[type="date"], input[type="time"] {
    width: 100%; padding: 8px 12px; border: 1px solid #ced4da;
    border-radius: 6px; outline: none; font-size: 14px;
}

.submit-btn {
    width: 100%; padding: 10px; background: #2ecc71;
    color: white; font-size: 15px; font-weight: bold;
    border: none; border-radius: 6px; cursor: pointer;
}

.filter-container { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.filter-btn { padding: 6px 14px; border: 1px solid #ced4da; background: #fff; border-radius: 20px; cursor: pointer; font-size: 13px; }
.filter-btn.active { background: #34495e; color: white; border-color: #34495e; }

.cards { display: flex; gap: 15px; margin-bottom: 15px; }
.card { flex: 1; padding: 15px; background: #eef2f7; border-radius: 8px; text-align: center; }
.card h3 { font-size: 14px; color: #7f8c8d; margin-bottom: 5px; }
.card p { font-size: 22px; font-weight: bold; color: #2c3e50; }

.breakdown-box { background: #fafafa; padding: 12px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-around; font-size: 13px; }
.charts { display: flex; gap: 20px; margin-bottom: 25px; flex-wrap: wrap; }
.chart-box { flex: 1; min-width: 300px; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #e9ecef; }
.chart-box h4 { text-align: center; font-size: 14px; margin-bottom: 10px; color: #555; }
.canvas-wrapper { position: relative; height: 250px; width: 100%; }

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border: 1px solid #e9ecef; padding: 10px; text-align: center; }
th { background: #f8f9fa; color: #495057; }
th i { margin-right: 5px; color: #3498db; }

/* Shared styles for sub-pages (about.html, journal.html, history.html) */
.page-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-card h2 {
    margin-bottom: 15px;
}

.page-card h2.accent-blue { color: #007bff; }
.page-card h2.accent-green { color: #28a745; }
.page-card h2.accent-orange { color: #d35400; }

.page-card p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.back-btn {
    display: inline-block;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
}

.timeline {
    border-left: 3px solid #28a745;
    padding-left: 15px;
    margin-top: 20px;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.timeline-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.timeline-desc {
    color: #555;
    font-size: 14px;
}

/* ===== RED & BLACK sub-pages (full screen) ===== */
body { background-color: #050505; background-image: radial-gradient(circle at 12% 0, rgba(var(--t-base-rgb), .28), transparent 45%), radial-gradient(circle at 100% 100%, rgba(var(--t-dark-rgb), .4), transparent 50%);
       background-attachment: fixed; padding: 0; color: #eee; min-height: 100vh; }
.container, .dashboard-container { max-width: none; width: 100%; min-height: 100vh; margin: 0; border-radius: 0; background: transparent; box-shadow: none; padding: clamp(14px, 3vw, 40px) !important; }
.page-card { width: 100%; max-width: none; min-height: calc(100vh - 110px); background: #0d0d0d; border: 1px solid var(--t-input); color: #eee; border-radius: 14px;
             padding: clamp(20px, 4vw, 56px); box-shadow: 0 0 40px rgba(var(--t-base-rgb), .15); animation: pgIn .6s ease-out; }
@keyframes pgIn { from { opacity: 0; transform: translateY(18px); } }
.page-card h2, .page-card h2.accent-blue, .page-card h2.accent-green, .page-card h2.accent-orange { color: var(--t-hot); font-size: clamp(24px, 3.4vw, 38px); }
.page-card h3 { color: #fff !important; }
.page-card p, .timeline-desc { color: #cfcfcf; }
.page-card ul { color: #cfcfcf !important; }
.back-btn { background: var(--t-base); transition: background .2s, transform .2s; }
.back-btn:hover { background: var(--t-bright); transform: translateX(-3px); }
.timeline { border-left-color: var(--t-base); }
.timeline-title { color: #fff; } .timeline-date { color: #999; }
.filter-btn { background: #141414; color: #eee; border: 1px solid var(--t-dark); }
.filter-btn.active { background: var(--t-base); border-color: var(--t-base); color: #fff; }
table { color: #eee; } th, td { border: 1px solid var(--t-border); } th { background: var(--t-bg1); color: #fff; } th i { color: var(--t-base); }
form { background: #121212; border-color: var(--t-border); }
label { color: #ddd; }
input[type="number"], input[type="date"], input[type="time"], input[type="text"], textarea, select { background: #141414; color: #fff; border: 1px solid var(--t-input); color-scheme: dark; }
.submit-btn { background: linear-gradient(135deg, var(--t-base), var(--t-dark)); }
.card { background: #141414; } .card h3 { color: #999; } .card p { color: #fff; }
.breakdown-box, .chart-box { background: #101010; border-color: var(--t-border); color: #eee; }
.chart-box h4 { color: #ddd; }
.modal { background: #000; }
.modal-content { width: 100vw; max-width: none; height: 100vh; border-radius: 0; background: #0a0a0a; color: #eee; overflow: auto; }
.diff-table th, .diff-table td { border-color: var(--t-border); }
@media (max-width: 640px) { .page-card { border-radius: 10px; } }

/* ===== Profile photo (top-left of sub-pages) -> click to open the Dashboard ===== */
.home-avatar { position: sticky; top: 12px; z-index: 30; display: block; width: 58px; height: 58px; margin-bottom: 4px; border-radius: 50%;
    border: 2px solid var(--t-base); box-shadow: 0 0 0 3px rgba(var(--t-base-rgb), .25), 0 0 18px rgba(var(--t-base-rgb), .55); background: #0d0d0d;
    transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .25s; text-decoration: none; }
.home-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.home-avatar:hover, .home-avatar:focus-visible { transform: scale(1.1); box-shadow: 0 0 0 3px rgba(var(--t-base-rgb), .4), 0 0 26px rgba(var(--t-bright-rgb), .85); outline: none; }
.home-avatar::after { content: attr(data-label); position: absolute; left: 68px; top: 50%; transform: translateY(-50%) translateX(-6px); white-space: nowrap;
    background: #0a0a0a; color: #fff; border: 1px solid var(--t-base); border-radius: 14px; padding: 4px 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.home-avatar:hover::after, .home-avatar:focus-visible::after { opacity: 1; transform: translateY(-50%); }

/* days-done block inside the History page card */
.page-card .task-days-title { margin-top: 6px; }
