/* Modern CSS for Word Counter Tool - White Background */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;  /* Light gray background instead of blue */
    min-height: 100vh;
    padding: 20px;
    color: #2d3748;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;  /* Dark text instead of white */
}

header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a202c;  /* Dark heading */
}

.subtitle {
    font-size: 1.2em;
    color: #4a5568;  /* Medium gray text */
    font-weight: 300;
}

/* Main Tool Card */
.tool-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);  /* Lighter shadow */
    border: 1px solid #e2e8f0;  /* Light border */
    margin-bottom: 40px;
}

/* Input Area */
.input-area {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea::placeholder {
    color: #a0aec0;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8fafc;  /* Light background */
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #667eea;
    background: #ffffff;
}

.stat-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-right: 15px;
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #64748b;  /* Lighter text */
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;  /* Dark text */
    line-height: 1;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: #667eea;
}

/* Text Statistics */
.text-stats, .readability-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: #64748b;
    font-size: 14px;
}

.stat-row span:last-child {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

/* Frequent Words */
.frequent-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.word-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.word-tag .count {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.no-data {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-purple {
    background: #8b5cf6;
    color: white;
}

.btn-purple:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    margin-bottom: 40px;
}

.features h2 {
    text-align: center;
    color: #1e293b;  /* Dark text */
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    border-color: #667eea;
}

.feature i {
    font-size: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e293b;
}

.feature p {
    color: #64748b;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    text-align: center;
    color: #1e293b;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e293b;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #64748b;  /* Medium gray text */
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .features h2, .faq-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card, .feature, .faq-item {
    animation: fadeIn 0.5s ease forwards;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #ef4444;
}

.toast i {
    margin-right: 10px;
}