/* Theme: Romantic Red Pink */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff8e8e;
    --accent-color: #ff4757;
    --light-pink: #ffcccc;
    --dark-pink: #ff4d79;
    --text-color: #333;
    --light-bg: #fff5f5;
    --card-bg: rgba(255, 255, 255, 0.97);
    --shadow-color: rgba(255, 107, 107, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
}

/* Login Screen */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-pink), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 4px solid var(--light-pink);
    backdrop-filter: blur(10px);
}

.login-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--dark-pink);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.pin-input {
    width: 70px;
    height: 80px;
    font-size: 2.5rem;
    text-align: center;
    border: 3px solid var(--light-pink);
    border-radius: 15px;
    background: white;
    font-weight: bold;
    color: var(--dark-pink);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.pin-input:focus {
    border-color: var(--dark-pink);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 77, 121, 0.4);
    transform: translateY(-5px);
}

.login-btn {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255, 77, 121, 0.3);
}

.login-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 77, 121, 0.4);
}

.error-message {
    color: var(--accent-color);
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    min-height: 25px;
}

/* Main App */
#main-app {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: var(--card-bg);
    border-radius: 25px;
    margin-bottom: 30px;
    border: 3px solid var(--light-pink);
    box-shadow: 0 15px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--dark-pink);
    font-weight: 700;
}

.date-display {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.theme-indicator {
    padding: 12px 25px;
    border-radius: 60px;
    font-weight: 700;
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(255, 77, 121, 0.2);
}

/* Navigation */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.tab-btn {
    padding: 18px 35px;
    background: var(--card-bg);
    border: 2px solid var(--light-pink);
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-btn.active {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    border-color: var(--dark-pink);
    box-shadow: 0 15px 30px rgba(255, 77, 121, 0.3);
    transform: translateY(-5px);
}

.tab-btn:hover:not(.active) {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 77, 121, 0.2);
}

.tab-btn.logout-tab {
    background: rgba(255, 77, 121, 0.1);
    color: var(--dark-pink);
}

.tab-btn.logout-tab:hover {
    background: rgba(255, 77, 121, 0.2);
    border-color: var(--accent-color);
}

/* Tab Content */
.tab-content {
    display: none;
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px;
    border: 3px solid var(--light-pink);
    min-height: 600px;
    box-shadow: 0 15px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* HOME TAB */
.welcome-section {
    text-align: center;
    padding: 30px 0 50px;
    border-bottom: 2px solid var(--light-pink);
    margin-bottom: 50px;
}

.couple-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 6px solid white;
    margin-bottom: 30px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.welcome-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--dark-pink);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-date {
    font-size: 1.6rem;
    margin-bottom: 40px;
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    padding: 15px 35px;
    border-radius: 60px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(255, 77, 121, 0.2);
}

.quote-container {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 77, 121, 0.15), rgba(255, 107, 107, 0.1));
    border-radius: 25px;
    border: 2px solid var(--light-pink);
}

.quote {
    font-size: 1.7rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--dark-pink);
    font-weight: 500;
}

.quote-author {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.music-player {
    background: white;
    padding: 25px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--light-pink);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.music-player h3 {
    color: var(--dark-pink);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* Memories Section */
.memories-section {
    padding-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-pink);
}

.section-header h3 {
    font-size: 2rem;
    color: var(--dark-pink);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h3 i {
    font-size: 1.8rem;
}

.memory-count {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(255, 77, 121, 0.2);
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.memory-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--light-pink);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.3s;
    position: relative;
}

.memory-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 77, 121, 0.25);
    border-color: var(--primary-color);
}

.memory-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(255, 77, 121, 0.3);
    z-index: 2;
}

.memory-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.memory-card:hover .memory-image {
    transform: scale(1.05);
}

.memory-content {
    padding: 25px;
}

.memory-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-pink);
    line-height: 1.3;
}

.memory-date {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.memory-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
    min-height: 80px;
}

.audio-player {
    width: 100%;
    margin-top: 15px;
}

.audio-player audio {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--light-pink);
}

/* Memory Actions */
.memory-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.reply-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-pink) !important;
    font-weight: 600;
    margin-bottom: 14px;
}

.reply-summary i {
    color: #ff6b9a;
}

.view-btn {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 121, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    grid-column: 1/-1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px dashed var(--light-pink);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 30px;
    color: var(--light-pink);
}

.empty-state h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--dark-pink);
}

.empty-state p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

/* UPLOAD TAB */
.upload-container {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-title {
    font-size: 2.5rem;
    color: var(--dark-pink);
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.upload-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.upload-form {
    background: white;
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 50px;
    border: 3px solid var(--light-pink);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-pink);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'Quicksand', sans-serif;
    background: white;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--dark-pink);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 77, 121, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-text {
    font-size: 0.9rem;
    color: #888;
    margin-top: 8px;
    display: block;
}

/* Image and Audio Preview */
.image-preview, .audio-preview {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--light-pink);
}

