/* css/style.css - modern UI for Urdu Word Counter */

.uwc-container{
  box-sizing: border-box;
  max-width: 720px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Arial", sans-serif;
}

.uwc-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  margin-bottom:8px;
  color:#222;
}

.uwc-label .fa-pen-nib{
  color:#4f46e5;
  font-size:16px;
}

.uwc-textarea{
  width:100%;
  min-height:120px;
  resize:vertical;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:16px;
  line-height:1.8;
  direction: rtl; /* Urdu is right-to-left */
  text-align: right;
  background: #fbfbff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.uwc-textarea:focus{
  border-color:#7c3aed;
  box-shadow:0 6px 18px rgba(124,58,237,0.08);
}

/* bottom row */
.uwc-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}

.uwc-stats{
  display:flex;
  gap:14px;
  align-items:center;
  font-size:14px;
  color:#333;
}

.uwc-stat i{
  margin-right:6px;
  color:#6b7280;
}

.uwc-stat strong{
  margin-left:6px;
  font-weight:700;
  color:#111827;
}

/* actions */
.uwc-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.uwc-btn{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:8px;
  border: none;
  background: #f3f4f6;
  cursor:pointer;
  font-size:14px;
  color:#111827;
  transition: transform .06s ease, background .12s ease;
}

.uwc-btn i{
  font-size:14px;
  color:#374151;
}

.uwc-btn:hover{
  transform: translateY(-1px);
  background:#eef2ff;
}

.uwc-btn:active{
  transform: translateY(0);
}

/* responsive */
@media (max-width:480px){
  .uwc-container{
    padding:12px;
  }
  .uwc-stats{
    width:100%;
    justify-content:space-between;
  }
  .uwc-actions{
    width:100%;
    justify-content:flex-start;
    margin-top:6px;
  }
}
