/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #000;
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

/* Header */
.header {
  background-color: #fff;
  height: 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Main */
main {
  margin-top: 100px;
  padding-bottom: 2rem;
}

/* Container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo-kontainer {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo {
  width: 40px;
  height: auto;
  margin-right: 10px;
}
.logo-metin h1 {
  font-size: 20px;
}
.logo-metin p {
  font-size: 12px;
  color: gray;
}

/* Account Icon & Dropdown */
.account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #8550D9;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s;
}
.account-icon:hover {
  background: #0ebedd;
  border-color: #0ebedd;
  box-shadow: 0 4px 8px rgba(14,190,221,0.5);
}
.account-icon i {
  color: #8550D9;
  font-size: 20px;
  transition: .2s;
}
.account-icon:hover i {
  color: #fff;
}
.account-dropdown {
  position: absolute;
  top: 100%;
  right: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 200px;
  display: none;
  z-index: 1001;
}
.account-dropdown ul {
  list-style: none;
}
.account-dropdown li {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.account-dropdown li:hover {
  background: #f0f0f0;
  color: #0ebedd;
}

/* Meeting Form */
.meeting-form {
  background: #fff;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: .5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.meeting-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.meeting-form-header .back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #0ebedd;
}
.meeting-form-header h2 {
  font-size: 1.5rem;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

/* Form Groups */
.form-group {
  margin-bottom: 1rem;
}
.form-group.inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.form-group label {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
}
.form-group input,
.form-group select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0ebedd;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

/* Participant Entry */
.participant-entry {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.participant-entry input {
  flex: 2;
  border: 1px solid #ccc;
  transition: border-color .2s;
}
.participant-entry input:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}
.participant-entry .remove-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #e74c3c;
  cursor: pointer;
  transition: transform .2s;
}
.participant-entry .remove-btn:hover {
  transform: scale(1.2);
}

/* Add Button */
.btn-add {
  background: transparent;
  border: none;
  color: #0ebedd;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: transform .2s;
}
.btn-add:hover {
  transform: translateY(-2px);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.btn-save,
.btn-cancel {
  padding: .6rem 1.2rem;
  border: none;
  border-radius: .25rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-save {
  background: #0ebedd;
  color: #fff;
}
.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(14,190,221,0.3);
}
.btn-save:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.btn-cancel {
  background: #ccc;
  color: #333;
}
.btn-cancel:hover {
  opacity: .8;
}

/* Overlay ve Progress Bar */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
#overlay.active {
  display: flex;
}
.progress-container {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.progress-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0ebedd, #8550D9);
  border-radius: 5px;
  animation: progress 2.5s infinite ease-in-out;
}
.progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: glow 2.5s infinite ease-in-out;
}
.progress-spinner {
  font-size: 24px;
  color: #0ebedd;
  animation: spin 1s linear infinite;
}
@keyframes progress {
  0% { width: 0; }
  50% { width: 90%; }
  100% { width: 0; }
}
@keyframes glow {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast Notification */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #e6f7fa;
  color: #0ebedd;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #b3e5fc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.5s ease-out forwards, slideOut 0.5s ease-in 4.5s forwards;
}
.toast.success {
  background: #e6ffed;
  color: #28a745;
  border: 1px solid #b7ebcc;
}
.toast.error {
  background: #ffe6e6;
  color: #dc3545;
  border: 1px solid #f5c6cb;
}
.toast i {
  font-size: 14px;
}
.toast.success i {
  color: #28a745;
}
.toast.error i {
  color: #dc3545;
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateX(100%); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(100%); }
}

/* Success Screen */
.success-container {
  text-align: center;
  padding: 20px;
}
.success-container img {
  margin: 20px 0 10px;
  width: 64px;
  height: 64px;
}
.success-message {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 500;
}
.room-id-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.room-id-container input {
  padding: 8px;
  font-size: 16px;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 8px;
}
.room-id-container button {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
}
.room-id-container button img {
  width: 24px;
  height: 24px;
  margin: 0;
}

/* Footer */
.meet-footer {
  max-width: 700px;
  margin: 2rem auto 1rem auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}
.footer-links a {
  color: #0ebedd;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #0aaac2;
}
.footer-copy {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  main {
    padding: 80px 15px 2rem;
  }
  .meeting-form {
    padding: 1rem;
  }
  .meeting-form-header h2 {
    font-size: 1.25rem;
  }
  .form-group {
    margin-bottom: 0.75rem;
  }
  .form-group.inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-group label {
    min-width: unset;
  }
  .participant-entry {
    flex-direction: column;
    align-items: stretch;
  }
  .progress-container {
    width: 80%;
    max-width: 280px;
    padding: 15px;
  }
  .progress-text {
    font-size: 14px;
  }
  .progress-bar {
    height: 8px;
  }
  .progress-spinner {
    font-size: 20px;
  }
  .success-container img {
    width: 48px;
    height: 48px;
  }
  .success-message {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .room-id-container input {
    font-size: 14px;
    margin-right: 8px;
  }
  .room-id-container button img {
    width: 20px;
    height: 20px;
  }
  #toast-container {
    top: 10px;
    right: 10px;
    width: 90%;
    max-width: 250px;
  }
  .toast {
    font-size: 11px;
    padding: 12px 15px;
  }
  .toast i {
    font-size: 12px;
  }
}