* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #2f315f;
  color: #ffffff;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at top, #4b4e8f, #1b1c35 70%);
}

.login-card {
  width: 330px;
  padding: 18px;
  border: 1px solid #7884cf;
  border-radius: 14px;
  background: #20254d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #cbd2ff;
}

.form-row input[type='text'],
.form-row input[type='password'] {
  width: 100%;
  height: 34px;
  padding: 7px 9px;
  border: 1px solid #7075b4;
  border-radius: 8px;
  color: #ffffff;
  background: #12162d;
  outline: none;
}

.form-row input:focus {
  border-color: #a8b4ff;
}

.gender-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}

.gender-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #555b96;
  border-radius: 8px;
  background: #171b38;
  cursor: pointer;
  font-size: 12px;
}

.primary-button,
.secondary-button,
.small-button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(#4850a3, #2b316a);
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
}

.secondary-button {
  background: linear-gradient(#49505f, #2d3240);
}

.small-button {
  min-height: 25px;
  padding: 0 10px;
  font-size: 12px;
}

.error-box {
  display: none;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ffaaaa;
  border-radius: 8px;
  color: #ffdede;
  background: rgba(180, 0, 0, 0.2);
  font-size: 12px;
}

.chat-page {
  background: #0f1430;
  overflow: hidden;
}

.topbar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 30px;
  padding: 3px 7px;
  border-bottom: 1px solid #071028;
  background: linear-gradient(#2c3f5b, #171f40);
}

.topbar-title {
  margin-left: auto;
  font-size: 12px;
  color: #dfe7ff;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-bottom: 1px solid #070a1c;
  background: #2f3172;
}

.room-button {
  height: 25px;
  border: 0;
  border-right: 1px solid #071028;
  border-bottom: 1px solid #071028;
  color: #ffffff;
  background: #303275;
  cursor: pointer;
  font: bold 12px Tahoma, Arial, sans-serif;
}

.room-button:hover,
.room-button.active {
  background: #42479a;
}

.app-shell {
  display: grid;
  grid-template-columns: 175px minmax(520px, 1fr) 265px;
  height: calc(100vh - 80px);
  min-height: 500px;
}

.left-panel,
.right-panel {
  overflow: hidden;
  background: #f8f8f8;
  color: #101010;
}

.left-panel {
  border-right: 1px solid #101733;
}

.right-panel {
  border-left: 1px solid #101733;
  background: #26304a;
  color: #fff;
}

.mic-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 58px;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}

.mic-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
}

.mic-dot {
  width: 42px;
  height: 42px;
  border: 2px solid #d9e0ff;
  border-radius: 50%;
  background: #f7f7f7;
}

.user-list {
  height: calc(100% - 98px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
}

.user-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 5px;
  align-items: center;
  min-height: 44px;
  padding: 4px 5px;
  color: #111111;
  border-bottom: 1px solid #eeeeee;
  font-size: 12px;
}

.user-row:hover {
  background: #e6efff;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
  background: #efefef;
}

.user-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  color: #666666;
  font-size: 10px;
}

.mic-button {
  height: 40px;
  padding-top: 10px;
  text-align: center;
  font: bold 12px Tahoma, Arial, sans-serif;
  color: #ffffff;
  cursor: pointer;
  background: #070707 url('../assets/micbuton.png') center/cover no-repeat;
}

.mic-button.active {
  background-image: url('../assets/micbuton05.png');
}

.center-panel {
  display: grid;
  grid-template-rows: 26px 1fr 28px 42px;
  min-width: 0;
  background: #e7ebf5;
}

.room-header {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #969696;
  color: #000000;
  background: #c6c8cc;
  font-size: 13px;
  font-weight: 700;
}

.chat-box {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 18px;
  background: #ffffff;
  background-image: linear-gradient(145deg, rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.88));
  color: #000000;
  font-size: 19px;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  line-height: 1.35;
}

.message-flag {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.message-name {
  font-weight: 700;
  margin-right: 5px;
}

.message-time {
  margin-left: 6px;
  color: #888888;
  font-size: 11px;
}

.system-message {
  margin: 8px 0;
  color: #555555;
  font: bold 13px Tahoma, Arial, sans-serif;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  border-top: 1px solid #c9c9c9;
  background: #bfbfbf;
}

.tool-icon {
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tool-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.send-row {
  display: grid;
  grid-template-columns: 1fr 105px;
  border-top: 1px solid #d9d9d9;
  background: #ffffff;
}

.message-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  outline: none;
  color: #222222;
  font-size: 18px;
  font-family: Tahoma, Arial, sans-serif;
}

.send-button {
  border: 0;
  color: #ffffff;
  font: bold 13px Tahoma, Arial, sans-serif;
  cursor: pointer;
  background: #111111 url('../assets/sendbuton.png') center/cover no-repeat;
}

.send-button:hover {
  background-image: url('../assets/sendbuton2.png');
}

.profile-card {
  margin: 10px;
  padding: 10px;
  border: 1px solid #59648b;
  border-radius: 10px;
  background: #192139;
}

.profile-title {
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
}

.profile-body {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-body img {
  width: 72px;
  height: 72px;
  border: 2px solid #c13fba;
  border-radius: 10px;
  object-fit: cover;
}

.panel-tabs {
  display: flex;
  gap: 6px;
  padding: 0 10px;
}

.panel-tab {
  flex: 1;
  min-height: 26px;
  border: 1px solid #6775a8;
  border-radius: 8px;
  color: #ffffff;
  background: #263e70;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.notice-card {
  margin: 10px;
  padding: 18px;
  min-height: 210px;
  border: 4px solid #ff9a2f;
  border-radius: 20px;
  color: #1b2340;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.5;
}

.notice-author {
  color: #ff741a;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 160px 1fr;
  }
  .right-panel {
    display: none;
  }
  .rooms-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* WordPress tarzı kurulum ekranı */
.install-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 14px;
  background: linear-gradient(180deg, #eef5ff 0%, #d8e7ff 100%);
  font-family: Tahoma, Arial, sans-serif;
  color: #1f2a44;
}

.install-card {
  width: min(920px, 100%);
  background: #ffffff;
  border: 1px solid #c4d4ee;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(31, 42, 68, 0.18);
  padding: 26px;
}

.install-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e6edf8;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.install-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.install-logo h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.install-logo p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.install-steps li {
  padding: 10px;
  border-radius: 10px;
  background: #eef3fb;
  color: #52627a;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.install-steps li.active {
  background: #2e5fa8;
  color: #ffffff;
}

.install-section {
  border: 1px solid #e1e9f6;
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
  background: #fbfdff;
}

.install-section h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.install-grid label,
.check-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.install-grid input {
  height: 40px;
  border: 1px solid #cbd7ea;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
}

.install-grid small {
  color: #718096;
  font-size: 11px;
  font-weight: 400;
}

.check-row {
  flex-direction: row;
  align-items: center;
  margin-top: 12px;
  color: #334155;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.install-message {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.install-message.info {
  display: block;
  background: #edf4ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.install-message.success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.install-message.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

#installButton {
  margin-top: 16px;
}

.install-card button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 720px) {
  .install-logo {
    align-items: flex-start;
  }
  .install-grid,
  .install-steps {
    grid-template-columns: 1fr;
  }
}

.simple-install-card {
  max-width: 760px;
}

.install-help {
  margin: -4px 0 14px;
  color: #cbd2ff;
  font-size: 13px;
}

.install-wide {
  grid-column: 1 / -1;
}

.install-note {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: #dce2ff;
  font-size: 13px;
}
