@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Header Section */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 10vw;
    background-color: white;
    color: black;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-left: 10px;
}

h1 {
    font-weight: 600;
    font-size: 32px;
    color: black;
}

.logo-txt {
    border-left: 1px solid darkgrey;
    padding-left: 10px;
    margin-left: 10px;
}

.logo-txt span {
    color: #00b894;
}

/* Main Container */
.main-container {
    display: flex;
    justify-content: space-between;
    margin: 40px 10vw;
}

.text-section {
    width: 50%;
}

/* Individual Styling for Each Line in Heading */
.text-2xl .line-1 {
    font-size: 34px;
    color: #000;
    font-weight: 600;
}

.text-2xl .line-2 {
    font-size: 34px;
    color: #000;
    font-weight: 600;
}

.text-2xl .line-3 {
    font-size: 34px;
    color: #000;
    font-weight: 500;
    margin-bottom: 20px;
}

.subtext {
    font-size: 16px;
    margin-top: 15px;
    color: #333;
}

/* Form Section */
.upload-form-section {
    width: 45%;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.05);
}

.input-container {
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
    flex: 1;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.input-group select {
    appearance: none;
}

.age-gender {
    display: flex;
    flex-direction: row;
    gap: 10px
}


.input-row {
    display: flex;
    gap: 10px;
}

.input-group p {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.drop-area {
    border: 2px dashed #c9c9c9;
    padding: 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #777;
    text-align: center;
}

.file-drop-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-input {
    display: none;
}

.file-btn {
    background-color: transparent;
    color: #016be7;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

/* Submit Button */
.button-container {
    margin-top: 25px;
    text-align: center;
}

.submit-button {
    background-color: #2d3436;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    height: 45px;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: 200px;
    height: auto;
}

.submit-button:hover {
    background-color: #636e72;
}

/* Result Section */
.result-section {
    display: none;
    /* Initially hidden until scrolling down */
    padding: 50px;
    background-color: #fff;
    text-align: center;
}

.text-center {
    font-size: 20px;
    color: #333;
}

.file-details {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #016be7;
}

.file-status {
    color: green;
}

.file-details .loading-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #016be7;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

.delete-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 16px;
}

.delete-btn:hover {
    color: red;
}

.required {
    color: red;
}

select {
    background-image:
        linear-gradient(45deg, transparent 50%, gray 50%),
        linear-gradient(135deg, gray 50%, transparent 50%),
        linear-gradient(to right, #ccc, #ccc);
    background-position:
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - 2.5em) 0.5em;
    background-size:
        5px 5px,
        5px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
}

.d-flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.rec-toggle {
    min-width: 120px;
    height: 50px;
    background-color: white;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px 1px rgba(100, 98, 102, 0.16);
    padding-right: 15px;
    border-radius: 24px;
}

.rec-toggle span {
    margin-left: 5px;
    color: #016be7;
}

.rec-toggle .rotor {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #016be7;
    border-radius: 100%;
    cursor: pointer;

}

.rec-toggle.stop .rotor {
    background-color: #ff4757;
}

.rec-toggle.stop .rec {
    color: black;
}

.rec-toggle svg {
    color: white;
    height: 20px;
}

.rec-toggle.start .rec-stop {
    display: none;
}

.rec-toggle.stop .rec-start {
    display: none;
}

.rec-toggle.stop .rec-stop {
    display: block;
}

.text-right {
    justify-content: end;
}

#waveform {
    width: 100%;
    height: 128px;
    border: 1px solid #ccc;
    margin: 20px 0;
    border-radius: 8px;
}

.record-container {
    display: none;
}

.blink {
    background-color: #ff4757;
    /* Initial color */
    animation: color-blink-animation 1s infinite;
}

@keyframes color-blink-animation {
    0% {
        background-color: #ff4757;
        /* Red */
    }

    50% {
        background-color: #016be7;
        /* Blue */
    }

    100% {
        background-color: #ff4757;
        /* Back to Red */
    }
}

.action-btn {
    width: 80px;
    padding: 5px;
    border-radius: 5px;
    border: none;
    font-size: 12px;
    margin-right: 5px;
    cursor: pointer;
}

.action-btn.play {
    background-color: #2d3436;
    color: white;
}

.popupBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    z-index: 100;
}

.popupBox__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.popupBox__img {
    position: relative;
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popupBox__img img {
    width: 50%;
}

.popupBox__img::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: #e7ffe0;
    border-radius: 50%;
}

.popupBox__img img {
    position: relative;
    max-width: 250px;
    z-index: 1;
}

.popupBox__contentTwo {
    position: relative;
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popupBox__title {
    color: #333;
    line-height: 1em;
    font-weight: 300;
    font-size: 1.5em;
}

.popupBox__titleTwo {
    font-size: 2em;
    color: #05c46b;
    line-height: 1em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.popupBox__titleTwo span {
    color: #333;
    font-size: 0.75em;
    text-transform: uppercase;
}

.popupBox__description {
    font-weight: 300;
    font-size: 14px;
}

.popupBox__btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1e272e;
    text-decoration: none;
    color: white;
    margin-top: 15px;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f3f3f3 url(https://www.pikpng.com/pngl/m/302-3024308_close-icon-png-x-png-icon-clipart.png);
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: center;
    z-index: 10;
    cursor: pointer;
    border-radius: 50%;
}

@media (max-width: 868px) {
    .main-container {
        flex-direction: column;
        gap: 20px;
    }

    .text-section {
        width: 100%;
    }

    .upload-form-section {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .popupBox__content {
        width: 300px;
        height: auto;
        flex-direction: column;
    }

    .popupBox__img {
        height: 200px;
        transform: translateY(-50px);
    }

    .popupBox__contentTwo {
        height: auto;
        text-align: center;
        padding: 20px;
        padding-top: 0;
    }

    .popupBox__img::before {
        background: #fff;
    }

    .close {
        top: -50px;
        right: -10px;
        background: #fff url(./img/close.png);
        background-repeat: no-repeat;
        background-size: 10px;
        background-position: center;
    }
}

.loader {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 3px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}

/* Hide the default checkbox */
input[type="checkbox"] {
    display: none;
}

/* Custom checkbox styles */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid grey;
    background-color: white;
    display: inline-block;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
}

/* Style for checked state */
input[type="checkbox"]:checked+.custom-checkbox {
    background-color: black;
    border: 2px solid black;
    /* Change to black when checked */
}

/* Checkmark */
.custom-checkbox:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 0px;
    width: 5px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    /* Hide the checkmark by default */
}

/* Show checkmark when checked */
input[type="checkbox"]:checked+.custom-checkbox:after {
    opacity: 1;
    /* Show the checkmark */
}

.checkbox {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
}