:root {
    --primary: #5CC4B9;
    --primary-dark: #4aad9e;
    --secondary: #0A6054;
    --bg: #F5F5F5;
    --sidebar-bg: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 60px;
    padding: 0 15px;
}

.brand-j {
    color: var(--text);
}

.brand-media {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links li.active a,
.nav-links a:hover {
    background-color: rgba(92, 196, 185, 0.1);
    color: var(--primary);
}

.nav-links svg {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.sidebar-footer {
    font-size: 12px;
    color: #ccc;
    padding: 0 15px;
}

/* Content Area */
.content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 60px 80px;
    padding-bottom: 120px;
    /* Space for reminder bar */
    width: calc(100% - 280px);
}

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

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-light);
    font-size: 18px;
}

.subtitle strong {
    color: var(--primary);
}

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

.photo-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.photo-preview {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f9f9f9;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.photo-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-download {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.btn-download:hover {
    background-color: var(--primary-dark);
}

/* Prompts Section */
.prompts-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.prompt-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.prompt-num {
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.prompt-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.flow-item {
    text-align: center;
}

/* Instructions Styling */
.instructions-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.step-badge {
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    height: fit-content;
    white-space: nowrap;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.prompt-copy-wrapper {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #eee;
}

.copy-box {
    position: relative;
}

#replacement-prompt {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-top: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.flow-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.flow-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.flow-arrow {
    font-size: 24px;
    color: var(--primary);
}

.prompt-content {
    display: flex;
    gap: 30px;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 15px;
    border: 1px dashed #ddd;
}

.prompt-preview-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: var(--primary);
}

/* Interactivity */
.preview-trigger {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.prompt-text-box {
    flex-grow: 1;
}

.prompt-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.prompt-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-line;
}

.music-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f0fdfc;
    border: 1px solid #c8ede9;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

.music-icon-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}

.music-details {
    display: flex;
    flex-direction: column;
}

.music-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.music-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.music-artist {
    font-size: 15px;
    color: var(--text-light);
}

.download-instruction {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.instruction-icon {
    background: #ffc107;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-icon svg {
    width: 20px;
    height: 20px;
}

.instruction-text strong {
    display: block;
    color: #856404;
    margin-bottom: 5px;
    font-size: 16px;
}

.instruction-text p {
    font-size: 14px;
    color: #856404;
    margin: 0;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.bottom-nav .nav-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0;
}

.bottom-nav .nav-links li {
    margin-bottom: 0;
    flex: 1;
}

.bottom-nav .nav-links a {
    flex-direction: column;
    align-items: center;
    padding: 8px;
    font-size: 10px;
    border-radius: 0;
    background: transparent;
}

.bottom-nav .nav-links svg {
    margin-right: 0;
    margin-bottom: 4px;
    width: 22px;
    height: 22px;
}

.bottom-nav .nav-links li.active a {
    color: var(--primary);
    background: transparent;
}

/* Hide old reminder bar - double check */
.reminder-bar {
    display: none;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 40px 20px;
        padding-bottom: 100px;
        /* Space for bottom nav */
    }

    .bottom-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 15px;
        padding-bottom: 90px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .page-header h1 {
        font-size: 24px;
        text-align: center;
    }

    .page-header .subtitle {
        font-size: 14px;
        text-align: center;
    }

    .step-card {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .step-badge {
        position: static;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .step-content h3 {
        font-size: 20px;
        text-align: center;
    }

    .prompt-card {
        padding: 15px;
    }

    .prompt-flow {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flow-img {
        height: 120px;
        width: auto;
        max-width: 100%;
        margin: 0 auto 5px;
        display: block;
    }

    .flow-arrow {
        transform: rotate(90deg);
        display: block;
        margin: 0 auto;
        font-size: 20px;
    }

    .prompt-content {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        align-items: center;
    }

    .prompt-preview-img {
        width: 130px;
        height: 130px;
        border-radius: 12px;
        margin: 0 auto;
    }

    .prompt-text-box {
        width: 100%;
        text-align: left;
    }

    .prompt-text {
        font-size: 13px;
        line-height: 1.5;
        word-break: break-word;
    }

    .music-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .music-icon-large {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }

    #replacement-prompt {
        padding: 15px;
        font-size: 12px;
        max-height: 250px;
    }

    .btn-primary {
        width: 100%;
        display: block;
        padding: 10px;
    }
}