.audio-preview audio {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--light-pink);
}

/* Upload Actions */
.upload-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.upload-btn-large {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    flex: 2;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 77, 121, 0.3);
}

.upload-btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 77, 121, 0.4);
}

.cancel-btn {
    background: rgba(255, 77, 121, 0.1);
    color: var(--dark-pink);
    border: 2px solid var(--light-pink);
    padding: 18px 40px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.cancel-btn:hover {
    background: rgba(255, 77, 121, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 121, 0.2);
}

.upload-note {
    background: rgba(255, 77, 121, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid var(--light-pink);
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.upload-note i {
    color: var(--dark-pink);
    font-size: 1.2rem;
}

/* Recent Uploads */
.recent-uploads {
    background: white;
    padding: 30px;
    border-radius: 25px;
    border: 3px solid var(--light-pink);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.recent-uploads h3 {
    color: var(--dark-pink);
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recent-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--light-pink);
    transition: all 0.3s;
}

.recent-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.recent-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recent-info {
    padding: 15px;
}

.recent-info h4 {
    color: var(--dark-pink);
    margin-bottom: 5px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-info small {
    color: #888;
    font-size: 0.85rem;
}

.empty-upload {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.empty-upload i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--light-pink);
}

/* SETTINGS TAB */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-title {
    font-size: 2.5rem;
    color: var(--dark-pink);
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.settings-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.settings-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 3px solid var(--light-pink);
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.3s;
}

.settings-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 77, 121, 0.2);
}

.settings-card-header {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-card-header i {
    font-size: 1.8rem;
}

.settings-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.settings-card-body {
    padding: 30px;
}

.settings-form {
    margin-top: 20px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-btn {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.settings-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 121, 0.3);
}

/* Current Photo/Audio */
.current-photo, .current-audio {
    margin-bottom: 15px;
}

.current-photo img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--light-pink);
    margin-bottom: 10px;
}

.remove-photo, .remove-audio {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.remove-photo:hover, .remove-audio:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: translateY(-2px);
}

/* Theme Selection */
.theme-selection h4 {
    color: var(--dark-pink);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.theme-option {
    cursor: pointer;
    text-align: center;
    padding: 20px 15px;
    border-radius: 15px;
    border: 3px solid transparent;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.theme-option:hover, .theme-option.active {
    border-color: var(--dark-pink);
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Data Management */
.data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 77, 121, 0.05);
    border-radius: 15px;
    border: 2px solid var(--light-pink);
}

.stat-item i {
    font-size: 2rem;
    color: var(--dark-pink);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-pink);
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.data-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.data-btn {
    background: rgba(255, 77, 121, 0.1);
    color: var(--dark-pink);
    border: 2px solid var(--light-pink);
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    justify-content: center;
    font-size: 1rem;
}

.data-btn:hover {
    background: rgba(255, 77, 121, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.data-btn.danger {
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent-color);
    border-color: rgba(255, 71, 87, 0.3);
}

.data-btn.danger:hover {
    background: rgba(255, 71, 87, 0.2);
}

.storage-info {
    margin-top: 20px;
}

.storage-bar {
    height: 12px;
    background: rgba(255, 77, 121, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    border-radius: 6px;
    transition: width 1s ease;
}

.storage-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 600;
    border: 3px solid;
    text-align: center;
}

.alert.success {
    background: rgba(76, 217, 100, 0.15);
    color: #2ecc71;
    border-color: #2ecc71;
}

.alert.error {
    background: rgba(255, 59, 48, 0.15);
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 30px;
    max-width: 90%;
    max-height: 90vh;
    width: 900px;
    overflow-y: auto;
    position: relative;
    border: 4px solid var(--light-pink);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    color: var(--dark-pink);
    cursor: pointer;
    z-index: 1001;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.close-modal:hover {
    background: var(--light-pink);
    transform: rotate(90deg) scale(1.1);
}

/* Memory View Modal */
.memory-modal {
    padding: 40px;
}

.memory-modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.memory-modal-title {
    color: var(--dark-pink);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.memory-modal-date {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 1.3rem;
}

.memory-modal-desc {
    font-size: 1.4rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 204, 204, 0.1);
    border-radius: 20px;
    border-left: 6px solid var(--dark-pink);
}

.memory-modal-replies {
    margin-top: 30px;
    background: #fff5f8;
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(255, 180, 204, 0.6);
    color: #6a2140;
    -webkit-overflow-scrolling: touch;
}

.reply-count-header {
    color: var(--dark-pink);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-love-btn, .reply-submit-btn {
    -webkit-appearance: none;
    appearance: none;
}

.reply-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--dark-pink);
    font-size: 1.4rem;
    font-weight: 700;
}

.reply-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.reply-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 15px 30px rgba(215, 72, 118, 0.08);
    border: 1px solid rgba(255, 184, 210, 0.65);
}

.reply-text {
    color: #4a2d42;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 16px;
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #9c6177;
    font-size: 0.95rem;
}

.reply-love-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: rgba(255, 117, 157, 0.15);
    color: #d83f75;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reply-love-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 117, 157, 0.25);
}

