:root {
    --primary-color: #002147;
    --primary-light: #e6eaef;
    --secondary-color: #fdc800;
    --light-bg: #f8f9fa;
    --pastel-blue: #e6eaef;
    --pastel-yellow: #fff9e6;
    --border-radius: 10px;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease;
}

.wc-container111208 {
    max-width: 1300px;
    margin: 0 auto;
}

.wc-input-panel111208 {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.wc-stats-panel111208 {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wc-stats-number111208 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.wc-stats-label111208 {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wc-divider111208 {
    border-top: 1px solid #e9ecef;
    margin: 20px 0;
    transition: border-color 0.3s ease;
}

.wc-additional-stat111208 {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 15px;
}

.wc-additional-stat111208 .wc-stat-label111208 {
    display: flex;
    align-items: center;
    color: #343a40;
    transition: color 0.3s ease;
}

.wc-additional-stat111208 .wc-stat-value111208 {
    font-weight: 500;
    color: #343a40;
    transition: color 0.3s ease;
}

.wc-info-icon111208 {
    color: #6c757d;
    cursor: pointer;
    margin-left: 5px;
    font-size: 14px;
}

.wc-textarea-wrapper111208 {
    position: relative;
    height: 350px;
}

.wc-textarea111208 {
    resize: none;
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    width: 100%;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    background-color: transparent;
}

.wc-textarea111208:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.wc-textarea-clear111208 {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wc-textarea-copy111208 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.wc-btn-icon111208 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wc-btn-icon111208:hover {
    background-color: #f8f9fa;
    color: #343a40;
}

.wc-btn-paste111208 {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid;
}

.wc-btn-paste111208:hover {
    background-color: var(--primary-color);
    color: white;
}

.wc-btn-paste111208 i {
    margin-right: 8px;
}

.wc-social-progress111208 {
    margin: 25px 0 15px;
}

.wc-social-icon111208 {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #343a40;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.wc-progress111208 {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.wc-progress-bar111208 {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: var(--primary-color);
}

.wc-progress-bar111208.warning {
    background-color: var(--secondary-color);
}

.wc-progress-bar111208.danger {
    background-color: #dc3545;
}

.wc-character-labels111208 {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    padding: 0 2px;
    margin-top: 5px;
}

.wc-action-buttons111208 {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.wc-btn-action111208 {
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: 1px solid;
    cursor: pointer;
}

.wc-btn-icon2111208 {
    margin-right: 8px;
    font-size: 18px;
}

.wc-btn-paraphrase111208 {
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.wc-btn-paraphrase111208:hover {
    background-color: var(--primary-color);
    color: white;
}

.wc-btn-grammar111208 {
    background-color: white;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.wc-btn-grammar111208:hover {
    background-color: var(--secondary-color);
    color: white;
}

.wc-arrow-icon111208 {
    margin-left: auto;
}

.wc-tooltip-container111208 {
    position: relative;
    display: inline-block;
}

.wc-tooltip-box111208 {
    position: absolute;
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 100;
    width: 200px;
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    opacity: 0;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    font-size: 12px;
}

.wc-tooltip-container111208:hover .wc-tooltip-box111208 {
    visibility: visible;
    opacity: 1;
}

.wc-tooltip-box111208::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.wc-floating-counter111208 {
    position: absolute;
    top: 10px;
    right: 50px;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 10;
}

.wc-textarea-tooltip111208 {
    position: absolute;
    background: white;
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    z-index: 100;
    transform: translateY(10px);
    display: none;
    max-width: 300px;
    bottom: 20px;
    right: 50px;
}

/* Mode Toggle Buttons */
.wc-mode-toggle111208 {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wc-mode-btn111208 {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc-mode-btn111208.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Reading progress indicator */
.wc-reading-indicator111208 {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.wc-reading-progress111208 {
    position: absolute;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* Target counter */
.wc-target-counter111208 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: var(--primary-light);
    flex-wrap: wrap;
}

.wc-target-input111208 {
    width: 80px;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.wc-target-progress111208 {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    min-width: 100px;
}

.wc-target-bar111208 {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Robot character */
.wc-robot-container111208 {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Achievement notification */
.wc-achievement111208 {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.wc-achievement111208.show {
    transform: translateX(0);
}

.wc-achievement-icon111208 {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.wc-achievement-text111208 {
    flex: 1;
}

.wc-achievement-title111208 {
    font-weight: 600;
    margin: 0;
}

.wc-achievement-desc111208 {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

/* Theme switcher */
.wc-themes-container111208 {
    display: flex;
    gap: 5px;
}

.wc-theme-circle111208 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    transition: transform 0.2s ease;
}

.wc-theme-circle111208:hover {
    transform: scale(1.2);
}

.wc-theme-circle111208.active {
    border-color: #333;
}

.wc-keyword-highlight111208 {
    position: absolute;
    right: 10px;
    bottom: 50px;
    z-index: 10;
}

/* Confetti animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    display: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 30px;
    top: -20px;
    opacity: 0;
}

@keyframes fall {
    0% {
        opacity: 1;
        top: -20px;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        opacity: 0.3;
        top: 100vh;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Dark mode theme */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme .wc-input-panel111208,
body.dark-theme .wc-stats-panel111208 {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.dark-theme .wc-textarea111208 {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-theme .wc-stats-number111208 {
    color: var(--secondary-color);
}

body.dark-theme .wc-stats-label111208,
body.dark-theme .wc-additional-stat111208 .wc-stat-label111208,
body.dark-theme .wc-additional-stat111208 .wc-stat-value111208 {
    color: #b0b0b0;
}

body.dark-theme .wc-divider111208 {
    border-color: #444;
}

body.dark-theme .wc-btn-icon111208 {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-theme .wc-social-icon111208 {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-theme .wc-tooltip-box111208 {
    background: #333;
    color: #e0e0e0;
}

body.dark-theme .wc-tooltip-box111208::after {
    border-color: #333 transparent transparent transparent;
}

body.dark-theme .wc-character-labels111208 {
    color: #b0b0b0;
}

body.dark-theme .wc-textarea-tooltip111208,
body.dark-theme .wc-floating-counter111208 {
    background: #333;
    color: #e0e0e0;
}

body.dark-theme .wc-target-counter111208 {
    background-color: rgba(0, 33, 71, 0.2);
}

body.dark-theme .wc-mode-btn111208 {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-theme .wc-achievement111208 {
    background: #333;
    color: #e0e0e0;
}

/* Amber theme */
body.amber-theme {
    --primary-color: #fdc800;
    --primary-light: #fff9e6;
    --secondary-color: #002147;
    background-color: #fffcf0;
}

body.amber-theme .wc-stats-number111208 {
    color: var(--primary-color);
}

body.amber-theme .wc-btn-paste111208,
body.amber-theme .wc-btn-paraphrase111208 {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.amber-theme .wc-btn-paste111208:hover,
body.amber-theme .wc-btn-paraphrase111208:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

body.amber-theme .wc-target-counter111208 {
    background-color: #fff9e6;
}

body.amber-theme .wc-target-bar111208 {
    background: var(--primary-color);
}

body.amber-theme .wc-reading-progress111208 {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

body.amber-theme .wc-mode-btn111208.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Textarea backdrop for highlighting */
.wc-textarea-backdrop111208 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    color: transparent;
    z-index: 1;
}

.wc-textarea-highlight111208 {
    background: rgba(253, 200, 0, 0.2);
    border-radius: 3px;
}

/* Focus mode */
body.focus-mode .wc-input-panel111208 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    padding: 50px;
    border-radius: 0;
}

body.focus-mode .wc-textarea-wrapper111208 {
    height: calc(100% - 100px);
}

body.focus-mode .wc-exit-focus111208 {
    display: block;
}

.wc-exit-focus111208 {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.wc-hidden {
    display: none !important;
}

/* Reading estimate */
.wc-reading-estimate111208 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wc-reading-waves111208 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.wc-wave111208 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-31.8z' fill='rgba(0, 33, 71, 0.1)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Toggle switch */
.wc-toggle-switch111208 {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.wc-toggle-switch111208 input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wc-toggle-slider111208 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.wc-toggle-slider111208:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .wc-toggle-slider111208 {
    background-color: var(--primary-color);
}

input:checked + .wc-toggle-slider111208:before {
    transform: translateX(26px);
}

.wc-toggle-label111208 {
    font-size: 14px;
    margin-left: 10px;
    color: #6c757d;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Pomodoro timer styles */
.wc-pomodoro111208 {
    text-align: center;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    background-color: var(--primary-light);
    transition: all 0.3s ease;
}

.wc-pomodoro-time111208 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.wc-pomodoro-controls111208 {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wc-pomodoro-btn111208 {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s ease;
}

.wc-pomodoro-start111208 {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.wc-pomodoro-pause111208,
.wc-pomodoro-reset111208 {
    background-color: transparent;
    color: #6c757d;
    border-color: #dee2e6;
}

.wc-pomodoro-pause111208:hover,
.wc-pomodoro-reset111208:hover {
    background-color: #f8f9fa;
}

/* Typewriter effect */
.wc-typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    margin: 0 auto;
    width: fit-content;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}