:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(to right, #4a90e2, #50c878);
    --secondary-gradient: linear-gradient(to right, #4a90e2, #50c878);
    --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);
}

/* 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');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
    text-align: center;
    padding: 75px;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px; /* Fixed height or adjust as needed */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero h2 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 20px;
    color: white; /* Ensure visibility on GIF background */
}

.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;
    color: white; /* Ensure visibility on GIF background */
}

.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;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 400px;
        padding: 60px 15px;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 15px;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Animation for Hero Content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    animation: fadeInUp 1s ease-out;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

.hero .btn-group button {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}
/* Global Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f7f6;
    line-height: 1.6;
    color: #2c3e50;
}

.main-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.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, #ffffff, #f0f5f9);
    overflow-y: auto;
}

.upload-container:hover,
.result-container:hover {
    transform: translateY(-8px);
    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: 600;
    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(to right, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    background-color: #f4f7f6;
    border-radius: 10px;
    overflow: hidden;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    cursor: pointer;
    color: #7f8c8d;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.tab.active {
    color: #3498db;
}

.tab.active::before {
    background: linear-gradient(to right, #3498db, #2ecc71);
}

/* Industry Dropdown */
.industry-dropdown {
    margin-bottom: 25px;
}

.industry-dropdown select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Text Input */
#inputText {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    resize: vertical;
    font-size: 16px;
    transition: all 0.3s ease;
}

#inputText:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.controls button {
    position: relative;
    padding: 12px 30px;
    border: none;
    background: linear-gradient(to right, #4a90e2, #50c878);
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: all 0.6s;
}
.controls button:hover::before {
    left: 100%;
}
.controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.controls button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.controls button:disabled {
    background: linear-gradient(to right, #a0a0a0, #c0c0c0);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Attribute Output */
#attributeOutput {
    background-color: #f4f7f6;
    border-radius: 10px;
    padding: 25px;
}

#attributeOutput ul {
    list-style-type: none;
}

#attributeOutput li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

#attributeOutput li:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

#attributeOutput li:last-child {
    border-bottom: none;
}

#attributeOutput li strong {
    color: #2c3e50;
    min-width: 120px;
    font-weight: 600;
}

/* Copy Button */
.copy-container {
    text-align: right;
    margin-bottom: 15px;
}

.copy-btn {
    width: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.result-container {
    background: linear-gradient(145deg, #f9fbfc, #ffffff);
    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%;
    height: 700px;
    overflow-y: auto; /* Enables scrolling */
    border: 1px solid rgba(0, 0, 0, 0.05);
    scrollbar-width: thick; /* For Firefox */
    scrollbar-color: #b8b8b8 #f4f6f9;
}

/* Custom Scrollbar for Chrome, Edge, Safari */
.result-container::-webkit-scrollbar {
    width: 20px;
}

.result-container::-webkit-scrollbar-track {
    background: #f4f6f9;
    border-radius: 10px;
}

.result-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6f6f70, #6f6f70);
    border-radius: 10px;
}

.result-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6f6f70, #6f6f70);
}

            /* Dropdown Wrapper */
.industry-dropdown {
    position: relative;
    width: 100%;
}

/* Styled Select Box */
.custom-select select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Hover & Focus Effects */
.custom-select select:hover,
.custom-select select:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    outline: none;
    transform: scale(1.02);
}

/* Custom Arrow */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select::after {
    content: '▼'; 
    font-size: 14px;
    color: #3498db;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

/* Open Effect */
.custom-select select:focus + ::after {
    transform: translateY(-50%) rotate(180deg);
}

.industry-dropdown {
    position: relative;
    margin-bottom: 25px;
}

.industry-dropdown label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    transition: color 0.3s ease;
}

.custom-select {
    position: relative;
    width: 100%;
}

.industry-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 14px 50px 14px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.industry-dropdown select:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.industry-dropdown select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #7f8c8d;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.industry-dropdown select:focus + .select-arrow {
    border-top-color: #3498db;
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Options Styling */
.industry-dropdown select option {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 10px;
}

.industry-dropdown select option:hover {
    background-color: #f1f4f8;
}
/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .upload-container, 
    .result-container {
        width: 100%;
        padding: 25px;
    }
}

.result-container {
    flex-grow: 1;
    position: relative;
    min-height: 300px;
}
.copy-container {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.copy-container:hover {
    opacity: 1;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(168, 168, 168, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.5s ease;
    background-color: rgb(247, 239, 239);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;

}

.loading-overlay.active .loading-content {
    transform: translateY(0);
    opacity: 1;
}

.loading-spinner-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.loading-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: rgb(5, 3, 82);
    border-bottom-color: rgb(5, 3, 82);
    animation: spin 1.5s linear infinite;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: #f1c500;
    border-bottom-color: #f1c500;
    animation: spin 1s linear reverse infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgb(1, 192, 218);
    border-bottom-color: rgb(1, 192, 218);
    animation: spin 0.75s linear infinite;
}

.loading-text {
    color: rgb(8, 8, 8);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.loading-subtext {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    margin-top: 15px;
}

.ai-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

.ai-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}