

@import 'https://fonts.googleapis.com/css?family=Montserrat:300,400,700';

body {
  padding: 0 2em;
  font-family: Montserrat, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #444;
  background: #eee;
}

h1 {
  font-weight: normal;
  letter-spacing: -1px;
  color: #34495E;
}

.rwd-table {
  background: #34495E;
  color: #fff;
  border-radius: .4em;
  overflow: hidden;
  tr {
    border-color: lighten(#34495E, 10%);
  }
  th, td {
    margin: .5em 1em;
    @media (min-width: $breakpoint-alpha) { 
      padding: 1em !important; 
    }
  }
  th, td:before {
    color: #dd5;
  }
}
* {
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
  transition: all 0.25s ease;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  direction: rtl;
  text-align: center;
  color: #1e293b;
}

/* ===== CONTAINER ===== */
.container {
  background: #ffffff;
  width: 90%;
  max-width: 800px;
  margin: 50px auto;
  border-radius: 18px;
  padding: 40px 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: right;
  border-top: 6px solid #2563eb;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  border-top-right-radius: 18px;
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
  color: #1e3a8a;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}

h1 { font-size: 2.3em; }
h2 { font-size: 2em; }
h3 { font-size: 1.6em; }

/* ===== FORM LABELS ===== */
label {
  display: block;
  font-size: 1.1em;
  color: #334155;
  font-weight: 600;
  margin: 20px 0 8px;
  position: relative;
  padding-right: 5px;
}

label::after {
  content: "•";
  color: #2563eb;
  margin-right: 4px;
  font-weight: bold;
}

/* ===== INPUTS / SELECTS / TEXTAREAS ===== */
input, select, textarea {
  width: 50%;
  padding: 14px 16px;
  border: 1.8px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 1.05em;
  color: #1e293b;
  text-align: right;
  direction: rtl;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* ===== INPUT FOCUS EFFECT ===== */
input:focus, select:focus, textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
  background: #ffffff;
}

/* ===== INPUT HOVER EFFECT ===== */
input:hover, select:hover, textarea:hover {
  border-color: #93c5fd;
}

/* ===== BUTTONS ===== */
button, .btn {
  display: inline-block;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn.red {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.btn.red:hover {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* ===== FORM WRAPPER ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== MESSAGE BOXES ===== */
.msg {
  text-align: center;
  font-size: 1.15em;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  margin: 20px auto;
  width: 80%;
}

.msg.success {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #86efac;
}

.msg.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ===== TOPBAR ===== */
.topbar {
  text-align: center;
  margin-bottom: 30px;
}

.topbar h2 {
  color: #1e3a8a;
  margin-bottom: 15px;
}

.topbar .btn {
  margin: 5px;
}

/* ===== INPUT GROUP (LABEL + FIELD INLINE SUPPORT) ===== */
.input-group {
  display: flex;
  flex-direction: column;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 700px) {
  .container {
    width: 95%;
    padding: 25px 20px;
  }

  h1, h2, h3 {
    font-size: 1.5em;
  }

  input, select, textarea {
    font-size: 1em;
  }

  button, .btn {
    width: 50%;
    padding: 14px;
  }
}
table{
    align-content
}
