:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #ff0099, #ff6600);
    --background-light: #f4f6f9;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --white: #ffffff;
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: white;
    box-shadow: var(--shadow-subtle);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 50px;
}

.navbar-logo {
    font-size: 1.5em;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}

.navbar ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.navbar li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.navbar li a:hover {
    color: #6a11cb;
}

.signup-btn {
    background: var(--secondary-gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.signup-btn:hover {
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    background-image: url('/assets/images/voice wave.gif');
    color: var(--white);
    text-align: center;
    padding: 80px 20px; /* Reduced padding */
    margin-top: 0;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensures hero stays below the doc-container */
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
}

.hero h2 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero .highlight {
    background: var(--secondary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.hero .btn-group button {
    background: var(--secondary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero .btn-group button:hover {
    transform: translateY(-3px);
}

/* Corrected Wave Container */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Canvas Full Background */
#waveCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Full Container */
.full-continer {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius:50px;
    border-bottom-left-radius:50px;
}

.tts-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.tts-box {
    width: 700px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid #ff0066; /* Default pink border */
    box-shadow: 0px 10px 20px rgba(255, 0, 102, 0.2);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: border-color 0.3s ease-in-out;
}

.tts-box:hover {
    border-color: #f14e26; /* Change to orange on hover */
}

.tts-box textarea {
    width:100%;
    height: 200px;
    border: none; /* Default pink border */
    outline: none;
    background: #ebe8e8;
    font-size: 18px;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    resize: none;
}

.tts-controls {
    display: flex;
    justify-content: center; /* Centers items horizontally */
    align-items: center; /* Centers items vertically */
    gap: 20px; /* Adds space between items */
    margin-top: 10px;
    flex-wrap: wrap;
}


.tts-controls select {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #ebe8e8;
    font-size: 14px;
    cursor: pointer;
}

.play-button {
    background: linear-gradient(135deg, #ff0066, #ff33cc);
    border: none;
    color: #fff;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 80%;
    cursor: pointer;
    transition: 0.3s ease;
}

.play-button:hover {
    background: linear-gradient(135deg, #ff33cc, #ff0066);
}

#audioContainer {
    margin-top: 20px;
    text-align: center;
}

/* Apply the same styling as #voice-select */
.dropbtn {
    background-color: #ebe8e8; /* Same as voice select */
    border: 1px solid #ccc; /* Same border as voice select */
    border-radius: 20px; /* Rounded corners */
    font-size: 14px; /* Same font size */
    cursor: pointer;
    padding: 10px;
    width: 170px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
    appearance: none; /* Removes default arrow */

}

.dropbtn img {
    width: 20px;
    height: 15px;
    border-radius: 3px;
}
/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ebe8e8; /* Same as voice select */
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 6px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Dropdown Items */
.dropdown-content .dropdown-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: black;
}

/* Hover effect */
.dropbtn:hover,
.dropdown-content .dropdown-item:hover {
    border-color: #ff0066;
    background-color: #f0f0f0;
}

/* Show dropdown on button click */
.dropdown.active .dropdown-content {
    display: block;
}

.dropbtn:hover,
.dropdown-content .dropdown-item:hover {
    border-color: #ff0066;
    background-color: #f0f0f0;
}

#voice-select, #voice-type{
    display: flex;
    appearance: none; /* Removes default arrow */
    text-align: center;
    background-color: #ebe8e8;
 
}

#voice-select:hover,#voice-type:hover {
    border-color: #ff0066;
    background-color: #f0f0f0;
}

#voice-select + span {
    font-size: 14px;
    margin-left: 5px;
}


/* Logo container and animation */
.logo-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logo-slide {
    display: flex;
    animation: scroll 20s linear infinite;
}

.logo-slide img {
    height: 50px;
    margin: 0 20px;
    transition: transform 0.3s ease;
}

.logo-slide img:hover {
    transform: scale(1.1);
}

/* Infinite scrolling effect */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trusted-section h2 {
        font-size: 20px;
    }

    .logo-slide img {
        height: 40px;
        margin: 0 10px;
    }
}
.doc-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Prevent overlap */
    align-items: center;
    margin-top: 270px;
    width: 700px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid #ff0066; /* Default pink border */
    box-shadow: 0px 10px 20px rgba(255, 0, 102, 0.2);
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease-in-out;
    position: relative;
}

/* Hover Effect */
.doc-container:hover {
    border-color: #f14e26;
}

/* Upload Link and Play Button Container */
.upload-btn-container {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}
.dropbtn-1 img {
    width: 20px;
    height: 15px;
    border-radius: 3px;
}

/* Flex container for upload and dropdown */
.upload-container {
    display: flex;
    justify-content: space-between; /* Align items to left and right */
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 0 20px; /* Add some padding for spacing */
}

/* Upload Document Link */
#uploadDocLink {
    color: #ff0066;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

#uploadDocLink:hover {
    text-decoration: underline;
}

