/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 2.5rem;
    line-height: 1;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.brand-tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tools Menu Section */
.tools-menu-section {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tools-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-right: 0.5rem;
    text-align: right;
    width: 100%;
}

.tools-menu {
    position: relative;
    max-width: 400px;
    margin-left: auto;
}

.current-tool {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.current-tool:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.current-tool-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.current-tool-name {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-arrow {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.tools-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.tools-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-menu.open .tools-dropdown {
    opacity: 1;
    visibility: visible;
}

.tools-dropdown-content {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
}

.tools-menu.open .tools-dropdown-content {
    transform: scale(1) translateY(0);
}

.dropdown-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.dropdown-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dropdown-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tools-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.tool-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    border-radius: var(--radius-lg);
    position: relative;
}

.tool-option:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.tool-option.active {
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.tool-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.tool-option-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.tool-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tool-option-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-option.active .tool-option-title {
    color: var(--primary-color);
}

.tool-option-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tool-option.active .tool-option-subtitle {
    color: var(--primary-color);
    opacity: 0.8;
}

.active-indicator {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.2s ease;
}

.tool-option.active .active-indicator {
    opacity: 1;
    transform: scale(1.1);
}

.coming-soon-badge {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f59e0b 100%);
    color: white;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
}

.dropdown-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--border-light);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.dropdown-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Tool Navigation (Legacy - keeping for compatibility) */
.tool-navigation {
    display: none; /* Hidden since we're using the new dropdown menu */
}

/* Tool Panels */
.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tool-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.tool-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Step Sections */
.step-section {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Upload Area */
.upload-area {
    margin-bottom: 2rem;
}

.upload-zone {
    display: block;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.upload-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-text span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-align: center;
}

/* Analysis Options */
.analysis-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option-card input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-color);
}

.option-content {
    flex: 1;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.option-icon {
    font-size: 1rem;
}

.option-title {
    font-weight: 600;
    color: var(--text-primary);
}

.option-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-section {
    margin-top: 1rem;
}

.search-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface-color);
    transition: border-color 0.2s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Custom Input Section */
.custom-input-section {
    margin-bottom: 2rem;
}

.input-with-button {
    display: flex;
    gap: 0.75rem;
}

.custom-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface-color);
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Results Container */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.results-panel {
    background: var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--border-light);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.panel-content {
    padding: 1rem;
}

.items-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.items-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.items-list label:hover {
    background: var(--surface-color);
}

.items-list input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-color);
}

.select-all-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Action Buttons */
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
    min-height: 44px;
    width: 100%;
}

.action-button.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.action-button.primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-button.primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-button.secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: auto;
    min-width: 80px;
}

.action-button.secondary:hover {
    background: var(--border-light);
    border-color: var(--primary-color);
}

.button-icon {
    font-size: 1rem;
}

/* Progress Section */
.progress-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--border-light);
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    border-radius: 9999px;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Error Display */
.error-display {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    color: var(--error-color);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
}

.error-display:empty {
    display: none !important;
}

/* Success Section */
.success-section {
    background: var(--success-color);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 1rem;
}

