/* Modern Clean Style for Support Site */
:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #4fc3dc;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text: #6c757d;
  --error-color: #dc3545;
  --success-color: #28a745;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Login/Register Form Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 450px;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header img {
  max-width: 180px;
  margin-bottom: 20px;
}

.auth-header h1 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--light-text);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

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

.auth-footer {
  text-align: center;
  margin-top: 25px;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Dashboard Styles */
.dashboard-section {
  margin: 30px 0;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.dashboard-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.dashboard-card p {
  color: var(--light-text);
  margin-bottom: 20px;
}

.dashboard-card .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.dashboard-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.dashboard-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.dashboard-menu li {
  margin-bottom: 10px;
}

.dashboard-menu .btn {
  display: inline-block;
  min-width: 150px;
  text-align: center;
  text-decoration: none;
}

/* Table Styles */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.user-table th, .user-table td {
  padding: 12px 15px;
  text-align: left;
}

.user-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.user-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.user-table tr:hover {
  background-color: rgba(74, 111, 165, 0.1);
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.section-title {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Badge Styles */
.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
}

.primary-badge {
  background-color: var(--primary-color);
  color: white;
}

.manager-badge {
  background-color: var(--secondary-color);
  color: white;
}

/* Ticket Status Badges */
.status-badge {
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  min-width: 100px;
}

.status-open {
  background-color: #17a2b8;
  color: white;
}

.status-in-progress {
  background-color: #007bff;
  color: white;
}

.status-waiting-client {
  background-color: #ffc107;
  color: #212529;
}

.status-waiting-staff {
  background-color: #fd7e14;
  color: white;
}

.status-resolved {
  background-color: #28a745;
  color: white;
}

.status-closed {
  background-color: #6c757d;
  color: white;
}

/* Ticket Priority Badges */
.priority-badge {
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.priority-low {
  background-color: #28a745;
  color: white;
}

.priority-medium {
  background-color: #17a2b8;
  color: white;
}

.priority-high {
  background-color: #fd7e14;
  color: white;
}

.priority-urgent {
  background-color: #dc3545;
  color: white;
}

/* Ticket Details */
.ticket-header {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.ticket-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.ticket-info-item {
  flex: 1;
  min-width: 200px;
}

.ticket-info-label {
  font-weight: 500;
  color: var(--light-text);
  margin-bottom: 5px;
}

.ticket-description {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.ticket-description h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.ticket-responses {
  margin-bottom: 30px;
}

.response {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
}

.response-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.response-user {
  font-weight: 500;
}

.response-date {
  color: var(--light-text);
  font-size: 14px;
}

.response-content {
  line-height: 1.6;
}

.internal-note {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
}

.client-response {
  border-left: 4px solid var(--primary-color);
}

.staff-response {
  border-left: 4px solid var(--secondary-color);
}

.response-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.ticket-actions {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.ticket-history {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.history-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

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

.history-user {
  font-weight: 500;
}

.history-action {
  color: var(--primary-color);
}

.history-date {
  color: var(--light-text);
  font-size: 14px;
}

/* Ticket List */
.ticket-list {
  margin-bottom: 30px;
}

.ticket-list-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.ticket-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ticket-list-title {
  font-weight: 500;
  font-size: 18px;
  color: var(--primary-color);
}

.ticket-list-number {
  color: var(--light-text);
  font-size: 14px;
}

.ticket-list-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.ticket-list-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  color: var(--light-text);
  font-size: 14px;
}

.ticket-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.ticket-filter select,
.ticket-filter input {
  padding: 8px 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}

.ticket-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 1;
  min-width: 200px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--light-text);
  font-size: 14px;
}

/* Wiki Styles */
.wiki-article-content {
  line-height: 1.8;
}

.wiki-image-container {
  margin: 20px 0;
  text-align: center;
}

.wiki-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Code Formatting Styles */
.code-block {
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 15px;
  margin: 15px 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.5;
  white-space: pre-wrap;
}

.inline-code {
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .dashboard-menu {
    flex-direction: column;
  }
  
  .dashboard-menu .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .auth-card {
    padding: 30px;
  }
  
  /* Responsive tables */
  .user-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .user-actions {
    flex-direction: column;
  }
  
  .user-actions form {
    margin-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .form-control {
    padding: 10px;
    font-size: 14px;
  }
  
  .user-table th, .user-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .btn-sm {
    padding: 5px 8px;
    font-size: 12px;
  }
}
