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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  color: #333;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

.container {
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2196F3;
  font-size: 28px;
}

h2 {
  font-size: 18px;
  color: #fff;
}

h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.header {
  background: #2196F3;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #2196F3;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: #fff;
  color: #2196F3;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #2196F3;
  color: #fff;
}

.nav-tabs {
  display: flex;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.nav-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.nav-tab.active {
  color: #2196F3;
  border-bottom-color: #2196F3;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2196F3;
}

.form-group small {
  color: #888;
  font-size: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #2196F3;
  color: #fff;
}

.btn-primary:hover {
  background: #1976D2;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
}

.btn-success {
  background: #4CAF50;
  color: #fff;
}

.btn-success:hover {
  background: #388E3C;
}

.btn-danger {
  background: #f44336;
  color: #fff;
}

.btn-danger:hover {
  background: #d32f2f;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.register-link {
  text-align: center;
  margin-top: 20px;
}

.register-link a {
  color: #2196F3;
  text-decoration: none;
}

.section {
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  margin: 0;
}

.action-bar {
  margin-bottom: 20px;
}

.list {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.list-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: #f9f9f9;
}

.list-item-info {
  flex: 1;
}

.list-item-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.list-item-subtitle {
  font-size: 13px;
  color: #666;
}

.list-item-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 10px;
}

.status-pending {
  background: #fff3e0;
  color: #ff9800;
}

.status-completed {
  background: #e8f5e9;
  color: #4caf50;
}

.status-reviewed {
  background: #e3f2fd;
  color: #2196f3;
}

.status-active {
  background: #e8f5e9;
  color: #4caf50;
}

.status-inactive {
  background: #ffebee;
  color: #f44336;
}

.log-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.log-item:last-child {
  border-bottom: none;
}

.log-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.log-customer {
  font-weight: 500;
}

.log-time {
  font-size: 12px;
  color: #888;
}

.log-status {
  font-size: 13px;
}

.log-status.sent {
  color: #4caf50;
}

.log-status.failed {
  color: #f44336;
}

.log-status.simulated {
  color: #ff9800;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2000;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}

.toast.success {
  background: #4CAF50;
}

.toast.error {
  background: #f44336;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

@media (max-width: 480px) {
  #app {
    max-width: 100%;
  }
}
