.containers1 {
    border: 2px dashed #ced4da;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
     box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.textarea-container {
    position: relative;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-size: 16px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

.limit-progress {
    margin-top: 10px;
}

#charLimitCount {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

#progressFill {
    width: 0;
    height: 100%;
    background: #3498db;
    transition: width 0.3s, background 0.3s;
}

#progressFill.warning {
    background: #e67e22;
}

#progressFill.exceeded {
    background: #e74c3c;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
}

.stat-card span:nth-child(2) {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    background: #3498db;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* Keyword Density */
.keyword-density {
    margin-top: 20px;
}

.keyword-density h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

#keywordList {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

#keywordList li {
    padding: 5px 0;
    font-size: 14px;
    color: #333;
}
