/* Main Container */
#text-analyzer-app {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Card Styling */
.analyzer-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Drop Area */
.drop-area {
    border: 2px dashed #fb6222;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(251, 98, 34, 0.05);
}

.drop-area.active {
    background: rgba(251, 98, 34, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    width: 60px;
    height: 60px;
    fill: #fb6222;
    margin-bottom: 1rem;
}

.drop-area h3 {
    color: #2f3555;
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.drop-area p {
    color: #6c757d;
    margin: 0.5rem 0;
}

/* Buttons */
.browse-btn, .download-btn {
    background: #fb6222;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 1rem;
}

.browse-btn:hover, .download-btn:hover {
    background: #e0551a;
    transform: translateY(-2px);
}

.browse-btn:focus, .download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 98, 34, 0.4);
}

/* Results Section */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.results-section h2 {
    color: #2f3555;
    margin-top: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.result-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.result-card h3 {
    color: #6c757d;
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.result-card p {
    color: #2f3555;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    flex: 1;
    min-width: 200px;
}

/* History Section */
.history-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.history-section h2 {
    color: #2f3555;
    margin-top: 0;
}

#history-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

#history-list li {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 600px) {
    .analyzer-card {
        padding: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
    }
}