body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    background-color: #f6e2bc;
    color: #614e24;
}
/* Welcome Loader Styles */
.welcome-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #fff9e6, #f0e0b2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mandala-svg-container {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
    position: relative;
}

.mandala-svg {
    width: 100%;
    height: 100%;
}

.loader-text {
    text-align: center;
    max-width: 90%;
    padding: 0 16px;
}

.loader-title {
    font-size: 24px;
    font-family: Georgia, serif;
    color: #614e24;
    margin-bottom: 12px;
    opacity: 0.9;
}

.loader-quote {
    color: #8a7445;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
    font-size: 16px;
}

.loader-translation {
    font-size: 14px;
    display: block;
    margin-top: 8px;
}

.hide-loader {
    opacity: 0;
    pointer-events: none;
}

.main-container {
    opacity: 0;
    transition: opacity 1s ease;
}

.show-content {
    opacity: 1;
}
.container {
    width: 95%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
}

.header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1bc85;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 0;
    margin-top: 20px;
    font-weight: normal;
    color: #614e24;
}

.header h2 {
    font-size: 18px;
    font-weight: normal;
    margin-top: 0;
    color: #8a7445;
}

.dashboard {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
    flex-direction: column;
}

.left-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.right-section {
    width: 100%;
}

.card {
    background-color: #fff9e6;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card-title {
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #d6bd7e;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #614e24;
    font-weight: normal;
}

.card-title::before, .card-title::after {
    content: "—";
    margin: 0 5px;
    color: #614e24;
}

.scripture-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e6d6a9;
}

.verse-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.selector {
    flex: 1;
}

.selector-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #614e24;
}

.selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d6bd7e;
    border-radius: 5px;
    background-color: #fff;
    color: #614e24;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23614e24%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
}

.sanskrit {
    margin-top: 20px;
}

.sanskrit-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #614e24;
}

.sanskrit-text {
    font-size: 15px;
    line-height: 1.5;
    color: #614e24;
}

.translation {
    margin-top: 20px;
    position: relative;
}

.translation-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #614e24;
}

.translation-actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 8px;
    color: #8a7445;
    align-items: center;
}

.action-icon {
    cursor: pointer;
    color: #8a7445;
    transition: color 0.3s ease;
}

.action-icon:hover {
    color: #614e24;
}

.material-icons {
    font-size: 18px;
    vertical-align: middle;
}

.translation-text {
    font-size: 15px;
    line-height: 1.5;
    color: #614e24;
}

.video-container {
    width: 100%;
    background-color: #191970;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    height: 240px;
}

.video-overlay {
    color: #d4af37;
    text-align: center;
    padding: 20px 15px;
    font-size: 16px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    background-color: rgba(212, 175, 55, 0.9);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto 12px auto;
}

.video-author {
    color: white;
    font-size: 12px;
    margin-bottom: 12px;
}

.sanskrit-verse {
    color: #d4af37;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.english-verse {
    color: #d4af37;
    font-size: 14px;
    line-height: 1.4;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.video-description {
    font-size: 13px;
    font-style: italic;
    color: #8a7445;
    margin-top: 12px;
    line-height: 1.5;
    padding: 0 8px;
}

.guide-container {
    min-height: 200px;
}

.guide-header {
    background-color: #8a7445;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.guide-header::before {
    content: "•";
    margin-right: 8px;
}

.guide-message {
    border: 1px solid #d6bd7e;
    border-radius: 15px;
    padding: 10px 12px;
    background-color: #fff;
    margin-bottom: 15px;
    color: #614e24;
    max-width: 90%;
    align-self: flex-start;
    font-size: 14px;
}

.chat-area {
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.guide-input {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.guide-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d6bd7e;
    border-radius: 20px;
    font-size: 14px;
    color: #614e24;
}

.guide-input button {
    background-color: #8a7445;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #8a7445;
    padding: 15px 0 20px;
    font-size: 13px;
}

.icon {
    display: inline-block;
    margin-right: 5px;
}

.file-icon::before {
    content: "📄";
}

.scroll-icon::before {
    content: "📜";
}

.pdf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.pdf-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 15px;
    border: 2px solid #b8860b;
    border-radius: 8px;
    width: 90%;
    height: 80%;
}

.pdf-modal-close {
    color: #8a7445;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.pdf-iframe {
    width: 100%;
    height: calc(100% - 30px);
    border: none;
    margin-top: 15px;
}

.video-frame {
    width: 100%;
    height: 100%;
    display: none;
}

.active-video {
    display: block;
}
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.commentary-text {
    margin-right: 5px;
}

@media (max-width: 576px) {
    .translation-actions {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 10px;
        gap: 5px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .translation-label {
        margin-bottom: 5px;
    }
    
    .translation {
        position: relative;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .action-icon {
        margin-left: 5px;
    }
    .action-buttons {
        margin-top: 5px;
    }
    
    .commentary-text {
        font-size: 13px;
        font-style: italic;
    }
    .material-icons{
        display: inline-flex;
        margin-left: 3px;
    }
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .verse-selector {
        flex-direction: row;
    }
    
    .video-container {
        height: 400px;
    }
    
    .mandala-svg-container {
        width: 256px;
        height: 256px;
    }
    
    .loader-title {
        font-size: 28px;
    }
    
    .header h1 {
        font-size: 38px;
    }
    
    .header h2 {
        font-size: 22px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button::after {
        border-width: 12px 0 12px 22px;
    }
}

@media (min-width: 992px) {
    .dashboard {
        flex-direction: row;
    }
    
    .left-section {
        width: 65%;
    }
    
    .right-section {
        width: 35%;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .video-container {
        height: 500px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1160px;
    }
    
    .left-section {
        width: 770px;
    }
    
    .right-section {
        width: 370px;
    }
    
    .video-container {
        height: 540px;
    }
}