/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background and Animations */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(-60px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Upload Section */
.upload-section {
    padding: 40px;
    margin-bottom: 40px;
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before {
    opacity: 0.3;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-content h3 {
    font-size: 1.5rem;
    margin: 15px 0;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.browse-text {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 15px;
}

.image-badge {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245, 87, 108, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: rgba(245, 87, 108, 1);
    transform: scale(1.1);
}

/* Labels Section */
.labels-section {
    margin-bottom: 30px;
}

.labels-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.labels-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.labels-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.labels-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Client Section */
.client-section {
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease;
}

.client-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.client-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.client-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.client-form input,
.client-form select,
.client-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.client-form input:focus,
.client-form select:focus,
.client-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.required {
    color: #e74c3c;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.client-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Guidelines Section */
.guidelines-section {
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease;
    min-height: 80vh;
    padding: 30px;
}

.guidelines-section.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.guideline-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guideline-category h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guideline-category h3 i {
    color: #667eea;
    width: 20px;
}

.guideline-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guideline-category li {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.guideline-category li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.timeline-info {
    grid-column: 1 / -1;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
}

.timeline-info h3 {
    color: #667eea;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.guidelines-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.guidelines-actions .next-btn {
    flex: 2;
}

.guidelines-actions .back-btn {
    flex: 1;
}

/* Next button styles */
.next-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-height: 50px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #7c96ea, #8b5fbf);
}

.next-btn:active {
    transform: translateY(0px);
}

.next-btn i {
    font-size: 1.1em;
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease;
}

/* Analyze Button */
.analyze-btn {
    flex: 2;
    padding: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.analyze-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.analyze-btn:hover::before {
    left: 100%;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.analyze-btn.loading {
    pointer-events: none;
}

.analyze-btn.loading span {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-header {
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.results-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.verification-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

.verification-status.verified {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.verification-status.not-verified {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    padding: 10px;
    margin-bottom: 20px;
    gap: 10px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Summary Content */
.summary-content {
    padding: 30px;
}

.narrative-section {
    margin-bottom: 30px;
}

.narrative-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.narrative-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.timeline-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-card h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-value {
    font-weight: 600;
    color: #f0f0f0;
}

/* Warnings Section */
.warnings-section {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.warnings-section h4 {
    color: #f87171;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warnings-list {
    list-style: none;
}

.warnings-list li {
    padding: 5px 0;
    color: #fecaca;
}

.warnings-list li::before {
    content: "⚠️ ";
    margin-right: 8px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.metric-card h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sparkline-container {
    height: 60px;
    margin: 15px 0;
    position: relative;
}

.sparkline {
    width: 100%;
    height: 100%;
}

/* Deltas Section */
.deltas-section {
    margin-top: 30px;
}

.deltas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.delta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
}

.delta-card h4 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.delta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.delta-item:last-child {
    border-bottom: none;
}

.delta-value {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
}

.delta-value.positive {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.delta-value.negative {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.delta-value.neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Code Container */
.code-container {
    padding: 30px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.code-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

code {
    color: #f8f8f2;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Markdown Container */
.markdown-container {
    padding: 30px;
}

.markdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.markdown-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.markdown-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
}

.markdown-content h1:first-child,
.markdown-content h2:first-child {
    margin-top: 0;
}

.markdown-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.markdown-content li {
    margin-bottom: 8px;
}

.markdown-content strong {
    color: #f0f0f0;
    font-weight: 600;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 25px 0;
}

/* Copy Button */
.copy-btn {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    margin-bottom: 10px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    animation: slideIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.toast.success {
    border-left: 4px solid #4ade80;
}

.toast.error {
    border-left: 4px solid #f87171;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes slideOut {
    to { transform: translateX(400px); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.loading-spinner {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.loading-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.loading-content p {
    opacity: 0.8;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-section,
    .summary-content,
    .code-container,
    .markdown-container {
        padding: 20px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
    }
    
    .code-header,
    .markdown-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .image-preview {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Technology Overview Section */
.overview-content {
    padding: 20px;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
}

.lead {
    font-size: 18px;
    color: #4a5568;
    font-weight: 500;
    margin: 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analysis-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.analysis-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.analysis-icon i {
    font-size: 24px;
    color: white;
}

.analysis-item h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.analysis-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-item li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.analysis-item strong {
    color: #2d3748;
    font-weight: 600;
}

.technology-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.note-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.note-box i {
    font-size: 20px;
    color: #667eea;
    margin-top: 2px;
}

.note-box h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.note-box p {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

.start-button-container {
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
    margin-left: 15px;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.start-button-container {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Marketing Dashboard Styles */
.marketing-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.marketing-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.marketing-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marketing-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 24px;
}

.close-marketing {
    background: none;
    border: none;
    font-size: 28px;
    color: #4a5568;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketing-body {
    padding: 20px;
    height: calc(90vh - 80px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #4a5568;
    font-size: 14px;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #4a5568;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.competitive-advantage {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.marketing-presentation-btn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.marketing-presentation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

/* Export PDF Button */
.export-btn {
    margin-left: 15px;
    background: linear-gradient(135deg, #c62d42 0%, #8b1538 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 45, 66, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 45, 66, 0.4);
}

.export-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.export-btn i {
    font-size: 16px;
}

/* Client History Styles */
.client-history-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.history-header {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 15px;
}

.history-header h3 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.history-header h3 i {
    color: #667eea;
    margin-right: 8px;
}

.history-header p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.session-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.session-info strong {
    color: #2d3748;
    font-size: 16px;
    margin-right: 10px;
}

.session-date {
    color: #4a5568;
    font-size: 13px;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.session-actions .btn-export-session {
    background: linear-gradient(135deg, #c62d42 0%, #8b1538 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.session-actions .btn-export-session:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 45, 66, 0.3);
}

.session-actions .no-results {
    color: #a0aec0;
    font-size: 12px;
    font-style: italic;
}

.session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
}

.detail-item i {
    color: #667eea;
    width: 14px;
}

.detail-item.verified {
    color: #38a169;
}

.detail-item.verified i {
    color: #38a169;
}

.session-summary {
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
    margin-top: 10px;
}

/* Outcome Prediction Modal Styles */
.prediction-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.prediction-header h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 20px;
}

.prediction-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prediction-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-probability {
    display: flex;
    align-items: center;
    gap: 30px;
}

.probability-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.probability-circle.excellent {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.probability-circle.good {
    background: linear-gradient(135deg, #3182ce 0%, #2b77cb 100%);
}

.probability-circle.moderate {
    background: linear-gradient(135deg, #ed8936 0%, #dd7722 100%);
}

.probability-circle.limited {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.percentage {
    font-size: 24px;
    font-weight: bold;
}

.category {
    font-size: 12px;
    margin-top: 5px;
}

.probability-details {
    flex: 1;
}

.probability-details p {
    margin: 10px 0;
    color: #4a5568;
    line-height: 1.5;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timeline-item {
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.timeline-weeks {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-prob {
    font-size: 12px;
    color: #4a5568;
    font-style: italic;
}

.improvements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.improvement-item {
    background: rgba(56, 161, 105, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(56, 161, 105, 0.2);
}

.improvement-item h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
}

.improvement-value {
    font-size: 20px;
    font-weight: bold;
    color: #38a169;
    margin-bottom: 8px;
}

.improvement-time {
    font-size: 12px;
    color: #4a5568;
    font-style: italic;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.recommendation-card {
    background: rgba(240, 147, 251, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(240, 147, 251, 0.2);
}

.recommendation-card h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
}

.recommendation-card p {
    margin: 8px 0;
    color: #4a5568;
    line-height: 1.4;
}

.lifestyle-recommendations {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.lifestyle-recommendations h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
}

.lifestyle-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.lifestyle-recommendations li {
    margin: 8px 0;
    color: #4a5568;
    line-height: 1.4;
}

.risk-level {
    text-align: center;
    margin-bottom: 20px;
}

.risk-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.risk-level.low .risk-badge {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

.risk-level.moderate .risk-badge {
    background: linear-gradient(135deg, #ed8936 0%, #dd7722 100%);
    color: white;
}

.risk-level.high .risk-badge {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.risk-details, .monitoring-recommendations {
    margin-bottom: 15px;
}

.risk-details h4, .monitoring-recommendations h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.risk-details ul, .monitoring-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.risk-details li, .monitoring-recommendations li {
    margin: 5px 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.4;
}

.prediction-disclaimer {
    background: rgba(74, 85, 104, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(74, 85, 104, 0.2);
}

.prediction-disclaimer p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.5;
}

.btn-prediction {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-prediction:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

/* Results Action Buttons */
.glass-btn.secondary-btn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.2);
}

.glass-btn.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

.glass-btn.prediction-btn {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(128, 90, 213, 0.2);
}

.glass-btn.prediction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 90, 213, 0.3);
}
