
:root{
  --primary: #00ff88;
  --green: #15ff00;
  --red: #ff1007;
}

body {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
  direction: ltr;
  /* overflow: hidden; */
}

main {
  background: #252525;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  max-width: 600px;
  width: 100%;
  transition: all 0.3s ease;
}

.headerTiTle {
  display: block;  
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.3rem;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 700;
}

.pattern-box, .text-box {
  background: #333;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,255,136,0.05);
}

.pattern-box label, .text-box label {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

#regexInput, #textInput {
  width: 85%;
  padding: 0.8rem;
  font-size: 1.1rem;
  border: 2px solid #3a3a3a;
  border-radius: 8px;
  background: #222;
  color: #fff;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  text-align: left;
  direction: ltr;
}

#regexInput:focus, #textInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.18);
}

#currentPattern {
  color: var(--primary);
  font-size: 1.1rem;
  display: block;
  margin-top: 0.3rem;
  word-break: break-all;
  text-align: left;
}

.controls {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

button {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 7px;
  background: #3a3a3a;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,255,136,0.05);
}

button:hover {
  background: var(--primary);
  color: #1a1a1a;
}

.result {
  width: 94.2%;
  font-size: 1.18rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-top: 1rem;
  min-height: 60px;
  background: #232526;
  transition: background 0.3s, color 0.3s;
  word-break: break-word;
  text-align: left;
  direction: ltr;
}

.match {
  background-color: #0d912e4e;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.notMatch {
  background-color: #91270d4e;
  color: var(--red);
  border: 1.5px solid var(--red);
}
