.btn, .close-modal, .slider { cursor: pointer; } .word-counter-wrapper { width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); overflow: hidden; } .counter-header { background: #de333b; color: #fff; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } .counter-header h1 { font-size: 35px; font-weight: 600; margin-bottom: 10px; color: #fff; } .counter-header p { opacity: 0.9; font-size: 15.2px; } .header-controls { display: flex; gap: 15px; margin-top: 10px; } .stats-bar { display: flex; background: #f1f3f4; padding: 15px 30px; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; gap: 20px; } .stat-item { display: flex; align-items: center; font-size: 14.5px; } .stat-label { font-weight: 500; margin-right: 8px; color: #555; } .panel-title, .stat-value { font-weight: 600; color: #de333b; } .stat-value { min-width: 40px; } .word-count-main-content { display: flex; min-height: 500px; } .text-container { flex: 1; position: relative; padding: 0; border-right: 1px solid #e0e0e0; } .text-input { width: 100%; height: 100%; min-height: 400px; padding: 25px 30px; border: none; font-size: 16px; line-height: 1.7; resize: none; outline: 0; } .control-panels { width: 300px; background: #f8f9fa; padding: 20px; overflow-y: auto; max-height: 500px; } .panel { margin-bottom: 25px; } .panel-title { font-size: 16px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #e0e0e0; } .modal-body, .modal-header { margin-bottom: 20px; } .panel-content { display: flex; flex-direction: column; gap: 12px; } .switch-container { display: flex; justify-content: space-between; align-items: center; } .switch { position: relative; display: inline-block; width: 50px; height: 24px; } .slider, .slider:before { position: absolute; transition: 0.4s; } .btn, .button-group { display: flex; gap: 8px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 24px; } .slider:before { content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: #fff; border-radius: 50%; } .word-counter-wrapper input:checked + .slider { background-color: #de333b; } .word-counter-wrapper input:checked + .slider:before { transform: translateX(26px); } .btn { padding: 10px 15px; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; transition: 0.3s; align-items: center; justify-content: center; } .btn-primary { background: #de333b; color: #fff; } .btn-primary:hover { background: #c52a32; } .btn-secondary { background: #fff; color: #555; border: 1px solid #ddd; } .btn-secondary:hover { background: #f5f5f5; } .btn-small { padding: 6px 12px; font-size: 13px; } .button-group { flex-wrap: wrap; } .counter-footer { padding: 15px 30px; text-align: center; background: #f1f3f4; color: #666; font-size: 16px; border-top: 1px solid #e0e0e0; } .counter-footer p { margin: 0; } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; } .modal-content { background: #fff; border-radius: 8px; padding: 25px; width: 90%; max-width: 500px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .modal-header { display: flex; justify-content: space-between; align-items: center; } .modal-title { font-size: 19.2px; font-weight: 600; color: #de333b; } .close-modal { background: 0 0; border: none; font-size: 24px; color: #777; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: 500; } .form-control { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .progress-container { margin-top: 15px; } .progress-bar { height: 10px; background: #e0e0e0; border-radius: 5px; overflow: hidden; } .progress { height: 100%; background: #de333b; width: 0%; transition: width 0.3s; } .progress-text { font-size: 12.8px; margin-top: 5px; text-align: center; } .word-counter-wrapper button:hover { border-color: gray !important; color: red; } #save-btn:hover { color: #fff; } @media (max-width: 900px) { .word-count-main-content { flex-direction: column; } .control-panels { width: 100%; max-height: none; } .text-container { border-right: none; border-bottom: 1px solid #e0e0e0; } } @media (max-width: 600px) { .counter-header { padding: 15px 20px; } .counter-header h1 { font-size: 28px; } .stats-bar { padding: 12px 20px; } .text-input { padding: 20px; } }