/* =========================================
   FADILA BARBER – CLEAN WHITE & BLUE
========================================= */

:root {
  --blue: #1667d9;
  --blue-dark: #0f4ea8;
  --blue-light: #eaf3ff;
  --text: #172033;
  --muted: #667085;
  --white: #ffffff;
  --border: #d8e1ee;
  --radius: 16px;
  --blue-shadow: 0 18px 50px rgba(22, 103, 217, 0.24),
                 0 0 0 1px rgba(22, 103, 217, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  position: relative;
  min-height: 100vh;
  padding-right: 22px;
  overflow-x: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22px;
  border-left: 1px solid rgba(15, 78, 168, 0.18);
  box-shadow: -3px 0 12px rgba(22, 103, 217, 0.10);
  background: repeating-linear-gradient(
    135deg,
    #df2638 0,
    #df2638 15px,
    #ffffff 15px,
    #ffffff 30px,
    #1769d2 30px,
    #1769d2 45px,
    #ffffff 45px,
    #ffffff 60px
  );
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 30px 20px 44px;
}

header {
  text-align: center;
  margin-bottom: 26px;
}

body > header {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.logo {
  margin-bottom: 10px;
  font-size: 60px;
}

header h1 {
  color: var(--blue-dark);
  font-size: 34px;
  font-weight: 750;
  letter-spacing: 2px;
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

main {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(22, 103, 217, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--blue-shadow);
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #0f4ea8, #2d8cff, #0f4ea8);
}

form h2 {
  margin-bottom: 25px;
  color: var(--blue-dark);
  text-align: center;
  font-size: 23px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #26354d;
  font-size: 14px;
  font-weight: 650;
}

.form-group small,
#availableMessage {
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #98a2b3;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 103, 217, 0.13);
}

select option {
  background: #ffffff;
  color: var(--text);
}

select:disabled,
input:disabled {
  background: #f3f6fa;
  color: #8a94a6;
}

#servicePriceDisplay {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
}

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-dark), #2584ef);
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 103, 217, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 103, 217, 0.32);
}

button:active {
  transform: translateY(0);
}

.admin-btn {
  width: auto;
  padding: 9px 16px;
  border: 1px solid #c9d8ed;
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 5px 16px rgba(22, 103, 217, 0.12);
  font-size: 13px;
}

#messageBox {
  display: none;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}

#messageBox.success {
  display: block;
  border: 1px solid #5fc57a;
  background: #edfff2;
  color: #217a38;
}

#messageBox.error {
  display: block;
  border: 1px solid #ec6b6b;
  background: #fff1f1;
  color: #b42318;
}

.success-banner {
  display: none;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #5fc57a;
  border-radius: 8px;
  background: #edfff2;
  color: #217a38;
  text-align: center;
  font-size: 14px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-actions {
  margin-top: 10px;
  text-align: center;
}

.gallery-link {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
}

.gallery-link:hover {
  background: var(--blue);
  color: #ffffff;
}

.main-header {
  width: 100%;
  text-align: center;
}

.logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 300px;
}

.logo-img {
  display: block;
  width: 300px;
  height: 300px;
  max-width: none;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.04);
}

footer {
  margin-top: 40px;
  color: #7b8494;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 600px) {
  body {
    padding-right: 14px;
  }

  body::after {
    width: 14px;
    background-size: auto;
  }

  body > header {
    padding: 12px 14px 0;
  }

  .container {
    padding: 20px 14px 36px;
  }

  main {
    padding: 27px 21px;
    border-radius: 14px;
  }

  header h1 {
    font-size: 26px;
  }

  button {
    padding: 13px;
  }
}
