@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary-purple: #ef59c4;
    --light-purple: #e0b0ff;
    --text-color: #323945;
    --placeholder-color: #999;
    --border-color: #f2f2f2;
    --bubble-gray: #f0f0f0;
    --bubble-patient-bg: #8050e6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    width: 100vw;
    background-image: none;
    background-color: transparent;
    display: block;
    justify-content: unset;
    align-items: unset;
    position: relative;
}

.container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    max-width: none;
    background-image: url('../images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
}

.left-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
}

.left-panel label {
    text-align: left;
}

.left-panel > * {
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo img {
    height: 60px;
}

.welcome-section,
.no-account-section,
.verification-section {
    padding: 100px;
    width: 100%;
    text-align: left;
}

.welcome-section h1,
.no-account-section h1,
.verification-section h1,
.language-selection-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: normal;
}

.welcome-section p,
.no-account-section p,
.verification-section p,
.language-selection-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color);
}

.no-account-section .highlight-email {
    color: var(--primary-purple);
    font-weight: 600;
    word-break: break-all;
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.code-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.code-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(239, 89, 196, 0.2);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 25px;
}

.action-buttons .alt-button {
    margin-top: 0;
    width: auto;
    flex-grow: 0.5;
    flex-basis: 150px;
}

.action-buttons .login-button {
    width: auto;
    flex-grow: 1;
    flex-basis: 200px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 20px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
}

.form-group input::placeholder {
    color: var(--placeholder-color);
}

.login-button {
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to right, #b74bdb, #ef59c4);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-button:hover {
    background: linear-gradient(to right, #ef59c4, #b74bdb);
}

.alt-button {
    width: 100%;
    padding: 20px 15px;
    background-color: white;
    color: var(--primary-purple);
    border: 1px solid var(--primary-purple);
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.alt-button:hover {
    background-color: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.terms-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 25px;
    line-height: 1.4;
    text-align: left;
}

.support-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 30px;
    line-height: 1.5;
    text-align: left;
}

.support-info a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.support-info a:hover {
    text-decoration: underline;
}

.right-panel {
    flex: 1.2;
    background-image: url('../images/Book-a-session.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 70%;
    height: 100%;
    background-image: url('../images/1.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    z-index: 1;
}
.language-selection-section {
    padding: 0;
    width: 100%;
    text-align: center;
}

.language-selector {
    margin-bottom: 25px;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Make sure label stays on top of the dropdown */
.role-label {
    display: block;
    text-align: left;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: normal;
    width: 100%; /* ? ensures it doesn't overflow */
    box-sizing: border-box;
}

.custom-select-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.custom-select-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.1em;
    color: var(--text-color);
    background: transparent;
    cursor: pointer;
    text-align: left;
    padding-right: 35px;
    padding-left: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    background-image: url('../images/arrow-down.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    flex-shrink: 0;
    position: absolute;
    right: 20px;
    pointer-events: none;
    z-index: 2;
}

/* ?? Mobile responsiveness */
@media (max-width: 600px) {
    .language-selector {
        padding: 0 10px; /* add breathing space */
    }

    .role-label {
        font-size: 0.85em;
    }

    .custom-select-input {
        font-size: 1em;
    }
}

/*.language-selection-section {
    padding: 0;
    width: 100%;
    text-align: center;
}

.role-label {
    display: block;
    text-align: left;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: normal;
}

.language-selector {
    margin-bottom: 25px;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.custom-select-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.custom-select-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.1em;
    color: var(--text-color);
    background: transparent;
    cursor: pointer;
    text-align: left;
    padding-right: 35px;
	 padding-left: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
}

.flag-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.flag-icon.uk {
    background-image: url('../images/flag-uk.png');
}
.flag-icon.in {
    background-image: url('../images/flag-in.png');
}
.flag-icon.es {
    background-image: url('../images/flag-es.png');
}
.flag-icon.fr {
    background-image: url('../images/flag-fr.png');
}
.flag-icon.bd {
    background-image: url('../images/flag-bd.png');
}


.dropdown-arrow {
    width: 12px;
    height: 12px;
    background-image: url('../images/arrow-down.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    flex-shrink: 0;
    position: absolute;
    right: 20px;
    pointer-events: none;
    z-index: 2;
}*/

.swap-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 3;
}

.swap-button img {
    width: auto;
    height: auto;
}

.toggle-and-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 40px;
}

.realtime-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--text-color);
	 line-height: 1;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
 background-color: #D3D3D3; 
   -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
 background-color: #59E659;
 }

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.next-button {
    width: 250px;
    margin-top: 0;
	
}

.footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 40px;
    font-size: 0.85em;
    color: #666;
    z-index: 2;
    text-align: left;
}

.help-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    color: #ef59c4;
    font-size: 1.5em;
    font-weight: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* -------------------- Screen4 Specific Styles -------------------- */
div.screen4 {
    background-image: url('../images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
}

div.screen4 .container {
    background-image: none;
    background-color: transparent;
    box-shadow: none;
    border-radius: 15px;
    max-width: 550px;
    width: 90%;
    margin: 40px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: unset;
}

div.screen4 .left-panel,
div.screen4 .right-panel {
    display: none;
}

div.screen4 .logo {
    position: absolute;
    top: 40px;
    left: 40px;
    margin-bottom: 0;
    z-index: 10;
    justify-content: flex-start;
    align-self: flex-start;
}

div.screen4 .language-selection-section {
    padding: 0;
    width: 100%;
    text-align: center;
}

div.screen4 .language-selection-section h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

div.screen4 .language-selector {
    margin-bottom: 5px;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

div.screen4 .swap-button {
    width: auto;
    height: auto;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: none;
    margin: -20px auto -15px auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 0;
}

div.screen4 .swap-button img {
    width: 40px;
    height: auto;
    z-index: 10;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

div.screen4 .toggle-and-button {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 40px;
}

div.screen4 .footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 40px;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: auto;
    z-index: 5;
}

div.screen4 .help-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
}


/* -------------------- Screen5 Specific Styles -------------------- */
/*div.screen5 {
    background-image: url('../images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

div.screen5 .container {
    display: none;
}

div.screen5 .logo {
    position: absolute;
    top: 40px;
    left: 40px;
    margin-bottom: 0;
    z-index: 10;
    justify-content: flex-start;
    align-self: flex-start;
    display: flex;
}*/

.menu-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: auto;
    border-radius: unset;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.menu-button:focus {
    outline: none;
}

.menu-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.consent-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 5;
}