.reply-empty {
    text-align: center;
    color: #b13d6a;
    padding: 30px;
    border: 1px dashed rgba(193, 60, 103, 0.45);
    border-radius: 20px;
}

.reply-empty i {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.reply-empty p {
    margin: 0;
    font-size: 1rem;
}

.reply-form {
    display: grid;
    gap: 15px;
}

.reply-form textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 18px;
    border: 1px solid rgba(255, 174, 193, 0.7);
    padding: 18px 20px;
    font-size: 1rem;
    color: #5f3a55;
    background: #fff7fb;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--dark-pink);
    box-shadow: 0 0 0 4px rgba(255, 215, 235, 0.35);
}

.reply-submit-btn {
    background: linear-gradient(135deg, #ff6b8f, #ff3e6f);
    color: #fff;
    border: none;
    padding: 16px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    justify-self: flex-end;
}

.reply-submit-btn:hover {
    transform: translateY(-1px);
}

.memory-modal-audio {
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 20px;
    border: 2px solid var(--light-pink);
}

.memory-modal-audio h4 {
    color: var(--dark-pink);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Media Indicator */
.media-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.media-count, .video-indicator {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.video-indicator {
    background: rgba(255, 77, 121, 0.9);
}

.audio-indicator {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

/* File Preview Styles */
.image-preview, .video-preview, .audio-preview {
    margin-top: 15px;
    border-radius: 12px;
    padding: 15px;
    background: rgba(255, 77, 121, 0.05);
    border: 2px dashed var(--light-pink);
    display: none;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    width: 100%;
}

/* Media Stats */
.media-stats {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Slideshow Modal Styles (tambah dalam modal) */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Use transparent so letterboxing shows modal background instead of black in some browsers */
    background: transparent;
}

.slide.active {
    opacity: 1;
}

.slide-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slideshow-prev, .slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.slideshow-prev:hover, .slideshow-next:hover {
    background: rgba(255, 77, 121, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Thumbnails */
.slideshow-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 10px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.thumbnail.active {
    border-color: var(--dark-pink);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    background: rgba(255, 77, 121, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Memory Stats dalam modal */
.memory-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 77, 121, 0.05);
    border-radius: 15px;
    border: 2px solid var(--light-pink);
}

.memory-stats .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-pink);
}

.memory-stats .stat i {
    font-size: 1.2rem;
}

/* File Input Styling untuk multiple */
input[type="file"][multiple] {
    padding: 30px;
    background: rgba(255, 77, 121, 0.03);
    border: 2px dashed var(--light-pink);
}

input[type="file"][multiple]:hover {
    background: rgba(255, 77, 121, 0.08);
    border-color: var(--dark-pink);
}

/* Memory Modal Styles */
.memory-modal {
    padding: 20px;
}

.memory-modal-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Memory Details */
.memory-modal-details {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.memory-modal-title {
    color: var(--dark-pink);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: 'Dancing Script', cursive;
}

.memory-modal-date {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.memory-modal-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* Audio Player */
.memory-modal-audio {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid var(--light-pink);
}

.memory-modal-audio h4 {
    color: var(--dark-pink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-player {
    margin-bottom: 15px;
}

.audio-player audio {
    width: 100%;
}

/* Modal Actions */
.memory-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.memory-modal-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.print-btn {
    background: linear-gradient(to right, var(--dark-pink), var(--primary-color));
    color: white;
}

.close-btn {
    background: white;
    color: var(--dark-pink);
    border: 2px solid var(--light-pink);
}

.memory-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 121, 0.2);
}

/* Video indicator on memory cards */
.video-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 71, 87, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-pink);
    margin-left: 5px;
}

.media-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.media-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.audio-indicator {
    color: var(--dark-pink);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    background: rgba(255, 77, 121, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
}


/* Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
    
    .memory-modal-title {
        font-size: 1.8rem;
    }
    
    .memory-modal-description {
        font-size: 1.1rem;
    }
    
    .memory-modal-actions {
        flex-direction: column;
    }
    
    .memory-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .couple-photo {
        width: 200px;
        height: 200px;
    }
    
    .welcome-title {
        font-size: 3rem;
    }
    
    .welcome-date {
        font-size: 1.3rem;
        padding: 12px 25px;
    }
    
    .quote {
        font-size: 1.4rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .upload-form {
        padding: 25px;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .theme-colors {
        grid-template-columns: 1fr;
    }
    
    .data-stats, .data-actions {
        grid-template-columns: 1fr;
    }
    
    .memory-modal {
        padding: 25px;
    }
    
    .memory-modal-title {
        font-size: 2.2rem;
    }
    
    .memory-modal-desc {
        font-size: 1.2rem;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 30px;
    }
    
    .login-title {
        font-size: 2.8rem;
    }
    
    .pin-input {
        width: 55px;
        height: 65px;
        font-size: 2rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}