* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

.menu-bar {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 32px;
    height: 32px;
}

.logo span {
    font-size: 1.2em;
    font-weight: bold;
}

.menu-items {
    display: flex;
    gap: 10px;
}

.menu-items button {
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-items button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.toolbar {
    background-color: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-group {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 5px;
    border-right: 1px solid #dee2e6;
}

.tool-group:last-child {
    border-right: none;
}

button {
    padding: 8px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #e9ecef;
}

button:active {
    background-color: #dee2e6;
}

select {
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#editor {
    min-height: 500px;
    padding: 20px;
    outline: none;
    overflow-y: auto;
    line-height: 1.6;
}

#editor:focus {
    background-color: #fff;
}

.word-counter {
    padding: 10px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

/* Find and Replace Dialog */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dialog-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.dialog-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog-body input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dialog-buttons button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
}

.dialog-buttons button:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    .toolbar {
        padding: 5px;
    }
    
    .tool-group {
        padding: 2px;
    }
    
    button {
        padding: 6px;
    }
    
    select {
        max-width: 100px;
    }
    
    .menu-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .menu-items {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    line-height: 1.6;
    font-size: 1.2em;
}

.section-top {
     color: #000;
    line-height: 1.6;
    font-size: 1.2em;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section-top {
    width: 90%;      /* Reduced width for tablets */
  }
}

@media (max-width: 480px) {
  .section-top {
    width: 95%;      /* Further reduced width for mobile phones */
  }
}

@media (max-width: 768px) {
  section-top p {
    width: 90%;      /* Reduced width for tablets and mobile devices */
  }
}

@media (max-width: 480px) {
  section-top p {
    width: 95%;      /* Further reduced width for smaller screens */
  }
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    padding: 60px 20px;
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.stat-label {
    font-size: 1.2em;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-content p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.2em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cta-button i {
    margin-right: 10px;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p {
    color: #b8c2cc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    color: #b8c2cc;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-section ul li:before {
    content: "✓";
    color: #4CAF50;
    margin-right: 8px;
}

.footer-section ul li a {
    color: #b8c2cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.footer-bottom p {
    color: #b8c2cc;
    font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-content h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