.consent-container h1 {
    font-size: 2.2em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.language-columns {
    display: flex;
    gap: 30px;
    width: 100%;
    text-align: left;
}

.language-column {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.language-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.language-header .flag-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.language-header span {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
}

.language-column p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.audio-button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.audio-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.audio-button img {
    width: 50px;
    height: 50px;
}

.consent-button {
    width: 250px;
    margin-top: 20px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.consent-button img {
    width: 20px;
    height: auto;
}

/*div.screen5 .footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 40px;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: auto;
    z-index: 5;
    display: block;
}

div.screen5 .help-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}*/

/* Main layout */
div.screen5 {
    background-image: url('../images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100vw;
    padding: 20px;
    box-sizing: border-box;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center; /* ? Center the main content like consent-container */
}

/* ?? Logo left on normal screens */
div.screen5 .logo {
    align-self: flex-start; /* ? Make only the logo align to the left */
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    z-index: 10;
}
/* Logo image itself */
div.screen5 .logo img {
    height: auto;
    max-width: 180px;
}

/* Heading container */
div.screen5 .consent-container {
    text-align: center;
    margin-top: 20px;
    z-index: 5;
    color: #000;
}

/* Footer */
div.screen5 .footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-align: left;
    width: auto;
    font-size: 12px;
    z-index: 5;
}

/* Help icon */
div.screen5 .help-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    z-index: 5;
    background-color: #fff;
    border-radius: 50%;
    padding: 8px;
}

/* ?? Responsive Fix for Mobile */
@media (max-width: 600px) {
    div.screen5 {
        padding: 10px;
    }

    div.screen5 .logo {
        justify-content: center; /* center logo on small screens */
        margin-bottom: 10px;
    }

    div.screen5 .logo img {
        max-width: 150px;
    }

    div.screen5 .consent-container {
        margin-top: 30px;
        width: 100%;
    }

    div.screen5 .footer-copyright,
    div.screen5 .help-icon {
        font-size: 10px;
    }

    div.screen5 .help-icon {
        padding: 6px;
    }
}

/* -------------------- Screen6 Specific Styles -------------------- */
div.screen6 {
    background-image: url('../images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

div.screen6 .container,
div.screen6 .consent-container {
    display: none;
}

div.screen6 .logo {
    position: absolute;
    top: 40px;
    left: 40px;
    margin-bottom: 0;
    z-index: 10;
    justify-content: flex-start;
    align-self: flex-start;
    display: flex;
}

div.screen6 .menu-button {
    top: 0;
    right: 0;
}

.translation-session-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 1000px;
    width: 90%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(239, 89, 196, 0.1);
    width: fit-content;
    align-self: flex-end;
    margin-right: 15px;
}

.recording-time {
    font-weight: 600;
    color: var(--primary-purple);
}

.stop-button {
    width: 26px;
    height: 26px;
    background-color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.stop-button::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    position: absolute;
}
.play-button-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
   background-color: rgba(239, 89, 196, 0.1);
  border-radius: 40px;
  padding: 8px 16px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s ease-in-out;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.play-button-wrapper.moved {
  top: 20px;
  left: calc(100% - 140px); /* Adjust for smaller button */
  transform: translate(0, 0);
  padding: 4px 10px;
}

.play-button {
  width: 70px;
  height: 70px;
  background-color: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.8s ease-in-out;
}

.play-button::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  left: 26px;
}

.play-button-wrapper.moved .play-button {
  width: 40px;
  height: 40px;
}

.play-button-wrapper.moved .play-button::before {
  border-left: 10px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  left: 14px;
}
@media (max-width: 600px) {
  .play-button-wrapper {
    width: calc(100% - 40px); /* give it room on both sides */
    max-width: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    justify-content: center;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button::before {
    border-left: 16px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    left: 22px;
  }
}

.button-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-purple);
  transition: opacity 0.4s ease;
}

.play-button-wrapper.moved .button-label {
  opacity: 0;
  pointer-events: none;
}


.pause-button {
    width: 26px;
    height: 26px;
    background-color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Two bars for pause */
.pause-button::before,
.pause-button::after {
    content: '';
    width: 4px;
    height: 12px;
    background-color: white;
    position: absolute;
}

.pause-button::before {
    left: 8px;
}

.pause-button::after {
    right: 8px;
}

.resume-button {
    width: 26px;
    height: 26px;
    background-color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.resume-button::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 12px;
    background-color: white;
    left: 7px;
}

.resume-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    left: 12px;
}
.restart-button {
  width: 26px;
  height: 26px;
  background-color: var(--primary-purple);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

/* Arc 1 (top-left curve) */
.arc1 {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-color: white transparent transparent white;
  border-radius: 50%;
  top: 4px;
  left: 4px;
  transform: rotate(45deg);
}

/* Arrowhead 1 - aligned with arc1 */
.head1 {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-left-color: white;
  transform: rotate(45deg);
}

/* Arc 2 (bottom-right curve) */
.arc2 {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-color: transparent white white transparent;
  border-radius: 50%;
  bottom: 4px;
  right: 4px;
  transform: rotate(45deg);
}

/* Arrowhead 2 - aligned with arc2 */
.head2 {
  position: absolute;
  bottom: 4px;
  right: 14px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-right-color: white;
  transform: rotate(-45deg);
}
.restart-button:hover {
  animation: spin 0.6s linear;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.refresh-button {
  width: 26px;
  height: 26px;
  background-color: #e947b0;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Top right arc */
.refresh-button::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
  top: 3px;
  right: 3px;
}

/* Bottom left arc */
.refresh-button::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
  bottom: 3px;
  left: 3px;
}


.session-content {
    flex-grow: 1;
    width: 100%;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
	padding-top:20px;
}

.participant-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.practitioner-section {
    justify-content: flex-start;
    flex-direction: row;
}

.patient-section {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.language-display {
    display: flex;
    align-items: center;
    min-width: 100px;
    flex-shrink: 0;
}

.language-display .flag-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.language-display span {
    font-weight: 600;
    font-size: 0.95em;
    color: #666;
}

.message-bubble {
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 70%;
    font-size: 1em;
    line-height: 1.5;
    word-wrap: break-word;
    flex-shrink: 1;
}

.message-bubble p {
    margin: 0;
}

.practitioner-message {
    background-color: var(--bubble-gray);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
}

.patient-message {
    background-color:#00b6e6;
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}

.patient-message.rtl {
    direction: rtl;
    text-align: right;
}

/* .input-section-placeholder {
    width: 100%;
    height: 60px;
	
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}
*/
div.screen6 .footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 40px;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: auto;
    z-index: 5;
    display: block;
}

div.screen6 .help-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}
  
/* -------------------- Media Queries for Responsive Design -------------------- */

/* Media Query for larger tablets and smaller desktops */
@media (max-width: 992px) {
    .translation-session-container {
        padding: 20px;
        width: 95%;
        height: 85vh;
    }

    .recording-status {
        margin-right: 10px;
        padding: 6px 12px;
        font-size: 0.85em;
    }

    div.screen6 .logo {
        top: 25px;
        left: 25px;
    }

    div.screen6 .menu-button {
        top: 0;
        right: 0;
        width: 60px;
    }

    .message-bubble {
        padding: 12px 15px;
        font-size: 0.95em;
        max-width: 75%;
    }

    .language-display {
        min-width: 80px;
    }

    .language-display .flag-icon {
        width: 20px;
        height: 20px;
    }

    .language-display span {
        font-size: 0.9em;
    }

    
}

/* Media Query for smaller tablets and phones */
@media (max-width: 768px) {
    .translation-session-container {
        padding: 15px;
        width: 98%;
        height: 90vh;
    }

    .recording-status {
        margin-right: 5px;
        padding: 5px 10px;
        font-size: 0.8em;
        gap: 8px;
    }

    

    div.screen6 .logo {
        top: 20px;
        left: 20px;
    }

    div.screen6 .menu-button {
        top: 0;
        right: 0;
        width: 50px;
    }

    .message-bubble {
        padding: 10px 12px;
        font-size: 0.9em;
        max-width: 80%;
    }

    .language-display {
        min-width: 70px;
        gap: 5px;
    }

    .language-display .flag-icon {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    .language-display span {
        font-size: 0.8em;
    }

    .session-content {
        gap: 15px;
        padding-right: 5px;
    }

  

    div.screen6 .footer-copyright {
        bottom: 15px;
        left: 20px;
        font-size: 0.75em;
    }

    div.screen6 .help-icon {
        bottom: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

/* Media Query for extra small phones */
@media (max-width: 480px) {
    .translation-session-container {
        padding: 10px;
        height: 92vh;
    }

    .recording-status {
        font-size: 0.75em;
        padding: 4px 8px;
        gap: 5px;
    }



    div.screen6 .logo {
        top: 15px;
        left: 15px;
    }

    div.screen6 .menu-button {
        top: 0;
        right: 0;
        width: 40px;
    }

    .message-bubble {
        padding: 8px 10px;
        font-size: 0.85em;
        max-width: 90%;
    }

    .language-display {
        min-width: 60px;
    }

    .language-display .flag-icon {
        width: 16px;
        height: 16px;
    }

    .language-display span {
        font-size: 0.7em;
    }

    .session-content {
        gap: 10px;
    }

    
    div.screen6 .footer-copyright {
        bottom: 10px;
        left: 15px;
        font-size: 0.7em;
    }
}
.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-display {
  font-weight: 600;
  font-size: 1rem;
}

.lang-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #007bff;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
   margin-left: auto;
}

.typing-dot {
  width: 3px;
  height: 18px;
  background-color: #e23cb3;
  border-radius: 2px;
  animation: shrinkFadeDot 1.5s infinite ease-in-out;
  opacity: 0.8;
  transform-origin: center center;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes shrinkFadeDot {
  0%, 100% {
    height: 18px;
    border-radius: 2px;
    opacity: 0.8;
  }
  50% {
    height: 6px;
    border-radius: 50%;
    opacity: 1;
  }
  75% {
    height: 4px;
    opacity: 0.5;
  }
}
.status-container {
  text-align: center;
}

.status-text {
  display: inline-block;
}


