/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary1: #1b243f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: rgba(195, 207, 226, .66);
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.5;
}

hr {
    border: none;
    border-top: 2px solid #ccc;
    margin: 20px 0;
    width: 80%;
    /* You can add more styles here */
}

/* Intro.js Customization */
.customIntroTooltip * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
}

/* You can also target specific parts of the tooltip */
.customIntroTooltip .introjs-tooltip-title {
    font-size: 21px;
    font-weight: bold;
    color: #333;
}

.customIntroTooltip.introjs-tooltip {
    width: calc(var(--introjs-tooltip-width, 600px) * 2) !important;
    max-width: 30vw !important;
}

.customIntroTooltip.introjs-tooltiptext {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.customIntroTooltip.introjs-button {
    font-size: 16px !important;
    padding: 8px 16px !important;
}

.customIntroTooltip.introjs-skipbutton {
    font-size: 14px !important;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


.full-width-bg {
    left: 50%;
    right: 50%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: url('images/cover.webp') center/cover;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 85vh;
    border: #000 1px solid;
    margin: 16px;
}

.avatarCard {
    background: none;
    border-radius: 16px;
    margin: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 85vh;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container-player {
    width: 70%;
    display: flex;
    align-items: center;
}

.logo {
    width: 70%;
    /* height: 1em; */
    max-width: 600px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-player {
    min-width: 60px;
    max-width: 200px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.help-button {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--primary1);
    cursor: pointer;
    padding: 8px;
    /* border-radius: 50%; */
    transition: background-color 0.2s ease;
}

.help-button:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

/* Text */
.title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #111827;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Form */
.form {
    width: 50%;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    text-align: center;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary1);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.input-field::placeholder {
    color: #9ca3af;
}

/* Button */
.submit-button {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--primary1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: #4338ca;
}

.submit-button:active {
    background-color: #3730a3;
}

/* Links */
.disclaimer {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.link {
    color: #4f46e5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* Responsive adjustments
@media (max-width: 480px) {
    .card {
        padding: 30px 24px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 14px;
    }
} */

/* Queue Info */
.queue-info {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #374151;
}

.info-value {
    font-weight: 600;
    color: #4f46e5;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background-color: #4f46e5;
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #6b7280;
}

/* Wait Message */
.wait-message {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Loading Animation */
.loading-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.loading-dot {
    width: 10px;
    height: 10px;
    background-color: #4f46e5;
    border-radius: 50%;
    margin: 0 5px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Logout Button */
.logout-button {
    padding: 10px 20px;
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card {
        padding: 30px 24px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .queue-info {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .info-value {
        margin-top: 4px;
    }
}

#player {
    width: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, var(--primary1) 0%, #7c73e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.video-active {
    aspect-ratio: 9/16;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-content {
    text-align: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.play-button i {
    font-size: 24px;
    margin-left: 4px;
}

/* Recording Controls */
.recording-controls {
    /* margin-bottom: 30px; */
    text-align: center;
}

.translateButton {
    padding: 16px 32px;
    background-color: var(--primary1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.translateButton:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.record-button {
    width: 56px;
    height: 56px;
    background-color: var(--primary1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
}

.record-button:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.record-button.recording {
    background-color: #ef4444;
}

.record-button.recording:hover {
    background-color: #dc2626;
}

.record-button i {
    margin-right: 8px;
    font-size: 18px;
}

/* ---------------------------- */
.mobile-record-button {
    padding: 16px 32px;
    background-color: var(--primary1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-record-button:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.mobile-record-button.recording {
    background-color: #ef4444;
}

.mobile-record-button.recording:hover {
    background-color: #dc2626;
}

.mobile-record-button i {
    margin-right: 8px;
    font-size: 18px;
}

/* -------------------------------- */

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 8px;
}

.status-indicator.recording {
    background-color: #ef4444;
    animation: pulse 1.5s infinite;
}

.status-indicator.processing {
    background-color: #f59e0b;
    animation: pulse 1.5s infinite;
}

.status-indicator.completed {
    background-color: #10b981;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.timer {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary1);
    font-variant-numeric: tabular-nums;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.action-button {
    padding: 12px 24px;
    background-color: #f3f4f6;
    color: var(--primary1);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.action-button:hover:not(:disabled) {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-button i {
    margin-right: 8px;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.modal-header {
    padding: 20px 24px;
    background-color: var(--primary1);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-weight: 600;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.close-modal:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 24px;
}

.instruction {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
}

.instruction:last-child {
    margin-bottom: 0;
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background-color: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: var(--primary1);
}

.instruction-text h4 {
    margin-bottom: 4px;
    color: #1f2937;
}

.instruction-text p {
    color: #6b7280;
    font-size: 14px;
}

#announcementInput {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #1f2937;
    margin-bottom: 16px;
    transition: border-color 0.2s, background-color 0.2s;
    text-align: center;
    resize: none;
    overflow: hidden;
}

#announcementInput:focus {
    outline: none;
    border-color: var(--primary1);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.preset-button {
    padding: 10px 20px;
    background-color: #bef9ff;
    color: var(--primary1);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 8px;
    transition: background-color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.preset-button:last-child {
    margin-right: 0;
}

.preset-button:hover:not(:disabled) {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

.preset-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#send-button {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--primary1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

#send-button:hover:not(:disabled) {
    background-color: #4338ca;
}

#send-button:active:not(:disabled) {
    background-color: #3730a3;
}

#send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .card {
        padding: 24px 20px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .form {
        width: 70%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        justify-content: center;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .hide-on-desktop {
        display: none !important;
    }
}
