/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: #F9FAFB;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2563EB;
    font-weight: 700;
}

.navigation {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #2563EB;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: #FFFFFF;
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

/* Tool Section */
.tool-section {
    padding: 3rem 0;
}

.tool-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111827;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #F9FAFB;
}

.upload-area:hover {
    border-color: #2563EB;
    background-color: #EFF6FF;
}

.upload-area.drag-over {
    border-color: #16A34A;
    background-color: #F0FDF4;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563EB 0%, #16A34A 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #4B5563;
    font-size: 0.875rem;
}

/* Privacy Notice */
.privacy-notice {
    background-color: #EFF6FF;
    border-left: 4px solid #2563EB;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    color: #1E40AF;
    font-size: 0.875rem;
}

/* Filter Section */
.filter-section {
    margin: 2rem 0;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #E5E7EB;
    background-color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.filter-btn.active {
    background-color: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}

/* Search Box */
.search-box {
    margin-top: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563EB;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    background-color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563EB;
}

/* Results Container */
.results-container {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.export-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #2563EB;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #1E40AF;
}

.btn-secondary {
    background-color: #F3F4F6;
    color: #4B5563;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background-color: #E5E7EB;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

.results-table th {
    background-color: #F9FAFB;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #4B5563;
    border-bottom: 2px solid #E5E7EB;
    font-size: 0.875rem;
}

.results-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F3F4F6;
    color: #111827;
    font-size: 0.875rem;
}

.results-table tr:hover {
    background-color: #F9FAFB;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    background-color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4B5563;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #F3F4F6;
}

.page-btn.active {
    background-color: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
    background-color: #FFFFFF;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-article h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.content-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-article h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-article p {
    color: #4B5563;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-article ul,
.content-article ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4B5563;
}

.content-article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Sidebar */
.sidebar-card {
    background-color: #F9FAFB;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E5E7EB;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 0.5rem 0;
    color: #4B5563;
    border-bottom: 1px solid #E5E7EB;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.sidebar-card p {
    color: #4B5563;
    line-height: 1.6;
}

.sidebar-card a {
    color: #2563EB;
    text-decoration: none;
}

.sidebar-card a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #D1D5DB;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .navigation {
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .export-buttons {
        flex-direction: column;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }
}