:root {
    --primary-color: #4e73df;
    --secondary-color: #6f42c1;
    --success-color: #1cc88a;
    --light-bg: #f8f9fc;
    --dark-bg: #2e3a59;
}

body {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    /*padding-bottom: 40px;*/
}

.navbar {
    /*background: linear-gradient(90deg, var(--dark-bg) 0%, var(--primary-color) 100%);*/
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

/*.card {*/
/*    border-radius: 12px;*/
/*    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);*/
/*    border: none;*/
/*    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*    margin-bottom: 25px;*/
/*    background-color: #ffffff;*/
/*}*/

/*.card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.card-header {*/
/*    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);*/
/*    color: white;*/
/*    border-radius: 12px 12px 0 0 !important;*/
/*    padding: 15px 20px;*/
/*    font-weight: 600;*/
/*    font-size: 1.2rem;*/
/*}*/

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 66, 193, 0.4);
}

.btn-outline-secondary {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
}

.stat-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.result-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    padding: 15px;
    background-color: var(--light-bg);
}

.word-item, .char-item {
    padding: 8px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.word-item:hover, .char-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.word-text, .char-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.word-count, .char-count {
    background-color: var(--success-color);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.progress {
    height: 8px;
    border-radius: 4px;
    margin-top: 5px;
}

.highlight {
    background-color: rgba(78, 115, 223, 0.15);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    border-radius: 12px 12px 0 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

textarea {
    min-height: 180px;
    border-radius: 10px !important;
    padding: 15px !important;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--dark-bg);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-group {
        width: 100%;
    }
}