.success-section a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.success-section a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Coming Soon Panel */
.coming-soon-panel {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.coming-soon-panel h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.coming-soon-panel p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    padding: 0.75rem 1rem;
    background: var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: left;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.security-badge,
.compliance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.security-badge {
    background: var(--primary-light);
    color: var(--primary-color);
}

.compliance-badge {
    background: #dcfce7;
    color: var(--success-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .tools-menu {
        max-width: 100%;
    }
    
    .current-tool {
        padding: 0.875rem 1rem;
    }
    
    .current-tool-name {
        font-size: 1rem;
    }
    
    .tools-dropdown {
        padding: 1rem;
    }
    
    .tools-dropdown-content {
        max-width: 100%;
        margin: 0;
    }
    
    .dropdown-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .dropdown-header h3 {
        font-size: 1.25rem;
    }
    
    .tools-grid {
        padding: 1rem;
    }
    
    .tool-option {
        padding: 1rem;
    }
    
    .tool-option-title {
        font-size: 1rem;
    }
    
    .tool-option-subtitle {
        font-size: 0.75rem;
    }
    
    .dropdown-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .step-section {
        padding: 1.5rem;
    }
    
    .results-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-content {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-section {
        text-align: center;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .tools-heading {
        font-size: 1.25rem;
    }
    
    .current-tool {
        padding: 0.75rem;
    }
    
    .current-tool-icon {
        font-size: 1.25rem;
    }
    
    .current-tool-name {
        font-size: 0.9rem;
    }
    
    .tools-dropdown {
        padding: 0.5rem;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
    
    .dropdown-header h3 {
        font-size: 1.125rem;
    }
    
    .tools-grid {
        padding: 0.5rem;
    }
    
    .tool-option {
        padding: 0.875rem;
    }
    
    .tool-option-icon {
        font-size: 1.25rem;
    }
    
    .tool-option-title {
        font-size: 0.9rem;
    }
    
    .tool-option-subtitle {
        font-size: 0.7rem;
    }
    
    .coming-soon-badge {
        font-size: 0.5rem;
        padding: 0.125rem 0.375rem;
    }
    
    .tool-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
    }
    
    .coming-soon-panel {
        padding: 3rem 1rem;
    }
}

.file-upload-container {
    margin-bottom: 1.5rem;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-color);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f1f5f9;
}

.upload-icon {
    font-size: 2rem;
}

.upload-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-text small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-info {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

/* Options Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-color);
    transition: all 0.2s;
}

.checkbox-container:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.checkbox-label strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.checkbox-label small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Search Input */
.search-input-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--surface-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Buttons */
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    justify-content: center;
    min-height: 44px;
}

.primary-button {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.primary-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.primary-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-button {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.secondary-button:hover {
    background: var(--background-color);
    border-color: var(--primary-color);
}

.button-icon {
    font-size: 1rem;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.input-group .search-input {
    flex: 1;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.results-column {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.results-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--surface-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.results-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.results-list label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
}

.results-list label:hover {
    background: var(--surface-color);
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
}

/* Progress Bars */
.progress-container {
    text-align: center;
    padding: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    border-radius: 9999px;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Error Messages */
.error-message {
    color: var(--error-color) !important;
    font-weight: 600 !important;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    display: block;
}

#search-results-error:empty,
#redact-results-error:empty {
    display: none !important;
}

/* Download Container */
.download-container {
    text-align: center;
    padding: 2rem;
    background: var(--success-color);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.download-container a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.download-container a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Privacy Form Styles */
.privacy-form {
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface-color);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Results Dashboard */
.results-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.risk-score-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.risk-score-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.risk-score-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.risk-score-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.risk-explanation {
    font-size: 0.875rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Analysis Tabs */
.analysis-tabs {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background: var(--border-light);
    border-bottom: 1px solid var(--border-color);
}

.analysis-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.analysis-tab:hover {
    background: var(--surface-color);
    color: var(--text-primary);
}

.analysis-tab.active {
    background: var(--surface-color);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.analysis-content {
    display: none;
    padding: 2rem;
}

.analysis-content.active {
    display: block;
}

.content-section h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.results-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.results-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.results-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.results-content li {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.web-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0.25rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.web-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.web-link:visited {
    opacity: 0.8;
}

/* Special styling for different link types */
.web-link[href*="linkedin"] {
    background: #0077b5;
    color: white;
}

.web-link[href*="facebook"] {
    background: #1877f2;
    color: white;
}

.web-link[href*="twitter"] {
    background: #1da1f2;
    color: white;
}

.web-link[href*=".gov"] {
    background: #dc2626;
    color: white;
    font-weight: 600;
}

.web-link[href*="court"] {
    background: #7c2d12;
    color: white;
}

.web-link[href*="records"] {
    background: #b45309;
    color: white;
}

/* Results category styling */
.results-category {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.results-category h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.result-item {
    margin: 0.75rem 0;
    padding: 1rem;
    background: var(--border-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.result-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.result-item.public-record {
    border-left-color: var(--error-color);
    background: #fef2f2;
}

.result-item.social-media {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.result-item.professional {
    border-left-color: var(--success-color);
    background: #f0fdf4;
}

.result-item.news {
    border-left-color: var(--warning-color);
    background: #fffbeb;
}

/* Relevance stars styling */
.relevance-stars {
    color: var(--warning-color);
    font-size: 0.875rem;
    margin-left: auto;
}

/* Search statistics */
.search-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.search-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.search-stats .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Public records specific styling */
.public-record-item {
    border: 2px solid var(--error-color);
    background: #fef2f2;
    position: relative;
}

.public-record-item::before {
    content: '⚠️';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.25rem;
}

.record-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--error-color);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.risk-level {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-level.low {
    background: #dcfce7;
    color: var(--success-color);
}

.risk-level.medium {
    background: #fef3c7;
    color: var(--warning-color);
}

.risk-level.high {
    background: #fee2e2;
    color: var(--error-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Privacy Analysis Specific Styles */
.privacy-insight {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1rem 0;
}

.privacy-insight h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.privacy-insight p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.confidence-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.confidence-bar {
    width: 60px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Mobile Responsiveness for Privacy Analysis */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .analysis-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .analysis-tab.active {
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    .analysis-content {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .risk-score-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .form-grid {
        gap: 0.75rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.75rem;
    }
    
    .privacy-options {
        gap: 0.75rem;
    }
    
    .risk-score-card {
        padding: 1.5rem;
    }
    
    .analysis-content {
        padding: 1rem;
    }
}

/* Coming Soon Styles */
.coming-soon-container {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.coming-soon-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.coming-soon-container > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.upcoming-tool {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.upcoming-tool .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.upcoming-tool h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upcoming-tool p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.875rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .tool-section {
        padding: 1.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
    }
    
    .tab-label {
        display: none;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .file-upload-label {
        padding: 2rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .options-container {
        gap: 1rem;
    }
    
    .upcoming-tools {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
    }
    
    .tool-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1.5rem 1rem;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
    
    .coming-soon-container {
        padding: 3rem 1rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
}
