/* common.css */

/* General layout */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #b347be, #7872d6, #32b2f3);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
  
  /* Header */
  .company-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  .company-header img {
    width: 80px;
    height: auto;
    margin-right: 10px;
    transition: opacity 0.3s;
    cursor: pointer;
  }
  
  .company-header h1 {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    color: white;
    transition: opacity 0.3s;
    cursor: pointer;
  }
  
  .company-header img:hover,
  .company-header h1:hover {
    opacity: 0.8;
  }
  
  /* Buttons */
  button,
  a.button,
  a.back-button,
  .back-button,
  button.nav-button,
  button.reserve-button,
  button.back-button {
    padding: 12px 18px;
    background-color: #4b91e4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    align-self: center;
    transition: background-color 0.3s;
  }

  .button-group {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 20px;
  }

  .dashboard-button {
      padding: 12px 15px;
      background: #4b91e4;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      transition: background 0.3s;
      text-align: center;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
  }

  .dashboard-button:hover {
      background: #32b2f3;
  }

  .back-dashboard-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 12px 15px;
    background: #4b91e4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    text-align: center;
    width: fit-content;
  }

  .back-dashboard-button:hover {
    background: #32b2f3;
  }

  .center-button {
    display: block;
    margin: 20px auto;
  }

  a.center-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 12px 15px;
    background: #4b91e4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    text-align: center;
    width: fit-content;
  }
  
  button:hover,
  a.button:hover,
  a.back-dashboard-button:hover,
  a.center-button:hover,
  .center-button:hover,
  .back-button:hover,
  button.back-button:hover {
    background-color: #32b2f3;
  }
  

  .details-button {
      display: inline-block;
      margin-top: 10px;
      padding: 12px 15px;
      background: #4b91e4;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-size: 14px;
      transition: background-color 0.3s;
  }

  .details-button:hover {
      background: #32b2f3;
  }

  .horizontal-button-group {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  
  /* Containers */

  .back-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }

  .dashboard-container{
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    justify-content: center;
    width: 90%;
    max-width: 700px;
    color: #333;
    margin-top: 160px; /* Increased to account for fixed header */
    margin-bottom: 30px;
    text-align: center;
  }

  .details-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    color: #333;
    margin-top: 160px;
    margin-bottom: 30px;
  }
  .details-container h2 {
    text-align: center;
    color: #4b91e4;
  }
  .info-section p {
    margin: 8px 0;
  }
  .calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 30px;
  }
  .day-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ddd;
  }
  .day-column h4 {
    color: #4b91e4;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
  }
  .time-slot {
    background-color: #4b91e4;
    color: white;
    padding: 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
  }
  .time-slot:hover {
    background-color: #32b2f3;
  }
  .week-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .meeting-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    color: #333;
    margin-top: 160px;
    margin-bottom: 30px;
  }  


  .container,
  .form-container,
  .status-container,
  .payment-container,
  .results-container,
  .password-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    justify-content: center;
    width: 90%;
    max-width: 700px;
    color: #333;
    margin-top: 160px; /* Increased to account for fixed header */
    text-align: center;
    margin-bottom: 30px;
  }


  .profile-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    justify-content: center;
    width: 90%;
    max-width: 700px;
    color: #333;
    margin-top: 160px; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  }

  .reservations-container {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 160px;
    margin-bottom: 30px;
  }

  .status-container h2 {
    color: #4b91e4;
  }


  .survey-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: #4b91e4;
    position: relative;
    margin-top: 160px;
    margin-bottom: 30px;
  }
  .survey-title {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #4b91e4;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
  }
  


  .meeting-container h2 {
    text-align: center;
    color: #4b91e4;
    margin-bottom: 20px;
  }
  .meeting-item {
      border: 1px solid #ddd;
      border-left: 5px solid #4b91e4;
      border-radius: 6px;
      padding: 15px;
      margin-bottom: 15px;
      background: #f9f9f9;
  }
  .meeting-item h3 {
      margin: 0 0 5px;
      color: #4b91e4;
  }
  .meeting-item p {
      margin: 4px 0;
  }

  .meeting-detail-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    color: #333;
    margin-top: 160px;
    text-align: center;
    margin-bottom: 30px;
  }
  .meeting-detail-container h2 {
    color: #4b91e4;
    margin-bottom: 20px;
  }
  .meeting-detail-container p {
    margin: 10px 0;
    font-size: 16px;
  }

  .container h2,
  .form-container h2,
  .profile-container h2,
  .survey-container h2,
  .details-container h2,
  .status-container h2,
  .dashboard-container h2,
  .payment-container h2,
  .results-container h2,
  .password-container h2 {
    color: #4b91e4;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }


  .reservations-container h2 {
      text-align: center;
      color: #4b91e4;
      margin-bottom: 20px;
  }

  .reservation-item {
      border-left: 5px solid #4b91e4;
      background: #f9f9f9;
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 15px;
  }

  .reservation-item h3 {
      margin: 0;
      color: #4b91e4;
  }

  .reservation-item p {
      margin: 4px 0;
      font-size: 14px;
  }
  

  .button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
  }



  /* Inputs */
  input,
  textarea,
  select {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  input[readonly] {
    background: #f1f1f1;
  }

  label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
  }

  .password-box {
    position: relative;
    width: 100%;
  }
  
  .password-box input {
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
  }
  
  .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #4b91e4;
    font-size: 16px;
  }
  
  .password-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
  }
  
  .password-requirements {
    font-size: 18px;
    color: #666;
    text-align: left;
    margin-bottom: 10px;
  }

  .paid {
    color: green;
    font-weight: bold;
  }
  
  .unpaid {
    color: red;
    font-weight: bold;
  }
  
  .action-links a {
    display: inline-block;
    margin: 5px;
    padding: 6px 10px;
    background: #4b91e4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
  }
  
  .action-links a:hover {
    background: #32b2f3;
  }
  
  /* Utility */
  .success-message {
    color: green;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
  }
  
  .error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
  }
  
  .status-message {
    font-size: 18px;
    margin: 20px 0;
  }
  
  .available {
    color: green;
    font-weight: bold;
  }
  
  .not-available {
    color: red;
    font-weight: bold;
  }
  
  .admin-dashboard-container {
      background: white;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      width: 90%;
      max-width: 700px;
      text-align: center;
      color: #4b91e4;
      margin-top: 160px;
      margin-bottom: 30px;
  }

  .admin-dashboard-container h2 {
      color: #4b91e4;
      text-align: center;
      margin-bottom: 20px;
  }

  .button-group {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 20px;
  }

  .dashboard-button {
      padding: 12px 15px;
      background: #4b91e4;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      transition: background 0.3s;
      text-align: center;
      cursor: pointer;
      font-size: 16px;
  }

  .dashboard-button:hover {
      background: #32b2f3;
  }

  .detail-item {
    margin-bottom: 12px;
  }

  .detail-item strong {
    display: inline-block;
    width: 160px;
    color: #4b91e4;
  }

  .schedule-section {
    margin-top: 20px;
  }

  .schedule-section h3 {
    color: #4b91e4;
    margin-bottom: 10px;
  }

  .schedule-day {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
  }

  .schedule-time {
    margin-left: 20px;
  }

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

  .day-group {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-left: 5px solid #4b91e4;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
  }

  .day-label {
    font-weight: bold;
    font-size: 18px;
    color: #4b91e4;
    margin-bottom: 10px;
  }

  .time-slot input {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 120px;
  }

  .delete-button {
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
  }

  .delete-button:hover {
    background-color: darkred;
  }
  .submit-button{
    padding: 12px 20px;
    background-color: #4b91e4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
  }

  .submit-button:hover{
    background-color: #32b2f3;
  }

  .survey-instruction,
  .question-instruction {
    color: #555;
    font-size: 14px;
    text-align: justify;
    margin-bottom: 15px;
  }

  .question {
    background: #edf6f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .question h3 {
    margin-bottom: 10px;
    color: #4b91e4;
  }

  .option {
    background: #d0e7f9;
    border-radius: 6px;
    padding: 10px;
    margin: 6px 0;
    cursor: pointer;
    transition: background 0.3s;
  }

  .option:hover {
    background: #90e0ef;
  }

  .selected {
    background: #4b91e4 !important;
    color: white;
    font-weight: bold;
  }

  .survey-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 10px;
  }

  .survey-item {
      background: #f8f9fa;
      padding: 15px;
      border-radius: 8px;
      text-align: left;
  }

  .survey-name {
      font-size: 18px;
      font-weight: bold;
      color: #4b91e4;
  }
  .survey-price {
      font-size: 16px;
      font-weight: bold;
      color: #ff6600;
      margin-top: 10px;
  }

  .old-price {
      text-decoration: line-through;
      color: red;
      margin-right: 10px;
  }

  .result-item {
      background: #f8f9fa;
      padding: 15px;
      margin-top: 15px;
      border-radius: 8px;
      text-align: left;
  }

  .result-item strong {
      color: #4b91e4;
  }

  .login-container {
      width: 320px;        /* same as your container’s width */
      margin: 160px auto;  /* 100px top margin, auto left/right */
      /* remove any `position`, `left`, and `transform` */
      background: white;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      text-align: center;
  }

  .login-container p {
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
  }
  .login-container h2 {
    color: #4b91e4;
    margin-bottom: 20px;
    font-size: 20px;
  }
  .login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
  }
  .login-container button {
    width: 100%;
    margin-top: 10px;
  }
  .login-container .forgot-password{
    margin-top: 12px;
    font-size: 14px;
  }

  .login-container .signup-link {
      text-align: center;
      margin-top: 14px; 
  }

  .login-container a {
    color: #4b91e4;
    text-decoration: none;
  }
  .login-container a:hover {
    text-decoration: underline;
  }

  @media (max-width: 900px) {
  /* Takvim 7→4 sütun */
  .calendar { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* Tablet ve aşağısı */
@media (max-width: 768px) {
  /* Genel yerleşim */
  body { align-items: stretch; }

  /* Header */
  .company-header {
    padding: 16px 0;
  }
  .company-header img { width: 56px; margin-right: 8px; }
  .company-header h1  { font-size: 22px; }

  /* Konteynerler */
  .dashboard-container,
  .details-container,
  .meeting-container,
  .meeting-detail-container,
  .reservations-container,
  .container,
  .form-container,
  .status-container,
  .payment-container,
  .results-container,
  .password-container,
  .profile-container,
  .survey-container,
  .admin-dashboard-container,
  .login-container {
    width: 94%;
    max-width: 100%;
    padding: 24px 18px;
    margin-top: 130px;
    margin-bottom: 24px;
  }

  /* Başlıklar / metinler */
  .dashboard-container h2,
  .details-container h2,
  .meeting-container h2,
  .meeting-detail-container h2,
  .reservations-container h2,
  .container h2,
  .form-container h2,
  .status-container h2,
  .payment-container h2,
  .results-container h2,
  .password-container h2,
  .profile-container h2,
  .survey-container h2,
  .admin-dashboard-container h2,
  .survey-title { font-size: 20px; }

  .status-message { font-size: 16px; }
  label { font-size: 14px; }

  /* Butonlar */
  button,
  a.button,
  a.back-button,
  .back-button,
  button.nav-button,
  button.reserve-button,
  button.back-button,
  .dashboard-button,
  .submit-button,
  .details-button,
  .action-links a,
  .back-dashboard-button,
  a.center-button,
  .center-button {
    font-size: 15px;
    padding: 10px 16px;
  }
  .horizontal-button-group { gap: 8px; }
  .button-group,
  .button-stack { gap: 12px; }

  /* Takvim */
  .calendar    { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .day-column  { padding: 8px; }
  .time-slot   { font-size: 13px; padding: 5px; }
  .week-nav    { gap: 14px; }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
    white-space: nowrap;
  }

  /* Survey / Question */
  .survey-instruction,
  .question-instruction { font-size: 13.5px; }
  .question  { padding: 12px; }
  .option    { padding: 8px; font-size: 14px; }

  /* Detay / liste öğeleri */
  .reservation-item p,
  .detail-item { font-size: 14px; }
  .detail-item strong { width: 140px; }

  /* Form elemanları */
  input,
  textarea,
  select { font-size: 14px; padding: 9px; }
  .password-box input { font-size: 13.5px; }
  .toggle-password     { font-size: 15px; }

  /* Mesajlar */
  .error-message { font-size: 13px; }

  /* Program / saat blokları */
  .day-group    { padding: 12px; }
  .schedule-time{ margin-left: 14px; }
}

/* Küçük telefonlar */
@media (max-width: 480px) {
  .company-header img { width: 50px; }
  .company-header h1  { font-size: 20px; }

  .dashboard-container,
  .details-container,
  .meeting-container,
  .meeting-detail-container,
  .reservations-container,
  .container,
  .form-container,
  .status-container,
  .payment-container,
  .results-container,
  .password-container,
  .profile-container,
  .survey-container,
  .admin-dashboard-container,
  .login-container {
    padding: 22px 14px;
    margin-top: 120px;
  }

  .survey-title,
  .page-title { font-size: 18px; }

  h2.section-heading,
  .container h2,
  .form-container h2,
  .profile-container h2,
  .survey-container h2,
  .details-container h2,
  .status-container h2,
  .dashboard-container h2,
  .payment-container h2,
  .results-container h2,
  .password-container h2,
  .meeting-container h2,
  .meeting-detail-container h2,
  .reservations-container h2,
  .admin-dashboard-container h2 {
    font-size: 19px;
  }

  .section-text,
  .login-container p,
  .meeting-detail-container p { font-size: 14.5px; }

  button,
  .dashboard-button,
  .submit-button,
  .details-button,
  .action-links a {
    font-size: 14px;
    padding: 9px 14px;
  }

  .calendar { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .time-slot { font-size: 12.5px; padding: 4px; }

  .question { padding: 10px; }
  .option   { padding: 7px; font-size: 13.5px; }

  input,
  textarea,
  select { font-size: 13.5px; padding: 8px; }

  .detail-item strong { width: 120px; font-size: 14px; }
}