/* Dropdown container */
.dropdown-1 {
    position: relative;
    display: inline-block;
}

/* Dropdown button */
.dropbtn-1 {
    background-color: #ebe8e8;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    width: 170px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
}

/* Dropdown content */
.dropdown-content-1 {
    display: none;
    position: absolute;
    background-color: #ebe8e8;
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 6px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Dropdown item */
.dropdown-content-1 .dropdown-item-1 {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: black;
}

/* Show dropdown on button click */
.dropdown-1.active .dropdown-content-1 {
    display: block;
}

/* Button hover effect */
.dropbtn-1:hover,
.dropdown-content-1 .dropdown-item-1:hover {
    border-color: #ff0066;
    background-color: #f0f0f0;
}

.play-button-1 {
    background: linear-gradient(135deg, #ff0066, #ff33cc);
    border: none;
    color: #fff;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 80%;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 20px;
}

.play-button-1:hover {
    background: linear-gradient(135deg, #ff33cc, #ff0066);
}


/* Upload Link and Play Button on Same Line */
#uploadDocLink,
.play-button-1 {
    display: inline-block; /* Keep them on the same line */
    margin: 10 10px; /* Add space between them */
    vertical-align: middle;
}

/* Upload Link Styling */
#uploadDocLink {
    color: #ff0066;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

#uploadDocLink:hover {
    text-decoration: underline;
}

/* File Preview Styling */
.file-preview {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* Text Area to Show Document Content */
#doc-text-area {
    margin-top: 20px;
    width: 100%;
    height: 250px;
    outline: none;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    resize: none;
    margin-top: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Focus Effect */
#doc-text-area:focus {
    border: 1px solid;
    border-color:  #ff0066;
    background: #fff;
    outline: none;
    box-shadow: 0 10px 15px rgba(207, 5, 126, 0.144);
    transform: scale(1.02);
}

/* Audio Container */
#docAudioContainer {
    margin-top: 20px;
    text-align: center;
}

/* Hidden Class */
.hidden {
    display: none;
}

.doc-container h3{
    -webkit-text-fill-color: #441a7e;
}
/* Responsive Design */
@media (max-width: 768px) {
    .doc-container {
        width: 90%;
    }

    /* Ensure same-line layout for mobile */
    #uploadDocLink,
    .play-button-1 {
        display: inline-block;
        margin: 1px;
    }

    .upload-btn-container {
        text-align: center;
    }
}

.file-info {
    margin-top: 20px; /* Add space after each new element */
    width: 100%;
    font-size: 15px;
    color: black; /* Text color for file info */
    font-weight: normal;
}


/* Progress Container */
.progress-container {
    margin-top: 20px;
    text-align: center;
    display: none;
}

.progress-bar {
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    height: 20px;
    margin-top: 10px;
}

.progress {
    margin-top: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0099, #ff6600);
    transition: width 0.3s ease;
}

#progressText {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loading Content Box */
.loading-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* AI Icon Styling */
.ai-icon svg {
    width: 40px;
    height: 40px;
    fill:#ff7e5f;
    margin-bottom: 10px;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff7e5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.loading-text {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Loading Subtext */
.loading-subtext {
    font-size: 14px;
    color: #666;
}
