/* Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #3b82f6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --dark-gray: #475569;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-gray);
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #6a82fb !important;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Upload Section */
.upload-section {
    text-align: center;
}

.drop-area {
    border: 2px dashed var(--gray-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.drop-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.drop-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-area h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.file-types {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.file-input {
    display: none;
}

/* Results Section */
.results-section {
    display: none;
}

.file-info {
    margin-bottom: 1.5rem;
}

.file-info h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.file-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.content-viewer {
    background-color: var(--light-color);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.content-viewer pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    margin: 0.5rem;
    gap: 8px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
}

.secondary-btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.danger-btn {
    background-color: var(--danger-color);
    color: white;
}

.danger-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Status Message */
.status-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.status-message.success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    display: block;
}

.status-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    display: block;
}

/* Info Section */
.info-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.info-article h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.info-article p {
    margin-bottom: 1rem;
}

.info-article ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.info-article li {
    margin-bottom: 0.5rem;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.user-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.user-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.user-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.user-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Ad Styles */
.ad-banner {
    background-color: var(--light-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    text-align: center;
}

.ad-placeholder {
    padding: 2rem;
    background-color: var(--light-gray);
    color: var(--gray-color);
    border: 1px dashed var(--gray-color);
    border-radius: 5px;
}

.top-ad {
    margin-top: 1.5rem;
}

.inline-ad {
    margin: 2rem 0;
}

.sidebar-ad {
    display: none;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .action-buttons {
        justify-content: flex-start;
    }
    
    .sidebar-ad {
        display: block;
    }
}

@media (min-width: 992px) {
    .user-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}