:root {
  --primary-color: #004D40;
  --secondary-color: #00796B;
  --accent-color: #FDD835;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --text-color: #333333;
  --text-light: #666666;
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

.login-wrapper form {
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
}
form:not(.no-style) {
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 20px;
}

/* === Login Form Tasarımı === */
.login-wrapper {
  background: #fff;
  padding: 32px 28px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  margin: 80px auto;
  box-shadow: 0 0 16px rgba(0,0,0,0.05);
}
.login-wrapper img {
  display: block;
  margin: 0 auto 16px;
  max-height: 50px;
}
.login-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}
.login-wrapper .form-group {
  margin-bottom: 16px;
}
.login-wrapper label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}
.login-wrapper input[type="text"],
.login-wrapper input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.3s;
}
.login-wrapper input:focus {
  border-color: #007bff;
  outline: none;
}
.login-wrapper button {
  width: 100%;
  padding: 12px;
  background-color: #00695c;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.login-wrapper .alert {
  background: #ffe5e5;
  color: #c62828;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}
.login-wrapper .success {
  background: #e0f2f1;
  color: #00695c;
}
.login-wrapper .ip {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #999;
}


/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-color);
}
body {
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--secondary-color);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}
.logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--bg-white);
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.main-nav a:hover,
.main-nav a.active {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.user-menu a {
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: color var(--transition-speed), background-color var(--transition-speed);
}
.user-menu a:hover {
  background-color: var(--bg-light);
}

/* Main content offset for fixed header */
main {
  padding-top: 70px;
}

/* Buttons (forms) */
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}
button:hover,
input[type="submit"]:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Forms */
form {
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 20px;
}
form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-light);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="datetime-local"],
form select,
form textarea {
  width: 100%;
  padding: 0.6em;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 20px;
}
thead {
  background-color: var(--primary-color);
  color: var(--bg-white);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
tr:last-child td {
  border-bottom: none;
}
th {
  font-weight: 600;
}
tbody tr:hover {
  background-color: #f1f1f1;
}

/* Typography */
h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
  padding-left: 20px;
}
p {
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .main-nav a,
  .user-menu a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

dashboard-widgets {
  display: flex;
  gap: 20px;
  margin: 20px;
}
.widget {
  flex: 1;
  background: var(--bg-white);
  padding: 16px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.widget h3 {
  margin-bottom: 8px;
  color: var(--primary-color);
}
.widget p.count {
  font-size: 2rem;
  margin-bottom: 8px;
}
.widget a {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

today-table {
  width: 100%;
  max-width: 600px;
  margin: 10px 20px;
  border-collapse: collapse;
}
today-table th, .today-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
}
today-table th {
  background: var(--primary-color);
  color: var(--bg-white);
}


/* Card layout */
.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 20px;
  padding: 20px;
}

/* Form grid */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.form-group.full {
  flex-basis: 100%;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group p,
.form-group textarea,
.form-group input,
.form-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}
.form-group.readonly p {
  background: #f9f9f9;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* Actions */
.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.btn {
  padding: 0.6em 1.4em;
  border-radius: var(--border-radius);
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary-color);
  color: var(--bg-white);
}
.btn-secondary {
  background: #ccc;
  color: #333;
}
.btn:hover {
  opacity: 0.9;
}
.grid-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.info-card { margin-bottom: 20px; }
.devices-card, .form-card { flex: 1; }
.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.status-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}
.status-btn.active {
  box-shadow: 0 0 0 2px #fff inset;
}
.status-yeni { background: #4caf50; }
.status-bilgi_verildi { background: #2196f3; }
.status-randevu_olusturuldu { background: #ff9800; }
.status-tamamlandi { background: #9c27b0; }
.status-bireysel { background: #03a9f4; }
.status-kurumsal { background: #009688; }
.status-bina { background: #795548; }
