*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}

body{
background:#f7f9ff;
padding-top:90px;
}

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 8%;

    background:rgba(255,255,255,.9);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(0,0,0,.05);

    box-shadow:0 5px 20px rgba(0,0,0,.06);
}
header.scrolled{
    padding:12px 8%;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}
.logo{
font-size:30px;
font-weight:700;
background:linear-gradient(90deg,#ff3b3b,#2563eb);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

nav a{
text-decoration:none;
margin-left:25px;
color:#333;
font-weight:500;
}

.hero{
padding:80px 8%;
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:center;
}

.hero h1{
font-size:60px;
line-height:1.2;
margin-bottom:20px;
}

.hero p{
font-size:18px;
color:#666;
margin-bottom:30px;
}

#startBtn{
background:linear-gradient(
90deg,
#ff4b4b,
#2563eb
);
color:#fff;
border:none;
padding:15px 35px;
border-radius:10px;
cursor:pointer;
font-size:16px;
}

.hero-right{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.feature-card{
background:#fff;
padding:25px;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.editor{
padding:80px 8%;
}

.editor h2{
margin-bottom:30px;
text-align:center;
}

.tool-actions{
display:flex;
justify-content:center;
gap:15px;
margin-bottom:25px;
}

.tool-btn{
padding:12px 20px;
border:none;
cursor:pointer;
border-radius:10px;
background:#e5e7eb;
}

.tool-btn.active{
background:linear-gradient(
90deg,
#ff4b4b,
#2563eb
);
color:#fff;
}

.editor-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.box{
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

/* Styling for the custom output container */
.quillbot-output-display {
    width: 100%;
    height: 350px; /* Match your existing textarea height layout */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    overflow-y: auto;
    background-color: #fff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000; /* Unchanged words are default black */
    white-space: pre-wrap; /* Keeps line breaks and spaces structural */
}

/* Base placeholder rule for contenteditable div blocks */
.quillbot-output-display:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}

/* QuillBot color scheme classes */
.qb-changed-blue {
    color: #0066cc !important;
    font-weight: 500;
}

.qb-deleted-red {
    color: #cc3333 !important;
    text-decoration: line-through;
    opacity: 0.85;
    margin-right: 2px;
}
textarea{
width:100%;
height:300px;
border:none;
resize:none;
outline:none;
font-size:15px;
}

.counter{
margin-top:10px;
color:#666;
}

.buttons{
margin-top:25px;
display:flex;
justify-content:center;
gap:20px;
}

.buttons button{
padding:15px 30px;
border:none;
border-radius:10px;
cursor:pointer;
background:linear-gradient(
90deg,
#ff4b4b,
#2563eb
);
color:white;
}

@media(max-width:768px){

.hero{
grid-template-columns:1fr;
}

.editor-grid{
grid-template-columns:1fr;
}

.hero h1{
font-size:40px;
}

}