.audio-player-modal {
    max-width: 350px;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    position: fixed;
    top: 100px;
    left: 20px;
    margin: 0;
    transform-origin: left top;
    z-index: 1000;
}

@keyframes modalSlideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.audio-player-modal h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
}

.audio-player {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.audio-player audio {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
}

.audio-player audio::-webkit-media-controls-panel {
    background: #f8f9fa;
    border-radius: 25px;
}

.audio-player audio::-webkit-media-controls-play-button {
    background-color: #4CAF50;
    border-radius: 50%;
}

.audio-player audio::-webkit-media-controls-timeline {
    background-color: #e0e0e0;
    border-radius: 10px;
}

.audio-player audio::-webkit-media-controls-current-time-display,
.audio-player audio::-webkit-media-controls-time-remaining-display {
    color: #333;
    font-weight: 500;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.audio-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.audio-btn i {
    font-size: 1.2rem;
}

.audio-progress {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background: #4CAF50;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.9rem;
    color: #666;
    min-width: 100px;
    text-align: right;
}

/* Mobile Menu Styles */
.mobile-dropdown {
    position: relative;
    width: 100%;
}

.mobile-dropbtn {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-content {
    display: none;
    background: #f8f9fa;
    padding-left: 1rem;
}

.mobile-dropdown-content a {
    display: block;
    padding: 0.8rem 1rem;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-content a:hover {
    background: #f0f0f0;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .audio-player-modal {
        width: calc(100% - 40px);
        max-width: none;
        top: auto;
        bottom: 20px;
        left: 20px;
        padding: 1rem;
        z-index: 1001;
    }

    .pdf-viewer {
        margin-left: 0;
        padding: 10px;
        padding-bottom: 100px; /* Space for audio player */
        top: 60px;
    }

    .audio-controls {
        flex-direction: row;
        gap: 0.8rem;
    }

    .time-display {
        text-align: right;
        width: auto;
    }
}

/* Remove modal background overlay */
#audioModal {
    position: fixed;
    background: none;
    pointer-events: none;
}

#audioModal .modal-content {
    pointer-events: auto;
}

.pdf-modal {
    max-width: 90%;
    width: 1000px;
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-modal h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

#pdfViewer {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .pdf-modal {
        width: 95%;
        padding: 1rem;
        margin: 10px;
    }

    .pdf-modal h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    #pdfViewer {
        padding: 10px;
    }
}

/* Remove old PDF viewer styles */
.pdf-viewer, .pdf-container {
    display: none;
}

.newsletter-modal {
    max-width: 90%;
    width: 1200px;
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}

.newsletter-modal h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

.audio-option {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.audio-option-btn {
    background: #db9f5b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.audio-option-btn:hover {
    background: #c88d4a;
    transform: translateY(-1px);
}

.audio-option-btn i {
    font-size: 1.2rem;
}

.audio-player {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .newsletter-modal {
        width: 100%;
        height: 100vh;
        padding: 0.5rem;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .newsletter-modal h3 {
        font-size: 1.2rem;
        margin: 0.5rem 0;
        padding: 0 0.5rem;
    }

    .audio-option {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }

    .audio-option-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    #newsletterViewer {
        flex: 1;
        overflow: hidden;
        position: relative;
        padding-bottom: 80px;
        margin: 0;
    }

    #newsletterViewer iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        background: white;
        transform-origin: top left;
        transform: scale(0.9);
    }
}

/* Remove old modal styles */
.audio-player-modal, .pdf-modal {
    display: none;
}

/* Mobile Play Button and Info Box */
.mobile-audio-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    align-items: center;
    gap: 10px;
}

.mobile-play-button {
    width: 57px;
    height: 57px;
    border-radius: 50%;
    background: #db9f5b;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-play-button:hover {
    background: #c88d4a;
    transform: scale(1.05);
}

.mobile-play-button i {
    font-size: 1.5rem;
}

.mobile-audio-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    backdrop-filter: blur(5px);
}

.mobile-newsletter-title {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-audio-meter {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.mobile-audio-progress {
    height: 100%;
    background: #db9f5b;
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .mobile-audio-controls {
        display: flex;
    }
    
    /* Adjust newsletter viewer padding to account for audio controls */
    #newsletterViewer {
        padding-bottom: 80px;
    }
} 