@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    background-image: url('https://img.freepik.com/free-photo/fantasy-scene-anime-style_23-2151135310.jpg?t=st=1758022268~exp=1758025868~hmac=d8411b845cfc61b7000294fbc48e34fc73d00ed714eeb6586e436db96fb8feb5&w=1480');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e5e5e5;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    min-height: 100vh;
}

.header {
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    padding: 1.5rem 0;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-section {
    flex: 1;
    text-align: center;
}

.welcome-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 150px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    font-size: 15px;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.main-content {
    min-height: calc(100vh - 180px);
}

.card {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e5e5e5;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a4a4a;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
}

.btn-primary {
    background-color: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.btn-primary:hover {
    background-color: #e5e5e5;
}

.btn-danger {
    background-color: #4a1a1a;
    border-color: #6a2a2a;
}

.btn-danger:hover {
    background-color: #6a2a2a;
    border-color: #8a3a3a;
}

.alert {
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #1a4a1a;
    border: 1px solid #2a6a2a;
    color: #a0ffa0;
}

.alert-error {
    background-color: #4a1a1a;
    border: 1px solid #6a2a2a;
    color: #ffa0a0;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    width: 100%;
}

.form-footer .btn {
    margin-left: auto;
}

.char-count {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin: 0;
}

.char-count.warning {
    color: #ffa500;
}

.comment-char-count {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin: 0.25rem 0 0.5rem 0;
    text-align: right;
}

.comment-char-count.warning {
    color: #ffa500;
}

.comment-char-count.error {
    color: #ff6b6b;
}

.journal-entry {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.journal-date {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.journal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e5e5;
}

.date-greeting {
  
    padding: 0.75rem 0;
    text-align: center;
}

.greeting-text {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.countdown-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.countdown-text {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.countdown-timer span {
    display: inline-block;
    min-width: 2ch;
}

.minimal-prompt {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.minimal-prompt .prompt-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e5e5e5;
    font-style: italic;
    margin: 0;
}

.prompt-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.prompt-info .prompt-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #a0a0a0;
    font-style: italic;
    margin: 0;
}

.compact-prompt-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.compact-prompt-header .prompt-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #e5e5e5;
    font-style: italic;
    margin: 0 0 0.5rem 0;
}

.community-timeline {
    margin-top: 1rem;
}

.timeline-entry {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease;
}

.timeline-entry:hover {
    border-color: #2a2a2a;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.timeline-time {
    color: #666666;
}

.timeline-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e5e5;
}

.welcome-card {
    text-align: center;
    padding: 1.25rem;
}

.welcome-card h1,
.welcome-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.welcome-card p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.button-center {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dashboard-card {
    text-align: center;
}

.dashboard-card .form-group {
    text-align: left;
    margin: 0 auto 1.75rem auto;
}

.dashboard-card .btn {
    margin: 0;
}

.archive-item {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.archive-item:hover {
    border-color: #2a2a2a;
}

.archive-item h3 {
    color: #ffffff;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.archive-item .prompt-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #a0a0a0;
}

.archive-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.archive-date {
    font-weight: 500;
}

.archive-count {
    background-color: #2a2a2a;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.community-entry {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.community-entry .author {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.90rem;
}

.author-link:hover {
    color: #ffffff;
}

.community-entry .content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e5e5e5;
}

.community-entry .timestamp {
    font-size: 0.75rem;
    color: #666666;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #a0a0a0;
}

.empty-state h3 {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.submitted-entry {
    text-align: center;
}

.submitted-entry h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.entry-display {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #e5e5e5;
    margin-bottom: 1rem;
}

.entry-meta {
    text-align: center;
    color: #a0a0a0;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.cozy-message {
    background-color: #2d586782;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.cozy-message p {
    margin-bottom: 0.75rem;
    color: #e5e5e5;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cozy-message p:last-child {
    margin-bottom: 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-header h1 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.profile-meta {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.public-entry {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.public-entry:hover {
    border-color: #2a2a2a;
}

.entry-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2a2a2a;
}

.entry-date {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.entry-prompt {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.4;
}

.public-entry .entry-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e5e5;
}

.footer {
    margin-top: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.8rem;
}

.footer a {
    color: #9C73B9;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .welcome-section {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .welcome-text {
        font-size: 0.85rem;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .header {
        padding: 1.25rem 0;
        margin-bottom: 1.5rem;
    }
}

/* Archive Page Styles */
.archive-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.nav-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e5e5e5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
}

.page-info {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

.archive-prompt-card {
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.prompt-number {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

.prompt-date {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 500;
}

.prompt-content {
    margin-bottom: 0;
}

.prompt-content .prompt-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #e5e5e5;
    font-style: italic;
    margin: 0 0 0.75rem 0;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.reflection-count {
    color: #a0a0a0;
}

.read-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-link:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .archive-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .prompt-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .prompt-actions {
        text-align: center;
    }
}

/* Avatar Preview Styles */
.avatar-preview {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
}

.avatar-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 20px;
}

.avatar-text {
    color: #666666;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Profile Avatar Styles */
.profile-header {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #2a2a2a;
    object-fit: cover;
}

.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    margin: 0 auto;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.profile-meta {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0;
}

/* Entry Avatar Styles */
.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #2a2a2a;
    object-fit: cover;
}

.entry-avatar.default {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    flex-shrink: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    bottom: -2rem;
    width: 2px;
    background-color: #2a2a2a;
}

.timeline-date {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.calendar-icon {
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    position: relative;
}

/* Calendar Week Icon (used in index.php) */
.calendar-week-icon {
    width: 50px;
    height: 40px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    position: relative;
    margin-bottom: 0.25rem;
}

/* Calendar Timeline Icon (used in profile.php) */
.calendar-timeline-icon {
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    position: relative;
}

.calendar-header {
    background-color: #2a2a2a;
    color: #a0a0a0;
    height: 16px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Calendar Week Header (used in index.php) */
.calendar-week-icon .calendar-header {
    background-color: #2a2a2a;
    color: #a0a0a0;
    height: 14px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Calendar Timeline Header (used in profile.php) */
.calendar-timeline-icon .calendar-header {
    background-color: #2a2a2a;
    color: #a0a0a0;
    height: 16px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.calendar-month {
    font-size: 7px;
    font-weight: 500;
}

/* Calendar Week Month (used in index.php) */
.calendar-week-icon .calendar-month {
    font-size: 8px;
    font-weight: 500;
}

/* Calendar Timeline Month (used in profile.php) */
.calendar-timeline-icon .calendar-month {
    font-size: 8px;
    font-weight: 500;
}

.calendar-body {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

/* Calendar Week Body (used in index.php) */
.calendar-week-icon .calendar-body {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

/* Calendar Timeline Body (used in profile.php) */
.calendar-timeline-icon .calendar-body {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.calendar-day {
    font-size: 16px;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1;
}

/* Calendar Week Day (used in index.php) */
.calendar-week-icon .calendar-day {
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1;
}

/* Calendar Timeline Day (used in profile.php) */
.calendar-timeline-icon .calendar-day {
    font-size: 16px;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1;
    height: 5px;
}

/* Plain Date Text (no calendar styling) */
.plain-date-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.plain-date-text .date-day {
    font-size: 18px;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1;
}

.plain-date-text .date-month {
    font-size: 10px;
    font-weight: 400;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
}

.calendar-week-day.today .plain-date-text .date-day {
    color: #ffffff;
    font-weight: 700;
}

.calendar-week-day.today .plain-date-text .date-month {
    color: #cccccc;
    font-weight: 500;
}

/* Calendar Week View */
.calendar-week-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
}

.calendar-week-header {
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-week-title {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.calendar-week-description {
    font-size: 0.75em;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.2px;
    font-style: italic;
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    justify-items: center;
}

.calendar-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    min-height: 80px;
}

.calendar-week-day:hover {
    background-color: #1a1a1a;
}

.calendar-week-day.today {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.calendar-week-day.today .calendar-icon {
    border-color: #4a4a4a;
}

.calendar-week-day.today .calendar-header {
    background-color: #3a3a3a;
}

.calendar-week-label {
    font-size: 0.7em;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.25rem;
    line-height: 1.2;
    padding-bottom: 0.1rem;
}

.calendar-week-day.today .calendar-week-label {
    color: #999;
}

/* User Entry Content */
.user-entry-content {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #2a2a2a;
    line-height: 1.6;
    color: #e5e5e5;
}

.edit-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #2d1b1b;
    border: 1px solid #4a2a2a;
    color: #ff6b6b;
}

.alert-success {
    background-color: #1b2d1b;
    border: 1px solid #2a4a2a;
    color: #6bff6b;
}

/* Character Count Styles */
.char-count {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.char-count.warning {
    color: #ffa500;
}

.char-count.error {
    color: #ff6b6b;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e5e5e5;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4a4a4a;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #2a2a2a;
    border-color: #4a4a4a;
}

.btn-primary {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4a4a4a;
    border-color: #5a5a5a;
}

.btn-danger {
    background-color: #3a1a1a;
    border-color: #4a2a2a;
    color: #ff6b6b;
}

.btn-danger:hover {
    background-color: #4a2a2a;
    border-color: #5a3a3a;
    color: #ff8a8a;
}

/* Dashboard Card */
.dashboard-card {
    margin-bottom: 1.5rem;
}

.date-greeting {
    margin-bottom: 1rem;
}

.greeting-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Entry Actions */
.entry-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    font-size: 0.75rem;
}

/* Make sure comment action links are clearly smaller */
.comment-author .comment-actions {
    font-size: 0.8rem;
    gap: 0.35rem;
}

.comment-author .comment-actions .comment-link {
    font-size: inherit;
    color: #777;
}

.comment-link {
    color: #666;
    text-decoration: none;
    font-size: inherit;
    font-weight: 400;
    transition: color 0.2s ease;
}

.comment-link:hover {
    color: #999;
    text-decoration: underline;
}

.comment-link-danger {
    color: #ff6b6b;
}

.comment-link-danger:hover {
    color: #ff8a8a;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.comment-edit-form {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #2a2a2a;
}

.comment-edit-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e5e5e5;
    font-family: inherit;
    font-size: 0.8rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.comment-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Horizontal Date Navigation */
.horizontal-date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.nav-arrow {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.nav-arrow:hover {
    color: #999;
}

.date-number {
    font-size: 16px;
    font-weight: 500;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
    text-align: center;
}

.date-number:hover {
    background-color: #2a2a2a;
    color: #e5e5e5;
}

.date-number.today {
    background-color: #3a3a3a;
    color: #ffffff;
    font-weight: 600;
}

.date-number.today:hover {
    background-color: #4a4a4a;
}


.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-entry {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.timeline-entry:hover {
    border-color: #2a2a2a;
}


.timeline-prompt {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2a2a2a;
}

.timeline-prompt em {
    color: #a0a0a0;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
}

.timeline-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e5e5;
}

@media (max-width: 768px) {
    .timeline-item {
        gap: 1rem;
    }
    
    .calendar-icon {
        width: 40px;
        height: 40px;
    }
    
    .calendar-week-icon {
        width: 40px;
        height: 40px;
    }
    
    .calendar-timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .calendar-header {
        height: 14px;
        font-size: 6px;
    }
    
    .calendar-week-icon .calendar-header {
        height: 14px;
        font-size: 6px;
    }
    
    .calendar-timeline-icon .calendar-header {
        height: 14px;
        font-size: 6px;
    }
    
    .calendar-body {
        height: 26px;
    }
    
    .calendar-week-icon .calendar-body {
        height: 26px;
    }
    
    .calendar-timeline-icon .calendar-body {
        height: 26px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .calendar-week-icon .calendar-day {
        font-size: 14px;
    }
    
    .calendar-timeline-icon .calendar-day {
        font-size: 14px;
    }
    
    .plain-date-text .date-day {
        font-size: 16px;
    }
    
    .plain-date-text .date-month {
        font-size: 9px;
    }
    
    .horizontal-date-nav {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .date-number {
        font-size: 14px;
        padding: 0.4rem 0.6rem;
        min-width: 28px;
    }
    
    .nav-arrow {
        font-size: 14px;
    }
    
    
    .timeline-item:not(:last-child)::after {
        left: 20px;
        top: 40px;
    }
}

/* Entry Actions */
.entry-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1a1a;
}

.like-btn, .comment-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-decoration: none;
}

.like-btn:hover, .comment-btn:hover {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

.like-btn.liked {
    color: #ff6b6b;
}

.like-btn.liked:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

/* Comments Section */
.comments-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #1a1a1a;
    overflow-wrap: break-word;
    word-break: break-word;
}

.comments-list {
    margin-bottom: 0.75rem;
}

.comment-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.85rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-avatar.default {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-author a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.90rem;
}

.comment-author a:hover {
    color: #e5e5e5;
}

.comment-time {
    color: #666;
    font-size: 0.75rem;
}

.comment-content {
    color: #e5e5e5;
    font-size: 0.90rem;
    line-height: 1.4;
    margin-left: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.comment-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.comment-form textarea {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    color: #e5e5e5;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #555;
}

.comment-form textarea::placeholder {
    color: #666;
}

.add-comment-btn {
    background-color: #333;
    border: none;
    color: #e5e5e5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.add-comment-btn:hover {
    background-color: #444;
}

/* Profile Statistics */
.profile-stats-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.profile-stats-text p {
    margin: 0.5rem 0;
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.profile-stats-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile responsive additions */
@media (max-width: 768px) {
    .comment-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-comment-btn {
        margin-top: 0.5rem;
    }
}

/* Skeleton loading styles */
.skeleton-loading {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    border-radius: 4px;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-comment {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
}

.skeleton-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skeleton-comment-author {
    width: 80px;
    height: 16px;
}

.skeleton-comment-time {
    width: 60px;
    height: 14px;
}

.skeleton-comment-content {
    width: 100%;
    height: 14px;
    margin-bottom: 0.25rem;
}

.skeleton-comment-content:nth-child(2) {
    width: 75%;
}

.skeleton-comment-content:nth-child(3) {
    width: 60%;
}
