 :root {
            --primary: #07859b;
            --primary-light: #0aa5c0;
            --primary-dark: #02404b;
            --accent: #f8be2e;
            --light: #ffffff;
            --gray: #f5f7fa;
            --dark: #333333;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --radius: 12px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            color: var(--dark);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            width: 100%;
            background: var(--light);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .tool-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--light);
            padding: 25px 30px;
            text-align: center;
        }

        h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 30px;
        }

        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }

        .input-section, .stats-section {
            background: var(--light);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 25px;
        }

        .text-input {
            width: 100%;
            min-height: 300px;
            padding: 20px;
            border: 2px solid #e9ecef;
            border-radius: var(--radius);
            font-size: 1rem;
            resize: vertical;
            transition: var(--transition);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .text-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(7, 133, 155, 0.2);
        }

        .button-group {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        button {
            padding: 12px 20px;
            border: none;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .primary-btn {
            background: var(--primary);
            color: var(--light);
            flex: 1;
        }

        .primary-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(7, 133, 155, 0.3);
        }

        .secondary-btn {
            background: var(--gray);
            color: var(--dark);
            border: 1px solid #ddd;
        }

        .secondary-btn:hover {
            background: #e9ecef;
        }

        .progress-container {
            margin-top: 20px;
        }

        .progress-bar {
            height: 10px;
            background: #e9ecef;
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(to right, var(--primary), var(--accent));
            width: 0%;
            transition: width 0.5s ease;
        }

        .progress-text {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--dark);
            opacity: 0.7;
        }

        /* Stats Section */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 25px;
        }

        .stat-card {
            background: var(--gray);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            transition: var(--transition);
            border-left: 4px solid var(--primary);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }

        .stat-value {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 5px;
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--dark);
            opacity: 0.7;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .additional-stats {
            background: var(--gray);
            border-radius: var(--radius);
            padding: 20px;
        }

        .additional-stats h3 {
            margin-bottom: 15px;
            color: var(--primary-dark);
            font-size: 1.2rem;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 8px;
        }

        .stats-list {
            list-style: none;
        }

        .stats-list li {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .stats-list li:last-child {
            border-bottom: none;
        }

        .stat-name {
            color: var(--dark);
        }

        .stat-result {
            font-weight: 600;
            color: var(--primary);
        }

        .tool-footer {
            text-align: center;
            padding: 20px;
            background: var(--gray);
            color: var(--dark);
            font-size: 0.9rem;
            opacity: 0.7;
        }