/* Word Counter Tool Styles */
.word-counter-tool-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #eeeeee;
    border: 1px solid #bbbbbb;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    color: #000000;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Header Styles */
.word-counter-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #bbbbbb;
}

.title-section .tool-main-title {
    color: #1976ea;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-section .main-title {
    color: #333333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.title-section .subtitle {
    color: #666666;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* Main Content Layout */
.word-counter-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Input Section - Larger */
.input-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
    height: fit-content;
}

.word-counter-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #bbbbbb;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    min-height: 350px;
    margin-bottom: 15px;
    box-sizing: border-box;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.word-counter-textarea:focus {
    outline: none;
    border-color: #1976ea;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(25, 118, 234, 0.3);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex: 1;
}

.copy-btn {
    background-color: #1976ea;
}

.copy-btn:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

.clear-btn {
    background-color: #666666;
}

.clear-btn:hover {
    background-color: #555555;
    transform: translateY(-1px);
}

/* Results Section - Smaller */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cards Common Styles - Smaller Padding */
.details-card,
.additional-details-card,
.keyword-card,
.activities-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
}

.card-title {
    color: #1976ea;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

/* Details List - Tighter */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: #1976ea;
    font-weight: 600;
    font-size: 0.9rem;
}

.more-item .detail-value {
    color: #666666;
}

.issue-item .detail-value {
    color: #ff4444;
}

/* Additional Details Card */
.additional-details-card {
    background-color: #f8f9fa;
    border-left: 4px solid #219b92;
}

.additional-details-card .card-title {
    color: #219b92;
}

/* Keyword Density - Smaller */
.keyword-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background-color: #f5f5f5;
    padding: 3px;
    border-radius: 4px;
}

.keyword-tab {
    flex: 1;
    padding: 5px 10px;
    border: none;
    background: transparent;
    color: #666666;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.keyword-tab.active {
    background-color: #1976ea;
    color: white;
}

.keyword-tab:hover:not(.active) {
    background-color: #e0e0e0;
}

.keyword-results {
    min-height: 50px;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.keyword-item:hover {
    background-color: #f9f9f9;
}

.keyword-item:last-child {
    border-bottom: none;
}

.keyword-text {
    color: #000000;
    font-weight: 500;
    font-size: 0.85rem;
}

.keyword-stats {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.keyword-count {
    color: #666666;
}

.keyword-percentage {
    color: #1976ea;
    font-weight: 600;
}

.no-keywords {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 15px;
    font-size: 0.85rem;
}

/* Save Button - Smaller */
.save-btn {
    width: 100%;
    padding: 10px;
    background-color: #1976ea;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

/* Activities Card - Smaller */
.activities-desc {
    color: #000000;
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.activity-btn {
    width: 100%;
    padding: 10px;
    background-color: #1976ea;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-btn:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

/* Info Section */
.info-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bbbbbb;
    margin-top: 20px;
    box-sizing: border-box;
}

.info-section p {
    color: #000000;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Notification Styles */
.word-counter-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #28a745;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-family: 'Manrope', sans-serif;
    max-width: 300px;
}

.word-counter-notification.show {
    transform: translateX(0);
}

.word-counter-notification.error {
    background-color: #dc3545;
}

.word-counter-notification.warning {
    background-color: #ffc107;
    color: #000000;
}

.word-counter-notification.info {
    background-color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .word-counter-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .title-section .tool-main-title {
        font-size: 2rem;
    }
    
    .title-section .main-title {
        font-size: 1.5rem;
    }
    
    .title-section .subtitle {
        font-size: 1rem;
    }
    
    .word-counter-textarea {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .word-counter-tool-container {
        padding: 15px;
        margin: 10px;
    }
    
    .input-section {
        padding: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .word-counter-textarea {
        min-height: 250px;
        font-size: 14px;
    }
    
    .title-section .tool-main-title {
        font-size: 1.8rem;
    }
    
    .title-section .main-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .title-section .tool-main-title {
        font-size: 1.5rem;
    }
    
    .title-section .main-title {
        font-size: 1.1rem;
    }
    
    .title-section .subtitle {
        font-size: 0.9rem;
    }
    
    .input-section {
        padding: 12px;
    }
    
    .word-counter-textarea {
        padding: 12px;
        font-size: 14px;
        min-height: 200px;
    }
    
    .details-card,
    .additional-details-card,
    .keyword-card,
    .activities-card {
        padding: 12px;
    }
    
    .keyword-tabs {
        flex-wrap: wrap;
    }
    
    .keyword-tab {
        flex: 1 0 30%;
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .detail-label {
        font-size: 0.85rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}