: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;
    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);
}


/* Main Container */
.main-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Upload and Result Container Styles */
.upload-container, 
.result-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.05), 
        0 20px 48px rgba(0, 0, 0, 0.03);
    padding: 40px;
    width: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-container {
    background: linear-gradient(145deg, #ffffff, #f0f5f9);
}

.result-container {
    background: linear-gradient(145deg, #f9fbfc, #ffffff);
}

.upload-container:hover,
.result-container:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08), 
        0 25px 60px rgba(0, 0, 0, 0.05);
}

/* Container Headers */
.upload-container h2,
.result-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.upload-container h2::after,
.result-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff0099, #ff6600);
    border-radius: 2px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 25px;
    text-align: center;
}

.upload-box {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.file-input {
    display: none;
}

.file-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.preview {
    margin-top: 20px;
    width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

/* Button Group */
.button-group button {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear {
    margin-top: 20px;
    background: linear-gradient(135deg, #ff0099, #ff6600);
    color: white;
}

#submit {
    background: linear-gradient(135deg, #ff0099, #ff6600);
    color: white;
}

.button-group button:hover {
    transform: translateY(-3px);
}

/* Loader Styles */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0099;
    border-right: 4px solid #ff6600;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Controls */
.controls button {
    padding: 14px 30px;
    background: linear-gradient(135deg, #ff0099, #ff6600);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.controls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}


/* PDF Example Container */
.example-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.examples h3{
    text-align: center;
    margin-top: 50px;
}
.example-pdf {
    text-align: center;
}

.example-pdf-frame {
    width: 150px;
    height: 100px;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.example-pdf-frame:hover {
    transform: scale(1.05);
}

.example-pdf p {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
}


/* Copy Button */
.copy-container {
    text-align: right;
    margin-bottom: 2px;
}

.copy-btn {
    width: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* File Info Styles */
.file-info {
    margin-top: 15px;
    font-size: 14px;
    color: #34495e;
}

/* 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 {
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #ff0099, #ff6600);
    transition: width 0.3s ease;
}

#progressText {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Success and Error Messages */
.success-message {
    margin-top: 15px;
    color: #2ecc71;
    font-weight: bold;
    display: none;
}

.error-message {
    margin-top: 15px;
    color: #e74c3c;
    font-weight: bold;
    display: none;
}

.upload-box {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.upload-box.dragover {
    border-color: #ff7e5f;
    background-color: #fff3f1;
}

.example-pdf {
    cursor: grab;
    margin: 5px;
    width: 120px;
    text-align: center;
}

.example-pdf-frame {
    width: 100%;
    height: 100px;
}

/* Aligning Output Header and Copy Button */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Styling for Output Title */
.output-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* Styling for Copy Button */
.copy-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Output Box Styling */
.output-box {
    width: 100%;
    height: 300px; /* Fixed height to keep content inside */
    overflow: auto; /* Add scroll if content overflows */
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    white-space: pre-wrap; /* Ensure content wraps correctly */
    word-wrap: break-word;
    border-radius: 8px;
}


/* 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;
}
