/* ============================== */
/* === Feature Styles === */
/* ============================== */

/* --- On This Day Banner --- */
.v2-on-this-day {
    background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,105,180,0.25));
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: v2CardFadeIn 0.5s ease;
    backdrop-filter: blur(6px);
}
.v2-otd-icon { font-size: 28px; flex-shrink: 0; }
.v2-otd-content { color: white; font-size: 14px; line-height: 1.6; }
.v2-otd-content strong { color: #ffe082; }
.v2-otd-item {
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.2s;
}
.v2-otd-item:hover { color: #ffe082; text-decoration: underline; }

/* --- Stats Dashboard --- */
.v2-stats {
    margin-bottom: 16px;
    animation: v2CardFadeIn 0.4s ease;
}
.v2-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.v2-stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.v2-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v2-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.v2-stats-chart {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
}
.v2-chart-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.v2-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}
.v2-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.v2-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--pink), var(--pink-dark));
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding-top: 2px;
    transition: height 0.4s ease;
}
.v2-bar-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
@media (max-width: 768px) {
    .v2-stats-cards { grid-template-columns: repeat(2, 1fr); }
}

/* --- Stats Sections --- */
.stats-section {
    margin-top: 24px;
}
.stats-section-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.stats-cat-row, .stats-year-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.stats-cat-name, .stats-year-label {
    font-size: 13px;
    color: white;
    font-weight: 600;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stats-cat-bar-bg, .stats-year-bar-bg {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.stats-cat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--pink-dark));
    border-radius: 10px;
    transition: width 0.5s ease;
    min-width: 4px;
}
.stats-year-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF9800, #FF5722);
    border-radius: 10px;
    transition: width 0.5s ease;
    min-width: 4px;
}
.stats-cat-count, .stats-year-count {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    min-width: 24px;
    text-align: right;
}
.stats-empty {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 12px 0;
}

/* --- Toolbar Round Buttons --- */
.v2-random-btn,
.v2-stats-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v2-random-btn:hover,
.v2-stats-btn:hover {
    background: var(--pink);
    transform: scale(1.1);
}

