/* =========================================
   ROOT VARIABLES (Code 1 + Code 2)
========================================= */
:root {
  --blue-start: #5c7fea;
  --gold-1: #ffb001;
  --orange: #ff7900;
  --gold-input: rgba(255, 187, 69, 0.18);
  --white: #ffffff;
  --btn-blue: #5777ea;
  --btn-blue-2: #7e95f0;
  --page-max: 420px;

  --orange-dark: #ff7900;
  --orange-light: #ffb001;
  --blue: #5c7fea;
  --muted: #fafafa;
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* =========================================
   GLOBAL RESET
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================
   BODY
========================================= */
.logo_body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(
    135deg,
    var(--blue-start) 0%,
    var(--gold-1) 55%,
    var(--orange) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
}

body {
  background-color: #f5f7fa;
}

/* =========================================
   LOGIN PAGE (Code 1)
========================================= */

.logo-form .login-page {
  width: 100%;
  max-width: var(--page-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Logo */
.logo-form .logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  margin-bottom: -35px;
  z-index: 10;
}

.logo-form .logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #ffd874 0%,
    #ffb84a 30%,
    #ff8c2e 60%
  );
  border: 6px solid rgba(26, 43, 94, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Login Card */
.logo-form .login-card {
  width: 150%;
  max-width: 420px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.04)
  );
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

/* Title */
.logo-form .title {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  font-size: clamp(24px, 5vw, 28px);
}

/* Inputs */
.logo-form .inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.logo-form .input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(14px, 4vw, 16px);
  outline: none;
  color: rgba(20, 20, 20, 0.85);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.logo-form .input--gold {
  background: var(--gold-input);
  color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(1px);
}

.logo-form .input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.logo-form .input:focus {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(92, 127, 234, 0.12);
  border-color: rgba(92, 127, 234, 0.35);
}

/* Button */
.logo-form .btn-login {
  width: 86%;
  max-width: 320px;
  padding: 0.9rem 1.1rem;
  border-radius: 2rem;
  border: none;
  font-weight: 700;
  font-size: clamp(14px, 4vw, 16px);
  letter-spacing: 1px;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(90deg, var(--btn-blue), var(--btn-blue-2));
  box-shadow: 0 0.875rem 1.875rem rgba(86, 118, 233, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
  text-transform: uppercase;
}

.logo-form .btn-login:active {
  transform: translateY(1px);
}

.logo-form .btn-login:focus {
  outline: none;
  box-shadow: 0 1.125rem 2.25rem rgba(86, 118, 233, 0.22);
}

/* Extra width container */
.logo-form .logo-form {
  width: 500px;
}

/* =========================================
   RESPONSIVE LOGIN PAGE
========================================= */
@media (min-width: 760px) {
  .logo-form .login-page {
    max-width: 520px;
  }
  .logo-form .login-card {
    padding: 2.5rem;
  }
}

@media (max-width: 420px) {
  .logo-form .login-card {
    padding: 1.5rem;
    gap: 1rem;
  }
  .logo-form .logo {
    width: 65px;
    height: 65px;
    margin-bottom: 5px;
  }
  .logo-form .title {
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;
  }
  .logo-form .input {
    padding: 0.4rem 0.6rem;
    font-size: 12px;
  }
  .logo-form .btn-login {
    padding: 0.5rem;
    font-size: 12px;
  }
  .logo-form .logo-form {
    width: 300px;
  }
}

/* =========================================
   ADMIN PANEL STYLES (Code 2)
========================================= */

.blue {
  background-color: var(--blue);
  color: var(--white);
}

/* Navbar */
.top-circle {
  background: linear-gradient(90deg, var(--orange-light), var(--orange-dark));
  border-bottom-left-radius: 200px;
  border-bottom-right-radius: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 320px) {
  .navbar > .container,
  .navbar > .container-fluid,
  .navbar > .container-lg,
  .navbar > .container-md,
  .navbar > .container-sm,
  .navbar > .container-xl,
  .navbar > .container-xxl {
    padding: 0 50px;
  }
}

/* Table */
.row > * {
  margin-top: 0 !important;
}

.navbar-toggler{
    color: rgb(255 255 255 / 80%) !important;
    border: var(--bs-border-width) solid rgb(255 255 255 / 80%) !important;
}

.mt-5,
.container.my-3 {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.container.my-3 {
  padding-bottom: 1px;
}

.TABLE .custom-table {
  width: 100%;
  border-collapse: collapse;
}

.TABLE .custom-table th,
.TABLE .custom-table td {
  padding: 12px;
  text-align: center;
}

.TABLE .custom-table th {
  background-color: #343a40;
  color: white;
}

.TABLE .custom-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.TABLE .h3 {
  font-weight: 700;
  color: #343a40;
}

@media (max-width: 770px) {
  .Search-end {
    margin-bottom: 1rem !important;
  }
  .col-md-2 .btn.btn-success.w-100 {
    margin-top: 15px !important;
  }
  .bottom-circle {
    position: fixed;      /* تثبيت العنصر */
    bottom: 0;            /* أسفل الصفحة */
    left: 0;              /* من اليسار */
    width: 100%;          /* عرض كامل الصفحة */
    height: 56px;
    background: linear-gradient(
      270deg,
      var(--orange-light),
      var(--orange-dark)
    );
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    z-index: 999;         /* فوق باقي العناصر */
  }

}

/* send.php */
.button {
  display: inline-block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-blue{
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--blue);
    --bs-btn-hover-border-color: var(--blue);
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--blue);
    --bs-btn-active-border-color: var(--blue);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--blue);
    --bs-btn-disabled-border-color: var(--blue);
}

.nav-item {
  margin-top: -4px;
}

.message-preview {
  width: 25%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.bg-message {
  --bs-bg-opacity: 1;
  background-color: rgb(173, 206, 254) !important;
}

.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-container {
  width: 100% !important;
}


.select2-container,
.form-control {
    width: 100% !important;
    background: #f5f5f5 !important;
    border-radius: 5px;
}

.select2-selection,
.form-control {
    background: #f5f5f5 !important;
    border: 1px solid #ced4da;
    border-radius: 5px;
}
.select2-container--default .select2-search--inline .select2-search__field {
    height: 20px !important;
}

.select2-container .select2-selection--single{
    height: 38px !important;
    border-color: #ced4da !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    line-height: 35px !important;
    height: 38px !important;
}
