: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;
    justify-content: center;
    align-items: flex-start;
    margin: 40px auto;
    padding: 20px;
    max-width: 90%;
    gap: 20px;
}

/* Container */
.container {
    width: 45%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 2px solid #ddd;
}

.container h2 {
    font-size: 24px;
    background: linear-gradient(90deg, #ff0099, #ff6600); /* Gradient colors */
    background-clip: text;
    -webkit-background-clip: text; /* For WebKit browsers */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for non-supporting browsers */
    margin-bottom: 20px;
    text-align: center; /* Center the text horizontally */
}

.upload-link {
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(90deg, #ff0099, #ff6600); /* Gradient color */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
    font-size: 16px;
    margin-right: 5px; /* Add some spacing between the link and text */
}

.file-info {
    font-size: 15px;
    color: black; /* Text color for file info */
    font-weight: normal;
}

.upload-link:hover {
    background: linear-gradient(90deg, #ff6600, #ff0099);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* PDF Preview */
.pdf-preview {
    width: 45%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px; /* Adds space between tab and summary-length */
    margin-bottom: 20px;
}

.tab {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom: 2px solid #ff6600;
    color: #ff6600;
}

/* Add spacing between the tabs and radio buttons */
.summary-length {
    margin-left: auto; /* Pushes radio buttons to the right */
    display: flex;
    gap: 10px; /* Space between radio buttons */
}

/* Style for Paragraph, Upload Doc, Short, and Long labels */
label, .tab {
    color: #441a7e; /* Set text color to #441a7e */
    font-weight: bold;
}

/* Textarea */
textarea {
    width: 97%;
    height: 250px;
    padding: 10px;
    border-radius: 10px;
    resize: none;
    font-size: 16px;
    border: 1px solid #ddd;
}

/* Controls */
.controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    gap: 20px; /* Add space between buttons */
}

/* Button */
button {
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff0099, #ff6600);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background: linear-gradient(90deg, #ff0099, #ff6600);
}

/* Change color for the outer radio circle */
input[type="radio"] {
    appearance: none;
    width: 10px;
    height: 10px;
    border: 1px solid  #ff6600;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

/* Change color when checked */
input[type="radio"]:checked {
    background-color:  #ff6600;
    border: 1px solid white;
    box-shadow: 0 0 0 2px  #ff6600;
}

/* Style for labels (short, long) */
label {
    font-weight: bold;
    margin-left: 5px;
    cursor: pointer;
}


/* Summary Output */
#summaryOutput {
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 10px;
    min-height: 200px;
}

#pdfPreview {
    display: none;
    width: 50%;
    max-height: 500px; /* Set max height */
    overflow-y: auto; /* Enable vertical scroll */
    overflow-x: hidden; /* Disable horizontal scroll */
    white-space: normal;
}

#pdfViewer {
    display: block;
    width: 100%;
    height: auto;
}

canvas {
    width: 100%; /* Full width for fitting */
    height: auto;
    margin-bottom: 10px; /* Space between pages */
    display: block;
    border: 1px solid #ccc; /* Optional border */
    border-radius: 5px;
}

.copy-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 5px;
}

.copy-btn {
    justify-content: flex-end;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 0.7;
}

/* 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: 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;
}