/* --- Stats Modal --- */
.v2-modal-stats {
    max-width: 560px;
    width: 95%;
    background: #1a1a2e !important;
}
.v2-modal-stats .v2-modal-header h3 {
    color: rgba(255,255,255,0.9);
}
.v2-modal-stats .v2-modal-close {
    color: rgba(255,255,255,0.5);
}
.v2-modal-stats .v2-modal-close:hover {
    color: white;
}
.v2-modal-stats .v2-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}
.v2-modal-stats .v2-stat-card {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}
.v2-modal-stats .v2-stats-chart {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
.v2-modal-stats .v2-bar {
    background: linear-gradient(180deg, var(--pink), var(--pink-dark));
}
.v2-modal-stats .stats-cat-bar {
    background: linear-gradient(90deg, var(--pink), var(--pink-dark));
}
.v2-modal-stats .stats-year-bar {
    background: linear-gradient(90deg, var(--pink), var(--pink-dark));
}

/* --- Random Memory Modal --- */
.v2-modal-random {
    max-width: 460px;
}
.v2-random-content {
    text-align: center;
}
.v2-random-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.v2-random-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}
.v2-random-name {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}
.v2-random-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.v2-random-notes {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: left;
    padding: 12px;
    background: var(--pink-light);
    border-radius: var(--radius-sm);
}
@keyframes v2RandomReveal {
    0% { opacity: 0; transform: scale(0.8) rotate(-3deg); }
    50% { transform: scale(1.02) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* --- Favorites --- */
.v2-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    transition: all 0.2s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.v2-card:hover .v2-card-fav { opacity: 1; pointer-events: auto; }
.v2-card-fav:hover { color: var(--pink); transform: scale(1.15); }
.v2-card-fav.v2-fav-active {
    color: var(--pink-dark);
    background: rgba(255,255,255,0.95);
    opacity: 1;
    pointer-events: auto;
}
.v2-card-edit {
    position: absolute;
    top: 8px;
    right: 44px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.v2-card:hover .v2-card-edit { opacity: 1; pointer-events: auto; }
.v2-card-edit:hover { background: rgba(255,255,255,0.95); transform: scale(1.15); }
.v2-card { position: relative; }

.v2-tl-fav {
    position: absolute;
    top: 8px;
    right: 8px;
}

.v2-detail-fav-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    padding: 0 8px;
    transition: all 0.2s;
}
.v2-detail-fav-btn:hover { transform: scale(1.2); }
.v2-detail-fav-btn.v2-fav-active { color: var(--pink-dark); }

/* --- Bucket List Toggle --- */
.v2-bucket-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 3px;
    width: fit-content;
}
.v2-bucket-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.v2-bucket-btn:hover { color: white; }
.v2-bucket-btn.active {
    background: var(--pink);
    color: white;
    box-shadow: 0 2px 8px rgba(255,20,147,0.3);
}

/* Planned card style */
.v2-card-planned {
    border: 2px dashed rgba(255,152,0,0.6) !important;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.93),
        rgba(255,255,255,0.93) 10px,
        rgba(255,243,224,0.93) 10px,
        rgba(255,243,224,0.93) 20px
    ) !important;
}
.v2-card-planned::after {
    content: attr(data-planned-label);
    position: absolute;
    top: 10px;
    left: -8px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px 3px 10px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.v2-card-planned .v2-card-title,
.v2-card-planned .v2-tl-card-title {
    color: #e65100;
}
.v2-card-planned .v2-card-body {
    padding-top: 28px;
}
.v2-card-planned .v2-tl-card-title {
    padding-top: 14px;
}

/* Planned tag in detail */
.v2-tag-planned {
    background: #fff3e0;
    color: #e65100;
}

/* --- Calendar --- */
.v2-calendar {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.v2-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.v2-cal-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}
.v2-cal-nav {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v2-cal-nav:hover { background: var(--pink); }

.v2-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.v2-cal-dow {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
    padding: 6px 0;
    text-transform: uppercase;
}
.v2-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: default;
    position: relative;
    min-height: 90px;
    padding: 4px;
}
.v2-cal-empty { background: transparent; min-height: 0; }
.v2-cal-day {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
    margin-bottom: 3px;
}
.v2-cal-today {
    background: rgba(255,105,180,0.3) !important;
    border: 2px solid var(--pink);
    box-shadow: 0 0 12px rgba(255,105,180,0.5), inset 0 0 8px rgba(255,105,180,0.15);
}
.v2-cal-today .v2-cal-day {
    color: #fff;
    font-weight: 800;
    background: var(--pink);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.v2-cal-has-acts {
    background: rgba(255,105,180,0.2);
    border-color: rgba(255,105,180,0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.v2-cal-has-acts:hover {
    background: rgba(255,105,180,0.35);
}
.v2-cal-entry {
    font-size: 11px;
    color: white;
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    background: rgba(255,105,180,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-weight: 500;
}
.v2-cal-more {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    text-align: center;
    font-weight: 700;
}

/* Calendar Detail Panel */
.v2-cal-detail {
    margin-top: 16px;
}
.v2-cal-detail h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}
.v2-cal-detail-item {
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v2-cal-detail-item:hover {
    background: white;
    transform: translateX(4px);
}
.v2-cal-detail-title {
    font-weight: 600;
    color: #333;
}
.v2-cal-detail-loc {
    font-size: 12px;
    color: #888;
}

@media (max-width: 768px) {
    .v2-cal-cell { min-height: 60px; }
    .v2-cal-entry { font-size: 10px; }
}

/* --- Multi-Image Thumbs --- */
.v2-image-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.v2-img-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid #e0e0e0;
}
.v2-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v2-img-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v2-img-remove:hover { background: #f44336; }
.v2-add-img-btn {
    font-size: 13px;
    padding: 6px 14px;
}

/* --- Image Gallery in Detail Modal --- */
.v2-detail-gallery {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.v2-gallery-main {
    position: relative;
    background: #f5f5f5;
}
.v2-gallery-main img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}
.v2-gallery-prev,
.v2-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v2-gallery-prev:hover,
.v2-gallery-next:hover { background: rgba(0,0,0,0.7); }
.v2-gallery-prev { left: 8px; }
.v2-gallery-next { right: 8px; }
.v2-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: #f5f5f5;
}
.v2-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}
.v2-gallery-dot.active { background: var(--pink); transform: scale(1.3); }
.v2-gallery-dot:hover { background: var(--pink-dark); }

/* --- Translation --- */
.v2-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e0e0e0;
    color: #888;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    margin-top: 8px;
}
.v2-translate-btn:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-light);
}
.v2-translate-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}
.v2-detail-translated {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #f0f7ff, #f5f0ff);
    border-radius: var(--radius-md);
    border-left: 3px solid #5c6bc0;
    animation: v2CardFadeIn 0.3s ease;
}
.v2-trans-header {
    font-size: 12px;
    font-weight: 700;
    color: #5c6bc0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.v2-trans-field {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 6px;
}
.v2-trans-field strong {
    color: #666;
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}

