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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
  padding-top: 60px; /* Space for fixed menu */
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Main Menu Styles */
.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a {
  color: white;
  text-decoration: none;
}

.menu-items {
  display: flex;
  align-items: center;
}

.menu-item {
  color: white;
  text-decoration: none;
  padding: 0 15px;
  height: 60px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.menu-item:hover {
  background-color: #34495e;
}

.menu-item.active {
  background-color: #3498db;
}

.menu-item.logout {
  background-color: #e74c3c;
}

.menu-item.logout:hover {
  background-color: #c0392b;
}

h1, h2 {
  color: #333;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  gap: 10px;
}

.login-btn, .dashboard-btn, .logout-btn, .admin-btn, .signature-btn, .profile-btn,
.btn-primary, .btn-secondary, .btn-edit, .btn-delete {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s;
}

.login-btn, .dashboard-btn, .profile-btn, .btn-primary {
  background: #3498db;
}

.login-btn:hover, .dashboard-btn:hover, .profile-btn:hover, .btn-primary:hover {
  background: #2980b9;
}

.btn-publish {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s;
  background: #16A085;
}

.btn-publish:hover {
  background: #138D75;
}

.admin-btn {
  background: #2ecc71;
}

.admin-btn:hover {
  background: #27ae60;
}

.logout-btn {
  background: #e74c3c;
}

.logout-btn:hover {
  background: #c0392b;
}

.btn-secondary {
  background: #95a5a6;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-edit {
  background: #f39c12;
  font-size: 0.9em;
  padding: 5px 10px;
}

.btn-edit:hover {
  background: #d35400;
}

.btn-delete {
  background: #e74c3c;
  border: none;
  font-size: 0.9em;
  padding: 5px 10px;
}

.btn-delete:hover {
  background: #c0392b;
}

.signature-btn {
  background-color: #9E9E9E;
  padding: 5px 10px;
  font-size: 0.9em;
  margin: 0;
}

.signature-btn:hover {
  background-color: #757575;
}

.disabled-btn {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.9em;
  background-color: #f0f0f0;
  color: #999;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.not-logged-in {
  color: #999;
  font-style: italic;
}

.signature-box {
  margin-top: 30px;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.signature-box h2 {
  margin-bottom: 15px;
  color: #4285F4;
}

.signature-content {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-top: 10px;
  border: 1px solid #ddd;
  min-height: 100px;
}

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

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

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.templates-list {
  margin-top: 20px;
}

.templates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.templates-table th,
.templates-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.templates-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.action-cell {
  display: flex;
  gap: 10px;
}

.inline-form {
  display: inline;
}

.action-buttons {
  margin: 20px 0;
  display: flex;
  gap: 10px;
}