/* ===========================
   Journal Page Styles v2.13.1
   With Calendar, Mood Integration, Assisted Journaling & Photo Upload
   =========================== */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.app-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #0f3460;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-left .logo {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 1.25rem;
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(233, 69, 96, 0.1);
    color: #ff6b6b;
}

.nav-link.active {
    background-color: rgba(233, 69, 96, 0.2);
    color: #ff6b6b;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background-color: #e94560;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #e94560;
    border: 1px solid #e94560;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: #e94560;
    color: #ffffff;
}

/* Journal Main Content */
.journal-main {
    flex: 1;
    padding: 2rem 1.5rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.journal-title {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.journal-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================================================
   CAEL TRANSFORM SECTION - Primary Action
   ============================================================================ */

.cael-transform-section {
    text-align: center;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cael-transform-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cael-transform-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cael-transform-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cael-btn-icon {
    font-size: 1.3rem;
}

.cael-transform-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: #e94560;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: #d63652;
    transform: scale(1.1);
}

.calendar-month {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    min-width: 180px;
    text-align: center;
}

/* Calendar Section - Collapsible */
.calendar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.calendar-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.2s ease;
}

.calendar-toggle:hover {
    background: #e9ecef;
}

.calendar-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.calendar-toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.calendar-collapsible {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 1rem;
}

.calendar-collapsible.collapsed {
    max-height: 0;
    padding: 0 1rem;
}

/* Calendar Grid - Compact */
.calendar-grid {
    max-width: 350px;
    margin: 0 auto;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 0.25rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #f8f9fa;
    min-height: 32px;
    font-size: 0.8rem;
}

.calendar-day:hover:not(.empty) {
    background: #e9ecef;
    transform: scale(1.1);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.today {
    background: #e94560;
    color: white;
}

.calendar-day.today .day-number {
    color: white;
}

.calendar-day.has-entry {
    background: linear-gradient(135deg, #fff5f5, #ffe0e6);
    border: 2px solid #e94560;
}

.calendar-day.today.has-entry {
    background: #e94560;
}

.calendar-day.has-photo {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(233, 69, 96, 0.1)) !important;
}

.day-number {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a2e;
}

.day-mood {
    font-size: 0.65rem;
    line-height: 1;
}

/* Journal Actions */
.journal-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.journal-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #e94560;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d63652;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Entry Form Container */
.entry-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mood Selector */
.mood-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.mood-option:hover {
    border-color: #e94560;
    background: #fff5f5;
}

.mood-option input {
    display: none;
}

.mood-option input:checked + .mood-emoji {
    transform: scale(1.2);
}

.mood-option:has(input:checked) {
    border-color: #e94560;
    background: linear-gradient(135deg, #fff5f5, #ffe0e6);
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);
}

.mood-option .mood-emoji {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}

.mood-option .mood-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Writing Prompt */
.writing-prompt {
    color: #e94560;
    font-style: italic;
    font-weight: 500;
}

/* Sync Option */
.sync-option {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e94560;
}

/* Form Elements */
.journal-entry-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a2e;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ============================================================================
   QUILL EDITOR STYLING
   ============================================================================ */

.entry-editor {
    background: #ffffff;
    border-radius: 8px;
    min-height: 250px;
}

.ql-toolbar.ql-snow {
    border: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
}

.ql-container.ql-snow {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 1rem;
}

.ql-editor {
    min-height: 200px;
    line-height: 1.7;
    color: #1a1a2e;
}

.ql-editor.ql-blank::before {
    color: #6c757d;
    font-style: normal;
}

/* ============================================================================
   PHOTO UPLOAD SECTION (v2.13)
   ============================================================================ */

.photo-upload-section {
    margin-top: 1.5rem;
}

.photo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-area:hover {
    border-color: #e94560;
    background: #fff5f5;
}

.photo-upload-area.dragover {
    border-color: #e94560;
    background: #fff0f3;
    border-style: solid;
}

.photo-upload-area.has-photo {
    border-style: solid;
    border-color: #4caf50;
    background: #f0fff4;
    padding: 0.5rem;
}

.photo-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.photo-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.photo-upload-icon {
    font-size: 2.5rem;
}

.photo-upload-text {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.photo-upload-hint {
    font-size: 0.8rem;
    color: #6c757d;
}

.photo-preview-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.photo-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

.photo-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e94560;
    color: white;
    border: 2px solid white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.photo-remove-btn:hover {
    background: #d63652;
    transform: scale(1.1);
}

.photo-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.photo-info {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================================================
   PHOTO LIGHTBOX (v2.13.1)
   ============================================================================ */

.photo-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.photo-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.photo-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.photo-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-lightbox-close:hover {
    transform: scale(1.2);
}

/* ============================================================================
   PHOTO THUMBNAIL IN ENTRY CARDS (v2.13.1)
   ============================================================================ */

.entry-photo-thumbnail-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.75rem 0;
}

.entry-photo-thumbnail-container:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.entry-photo-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.photo-expand-hint {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.entry-photo-thumbnail-container:hover .photo-expand-hint {
    color: #e94560;
}

/* ============================================================================
   CONTENT SOURCE INDICATOR
   ============================================================================ */

.content-source-indicator {
    display: none;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 1rem;
    text-align: center;
}

.content-source-indicator.visible {
    display: block;
}

/* ============================================================================
   ENTRY BADGES
   ============================================================================ */

.entry-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 500;
}

.ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.photo-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* ============================================================================
   JOURNAL ENTRIES LIST
   ============================================================================ */

.journal-entries {
    margin-top: 1rem;
}

.journal-entries h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.show-all-btn {
    width: 100%;
    margin-bottom: 1rem;
    justify-content: center;
}

/* Individual Entry Card */
.journal-entry-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.journal-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.entry-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.entry-mood-emoji {
    font-size: 2rem;
}

.entry-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.25rem 0;
}

.entry-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.entry-actions {
    display: flex;
    gap: 0.5rem;
}

.entry-action-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.entry-action-btn:hover {
    color: #e94560;
    background: #fff5f5;
}

.entry-action-btn.delete:hover {
    color: #dc3545;
    background: #fff5f5;
}

.entry-content {
    color: #495057;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.read-more-btn {
    background: none;
    border: none;
    color: #e94560;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    line-height: 1.8;
}

.empty-state strong {
    color: #667eea;
}

/* ============================================================================
   REFLECTIONS
   ============================================================================ */

.reflection {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
    border-radius: 0 8px 8px 0;
}

.reflection-header {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.reflection-content {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

.reflection-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.reflection-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.reflection-textarea:focus {
    outline: none;
    border-color: #e94560;
}

.reflection-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

/* ============================================================================
   RATING BUTTONS (v2.12)
   ============================================================================ */

.journal-rating-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    text-align: center;
}

.rating-prompt {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    transform: translateY(-2px);
}

.rating-btn.selected {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.rating-btn[data-rating="down"].selected {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
}

.rating-icon {
    font-size: 1.5rem;
}

.rating-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.rating-btn.selected .rating-label {
    color: #1a1a2e;
}

.rating-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
}

.rating-hint.rating-received {
    color: #4caf50;
}

/* ============================================================================
   CONFIRMATION MODAL
   ============================================================================ */

.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.confirm-modal-overlay.visible {
    display: flex;
}

.confirm-modal {
    background: #1e1e2e;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #374151;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.confirm-modal-body {
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.confirm-modal-body p {
    margin: 0.5rem 0;
}

.confirm-modal-body strong {
    color: #ffffff;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-modal-btn.cancel {
    background: #374151;
    color: #e5e7eb;
    border: 1px solid #4b5563;
}

.confirm-modal-btn.cancel:hover {
    background: #4b5563;
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(233, 69, 96, 0.2);
    }
}

@media (max-width: 768px) {
    .journal-title {
        font-size: 2rem;
    }
    
    .entry-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entry-header-left {
        width: 100%;
    }
    
    .entry-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .user-name {
        display: none;
    }
    
    .mood-selector {
        gap: 0.25rem;
    }
    
    .mood-option {
        padding: 0.5rem;
        min-width: 55px;
    }
    
    .mood-option .mood-emoji {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        min-height: 35px;
    }
    
    .day-number {
        font-size: 0.75rem;
    }
    
    .confirm-modal-actions {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
        text-align: center;
    }
    
    .photo-upload-area {
        padding: 1rem;
    }
    
    .photo-preview {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .journal-main {
        padding: 1.5rem 1rem;
    }
    
    .entry-form-container,
    .journal-entry-card {
        padding: 1.25rem;
    }
    
    .calendar-grid {
        padding: 0.75rem;
    }
}