/* --- Form Checkbox --- */
.v2-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #444;
}
.v2-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pink);
}

/* ============================== */
/* === Dashboard Styles === */
/* ============================== */
.dash-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dash-card { background: var(--card-bg, rgba(255,255,255,0.1)); border-radius: 12px; padding: 16px; text-align: center; backdrop-filter: blur(10px); }
.dash-card-value { font-size: 28px; font-weight: 700; color: var(--pink, #e91e63); }
.dash-card-label { font-size: 12px; color: var(--text-secondary, #999); margin-top: 4px; }
.dash-section { margin-bottom: 24px; }
.dash-section h4 { margin-bottom: 12px; color: var(--text-primary, #333); font-size: 16px; }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding: 8px 0; }
.dash-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dash-bar { width: 100%; max-width: 40px; background: linear-gradient(180deg, var(--pink, #e91e63), var(--pink-light, #f48fb1)); border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.5s ease; color: #fff; font-size: 10px; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.dash-bar-label { font-size: 10px; color: var(--text-secondary, #999); }
.dash-mood-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-mood-emoji { font-size: 20px; }
.dash-mood-label { width: 60px; font-size: 12px; color: var(--text-secondary, #999); }
.dash-mood-bar-bg { flex: 1; height: 8px; background: rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden; }
.dash-mood-bar { height: 100%; background: var(--pink, #e91e63); border-radius: 4px; transition: width 0.5s ease; }
.dash-mood-pct { width: 40px; text-align: right; font-size: 12px; color: var(--text-secondary, #999); }
.dash-loc-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dash-loc-name { width: 140px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-loc-bar-bg { flex: 1; height: 8px; background: rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden; }
.dash-loc-bar { height: 100%; background: linear-gradient(90deg, #4fc3f7, #0288d1); border-radius: 4px; }
.dash-loc-count { width: 30px; text-align: right; font-size: 12px; }
.dash-rating-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.dash-rating-val { font-weight: 600; color: var(--pink, #e91e63); }
.dash-genre-section { margin-bottom: 12px; }
.dash-genre-section h4 { font-size: 13px; margin-bottom: 8px; }
.dash-chip { display: inline-block; padding: 4px 10px; margin: 3px; background: rgba(233,30,99,0.1); border-radius: 16px; font-size: 12px; color: var(--pink, #e91e63); }
.dash-empty { text-align: center; color: var(--text-secondary, #999); padding: 20px; font-style: italic; }

/* === Feature Buttons === */
.feature-btn-container { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.feature-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); font-size: 20px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.feature-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.feature-btn .feature-icon { width: 22px; height: 22px; object-fit: contain; }
.feature-btn-capsule { background: #fff; border-color: #fff; }
.feature-btn-capsule:hover { background: rgba(255,255,255,0.85); }
.feature-btn-dashboard { background: #fff; border-color: #fff; }
.feature-btn-dashboard:hover { background: rgba(255,255,255,0.85); }

/* === Modal Title Icon === */
.modal-title-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: 4px; }

/* === Capsule Styles === */
.capsule-item { background: var(--card-bg, rgba(255,255,255,0.08)); border-radius: 12px; padding: 16px; margin-bottom: 12px; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.capsule-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.capsule-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.capsule-item-icon { font-size: 24px; }
.capsule-item-title { font-size: 16px; font-weight: 600; }
.capsule-item-meta { font-size: 12px; color: var(--text-secondary, #999); display: flex; gap: 12px; margin-bottom: 8px; }
.capsule-item-actions { display: flex; gap: 8px; }
.capsule-btn { padding: 6px 14px; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all 0.2s ease; }
.capsule-btn-open { background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff; }
.capsule-btn-read { background: rgba(78,205,196,0.2); color: #4ecdc4; }
.capsule-btn-delete { background: rgba(233,30,99,0.1); color: #e91e63; }
.capsule-btn-back { margin-top: 16px; background: rgba(0,0,0,0.05); color: var(--text-secondary, #666); }
.capsule-empty { text-align: center; padding: 40px 20px; }
.capsule-empty-icon { font-size: 48px; margin-bottom: 12px; }
.capsule-empty-hint { color: var(--text-secondary, #999); font-size: 14px; }
.capsule-add-btn { position: static; margin-top: 12px; right: auto; bottom: auto; }
.capsule-ready { border: 2px solid #4ecdc4; animation: capsuleGlow 2s ease-in-out infinite; }
@keyframes capsuleGlow { 0%, 100% { box-shadow: 0 0 5px rgba(78,205,196,0.3); } 50% { box-shadow: 0 0 20px rgba(78,205,196,0.6); } }
.capsule-letter { background: linear-gradient(135deg, #fff9c4, #fff3e0); border-radius: 12px; padding: 24px; margin: 16px 0; color: #5d4037; }
.capsule-letter-header { text-align: center; margin-bottom: 16px; border-bottom: 1px dashed #d7ccc8; padding-bottom: 12px; }
.capsule-letter-icon { font-size: 32px; }
.capsule-letter-header h3 { margin: 8px 0 4px; color: #5d4037; }
.capsule-letter-date { font-size: 12px; color: #8d6e63; }
.capsule-letter-body { line-height: 1.8; font-size: 15px; white-space: pre-wrap; }

/* === Voice Note Styles === */
.voice-notes-list { margin-bottom: 8px; }
.voice-note-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.08); border-radius: 8px; margin-bottom: 6px; }
.voice-play-btn { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--pink, #e91e63); color: #fff; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.voice-play-btn:hover { transform: scale(1.1); }
.voice-note-info { flex: 1; font-size: 12px; color: var(--text-secondary, #999); }
.voice-note-duration { margin-right: 8px; }
.voice-delete-btn { border: none; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.voice-delete-btn:hover { opacity: 1; }
.voice-empty { text-align: center; color: var(--text-secondary, #999); padding: 8px; font-size: 13px; }
.voice-recording-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(233,30,99,0.1); border-radius: 8px; margin-bottom: 8px; }
.voice-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e91e63; animation: voicePulse 1s ease-in-out infinite; }
@keyframes voicePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.voice-btn-group { display: flex; gap: 8px; }
.voice-btn { padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.1); cursor: pointer; font-size: 13px; transition: all 0.2s; }
.voice-btn:hover { background: rgba(255,255,255,0.2); }
.voice-btn-stop { background: rgba(233,30,99,0.2); border-color: rgba(233,30,99,0.3); }
.voice-btn-cancel { background: rgba(158,158,158,0.2); }

/* === Toast Types === */
.toast-error { background: rgba(244,67,54,0.9) !important; }
.toast-warning { background: rgba(255,152,0,0.9) !important; }
.toast-success { background: rgba(76,175,80,0.9) !important; }
.toast-undo { margin-left: 12px; padding: 4px 12px; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; background: transparent; color: #fff; cursor: pointer; font-size: 12px; }
.toast-undo:hover { background: rgba(255,255,255,0.2); }

/* === Large Modal === */
.v2-modal-lg { max-width: 720px; width: 92%; }
