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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.app {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #2c3e50;
  color: #fff;
  padding: 20px 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1000;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ecf0f1;
  font-size: 1.5rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 5px;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: #34495e;
  color: #ecf0f1;
  border-left-color: #3498db;
}

.main-content {
  margin-left: 270px;
  padding: 30px;
  background-color: #fff;
  margin-top: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: calc(100vh - 40px);
}

.page-title {
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 2rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

/* About Page */
.about-content {
  line-height: 1.6;
}

.about-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  margin-top: 25px;
}

.about-content p {
  margin-bottom: 15px;
  color: #555;
}

/* Calculator Page */
.calculator {
  max-width: 400px;
  margin: 0 auto;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calculator-display {
  background-color: #2c3e50;
  color: #fff;
  padding: 20px;
  text-align: right;
  font-size: 2rem;
  border-radius: 5px;
  margin-bottom: 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calculator-button {
  padding: 15px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ecf0f1;
  color: #2c3e50;
}

.calculator-button:hover {
  background-color: #bdc3c7;
}

.calculator-button.operator {
  background-color: #3498db;
  color: #fff;
}

.calculator-button.operator:hover {
  background-color: #2980b9;
}

.calculator-button.equals {
  background-color: #27ae60;
  color: #fff;
}

.calculator-button.equals:hover {
  background-color: #229954;
}

.calculator-button.clear {
  background-color: #e74c3c;
  color: #fff;
}

.calculator-button.clear:hover {
  background-color: #c0392b;
}

/* Talk with AI Page */
.chat-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  position: relative;
  min-height: 600px;
}

.chat-sidebar-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
}

.sidebar-toggle-btn {
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.sidebar-toggle-btn:hover {
  background: #2980b9;
}

.chat-sidebar {
  width: 300px;
  background: #fff;
  border-radius: 8px;
  margin-right: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.conversation-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  background: #f8f9fa;
  position: relative;
  z-index: 10;
}

.sidebar-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.new-conversation-btn {
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.new-conversation-btn:hover {
  background: #229954;
}

.new-conversation-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.search-container {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.conversation-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
}

.conversation-search:focus {
  outline: none;
  border-color: #3498db;
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.conversation-item:hover {
  background-color: #f8f9fa;
}

.conversation-item.active {
  background-color: #e3f2fd;
  border-left: 3px solid #3498db;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-title {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7f8c8d;
}

.message-count {
  font-weight: 500;
}

.conversation-actions {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.conversation-item:hover .conversation-actions {
  opacity: 1;
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.delete-btn:hover {
  background-color: #ffebee;
}

.delete-confirm {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.delete-confirm-content {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.delete-confirm-content p {
  margin: 0 0 15px 0;
  color: #2c3e50;
}

.delete-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

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

.cancel-btn {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cancel-btn:hover {
  background: #5a6268;
}

.loading-conversations {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.no-conversations {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
  font-style: italic;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 70%;
}

.message.user {
  background-color: #3498db;
  color: #fff;
  margin-left: auto;
}

.message.ai {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.message-meta {
    text-align: right;
    font-size: 0.75em;
    color: #888;
    margin-top: 5px;
}

.message-date {
    margin-right: 5px;
}

.message-timestamp {
    margin-right: 5px;
}

.message-time-taken {
    font-style: italic;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Message text styling for markdown support */
.message-text {
  line-height: 1.5;
  white-space: pre-wrap;
}

.message-text strong {
  font-weight: bold;
}

.message-text em {
  font-style: italic;
}

.message-text code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.message-text a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s ease;
}

.message-text a:hover {
  border-bottom-color: #3498db;
  text-decoration: none;
}

.message-context {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85em;
  opacity: 0.8;
}

.retry-button {
  margin-top: 8px;
  padding: 4px 12px;
  background-color: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  transition: background-color 0.3s ease;
}

.retry-button:hover {
  background-color: #5a6268;
}

.retry-button:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

.loading-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 10px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3498db;
  animation: loading-pulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading-pulse {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.error-banner {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 10px;
  border: 1px solid #f5c6cb;
  text-align: center;
}

/* User Selection Styles */
.chat-input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.user-selection {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.user-selection label {
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}

.user-dropdown {
  width: 100%;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #6c757d;
  cursor: pointer;
  box-sizing: border-box;
}

.user-dropdown:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.user-dropdown:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.loading-text {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

/* Update existing chat-input styles */
.chat-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
}

.chat-input input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.chat-input button {
  padding: 12px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-input button:hover:not(:disabled) {
  background-color: #2980b9;
}

.chat-input button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav-toggle:hover {
  background: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .mobile-nav-toggle {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    background-color: #2c3e50;
    overflow-y: auto;
  }
  .sidebar.mobile-open {
    left: 0;
  }
  .sidebar h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-top: 60px; /* Space for mobile nav toggle */
  }
  .main-content {
    margin: 0;
    padding: 15px;
    margin-left: 0;
    margin-top: 0;
  }
  .page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-top: 60px; /* Space for mobile nav toggle */
  }
  /* Calculator */
  .calculator {
    max-width: 100%;
    padding: 15px;
  }
  .calculator-buttons {
    gap: 8px;
  }
  .calculator-button {
    padding: 20px 15px;
    font-size: 1.1rem;
  }
  /* Chat Interface */
  .chat-container {
    max-width: 100%;
    flex-direction: column;
    padding: 10px;
    min-height: calc(100vh - 120px);
  }
  .chat-sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    max-height: 250px;
    border-radius: 8px;
  }
  .chat-sidebar-toggle {
    display: none;
  }
  .conversation-item {
    padding: 12px 15px;
    min-height: 44px; /* Touch target */
  }
  .sidebar-header {
    padding: 12px 15px;
  }
  .search-container {
    padding: 12px 15px;
  }
  .conversation-search {
    padding: 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  /* Chat Messages */
  .chat-messages {
    padding: 10px;
    max-height: 50vh;
  }
  .message {
    padding: 12px;
    margin-bottom: 12px;
    font-size: 14px;
  }
  /* Chat Input */
  .chat-input-container {
    padding: 15px;
  }
  .user-selection {
    margin-bottom: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .user-selection label {
    font-size: 14px;
    margin-bottom: 0;
    white-space: nowrap;
  }
  .user-dropdown {
    padding: 12px;
    font-size: 16px;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
  }
  .chat-input {
    gap: 10px;
  }
  .chat-input input {
    padding: 12px;
    font-size: 16px;
    min-height: 44px;
  }
  .chat-input button {
    padding: 12px 20px;
    font-size: 16px;
    min-height: 44px;
    min-width: 80px;
  }
  /* Buttons */
  .btn {
    padding: 12px 16px;
    font-size: 16px;
    min-height: 44px;
  }
  .btn-sm {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 40px;
  }
  /* New conversation button */
  .new-conversation-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  /* Delete button */
  .delete-btn {
    padding: 8px;
    font-size: 16px;
    min-width: 44px;
    min-height: 44px;
  }
  /* Tables */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table {
    min-width: 600px;
    font-size: 14px;
  }
  .table th,
  .table td {
    padding: 12px 8px;
    white-space: nowrap;
  }
  /* Admin Panel */
  .admin-panel {
    padding: 15px;
  }
  .admin-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .status-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .status-card {
    padding: 15px;
  }
  .count-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sync-controls {
    flex-direction: column;
    gap: 20px;
  }
  .control-group {
    width: 100%;
  }
  .sync-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    min-height: 44px;
  }
  /* History Table */
  .history-table {
    min-width: 500px;
  }
  .history-table th,
  .history-table td {
    padding: 10px 8px;
    font-size: 14px;
  }
  /* Modal */
  .modal {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
  }
  .modal-header {
    padding: 15px;
  }
  .modal-body {
    padding: 15px;
  }
  .form-control {
    padding: 12px;
    font-size: 16px;
    min-height: 44px;
  }
  /* About Page */
  .about-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .about-content p {
    font-size: 14px;
    line-height: 1.5;
  }
  /* Login Page */
  .login-box {
    margin: 20px;
    padding: 30px 20px;
  }
  .login-header h1 {
    font-size: 1.8rem;
  }
  .login-header p {
    font-size: 1rem;
  }
  .login-form input[type=text],
  .login-form input[type=password] {
    padding: 15px;
    font-size: 16px;
    min-height: 44px;
  }
  .login-button {
    padding: 15px;
    font-size: 16px;
    min-height: 44px;
  }
  /* Error Banner */
  .error-banner {
    padding: 12px 15px;
    font-size: 14px;
  }
  /* Loading States */
  .loading {
    padding: 30px 20px;
    font-size: 16px;
  }
  /* Sync Log Detail */
  .sync-log-detail {
    padding: 15px;
  }
  .log-header h2 {
    font-size: 1.3rem;
  }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .detail-row label {
    font-weight: 600;
    min-width: auto;
  }
  /* User Detail */
  .user-detail-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .user-detail-header h2 {
    font-size: 1.3rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .edit-actions {
    flex-direction: column;
    gap: 10px;
  }
}
/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3498db 0%, #8e44ad 100%);
}

.login-box {
  background: #fff;
  padding: 48px 36px 36px 36px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo span {
  font-size: 2.8rem;
  color: #8e44ad;
  margin-right: 10px;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header h1 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 2.1rem;
  letter-spacing: 1px;
}

.login-header p {
  color: #888;
  font-size: 1.05rem;
}

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

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.login-form input[type=text],
.login-form input[type=password] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  background: #f8f9fa;
  color: #333;
  transition: border 0.2s;
}

.login-form input[type=text]:focus,
.login-form input[type=password]:focus {
  border: 1.5px solid #8e44ad;
  outline: none;
}

.login-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #3498db 0%, #8e44ad 100%);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
}

.login-button:hover {
  background: linear-gradient(90deg, #2980b9 0%, #6c3483 100%);
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.13);
}

.error-message {
  background: #e74c3c;
  color: #fff;
  padding: 12px 18px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.08);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  color: #888;
  font-size: 0.97rem;
}

/* Sidebar Logout Button */
.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: #e74c3c;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.08);
}

.logout-button:hover {
  background: #c0392b;
  color: #fff;
}

/* Admin Panel Styles */
.admin-panel {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-panel h2 {
  color: #333;
  margin-bottom: 30px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.admin-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.status-card {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.status-card h4 {
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 1.1em;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.count-item {
  text-align: center;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.count-item .count {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 5px;
}

.count-item .label {
  color: #6c757d;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.last-sync {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sync-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.sync-item strong {
  color: #6c757d;
}

.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.status.completed {
  background: #d4edda;
  color: #155724;
}

.status.running {
  background: #fff3cd;
  color: #856404;
}

.status.failed {
  background: #f8d7da;
  color: #721c24;
}

.status.unknown {
  background: #e2e3e5;
  color: #383d41;
}

.sync-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.control-group h4 {
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 1.1em;
}

.sync-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.sync-button.asana {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #3498db;
}

.sync-button.asana:hover {
  background: #3498db;
  color: #fff;
}

.sync-button.projects {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #27ae60;
}

.sync-button.projects:hover {
  background: #27ae60;
  color: #fff;
}

.sync-history {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

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

.history-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #6c757d;
}

.history-table tr:hover {
  background: #f8f9fa;
}

.history-table tr.status-running {
  background: #fff3cd;
}

.history-table tr.status-completed {
  background: #d4edda;
}

.history-table tr.status-failed {
  background: #f8d7da;
}

/* Responsive Design */
@media (max-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
  .sync-controls {
    grid-template-columns: 1fr;
  }
  .count-grid {
    grid-template-columns: 1fr;
  }
  .history-table {
    font-size: 0.9em;
  }
  .history-table th,
  .history-table td {
    padding: 8px;
  }
}
/* Sync Log Detail Page */
.sync-log-detail {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background: #e0e0e0;
}

.log-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ddd;
}

.log-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.log-details {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-row label {
  font-weight: 600;
  color: #555;
  min-width: 120px;
  margin-right: 15px;
}

.detail-row span {
  color: #333;
  flex: 1;
}

.details-content, .error-content {
  flex: 1;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 10px;
  margin-top: 5px;
}

.details-content pre, .error-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}

.error-content {
  background: #fff5f5;
  border-color: #fed7d7;
}

.error-content pre {
  color: #c53030;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #555;
  font-style: italic;
}

.error-message {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 4px;
  padding: 15px;
  color: #c53030;
  margin-top: 20px;
}

/* Clickable Sync Log Rows */
.sync-log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sync-log-row:hover {
  background: #f8f9fa;
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.log-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.log-type {
  font-weight: 600;
  color: #333;
  min-width: 80px;
}

.log-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.log-status.success {
  background: #d4edda;
  color: #155724;
}

.log-status.failed {
  background: #f8d7da;
  color: #721c24;
}

.log-status.running {
  background: #fff3cd;
  color: #856404;
}

.log-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.log-user {
  font-size: 12px;
  color: #555;
}

.log-time {
  font-size: 11px;
  color: #7f8c8d;
}

/* Status indicators for detail page */
.status.success {
  color: #28a745;
  font-weight: 600;
}

.status.failed {
  color: #dc3545;
  font-weight: 600;
}

.status.running {
  color: #ffc107;
  font-weight: 600;
}

.status.unknown {
  color: #6c757d;
  font-weight: 600;
}

/* Live Progress Styles */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #6c757d;
  margin-top: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ffc107;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.batch-progress-container {
  width: 100%;
  max-width: 600px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
  color: #6c757d;
}

.live-badge {
  background: #28a745;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.output-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.output-text {
  margin: 0;
  padding: 15px;
  font-family: "Courier New", monospace;
  font-size: 0.85em;
  line-height: 1.4;
  color: #6c757d;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Batch Sync Styles */
.batch-status {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

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

.batch-progress {
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.9em;
  color: #6c757d;
}

.batch-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #6c757d;
}

.batch-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-size-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9em;
}

.batch-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #6c757d;
}

.sync-button.batch {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #8e44ad;
}

.sync-button.batch:hover {
  background: #8e44ad;
  color: #fff;
}

.sync-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sync-button:disabled:hover {
  background: #f8f9fa;
  color: #6c757d;
}

/* Status Section */
.status-section {
  margin-bottom: 30px;
}

.status-section h3 {
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 1.2em;
}

/* Detail Button */
.detail-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.detail-button:hover {
  background: #2980b9;
}

/* Responsive Design for Batch Controls */
@media (max-width: 768px) {
  .batch-controls {
    flex-direction: column;
    gap: 10px;
  }
  .batch-size-input {
    width: 100%;
  }
  .batch-info {
    flex-direction: column;
    text-align: center;
  }
  .batch-details {
    flex-direction: column;
  }
}
/* User Management Styles */
.user-list {
  max-width: 1200px;
  margin: 0 auto;
}

.user-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #3498db;
}

.user-list-header h2 {
  color: #2c3e50;
  margin: 0;
}

.user-list-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.search-box {
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.filters select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #fff;
}

.table-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table th.sortable {
  cursor: pointer;
  user-select: none;
}

.table th.sortable:hover {
  background-color: #e9ecef;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.user-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

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

.action-buttons {
  display: flex;
  gap: 5px;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 20px 0;
}

.pagination-info {
  color: #6c757d;
  font-size: 14px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}

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

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

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* User Detail Styles */
.user-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.user-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #3498db;
}

.user-detail-header h2 {
  color: #2c3e50;
  margin: 0;
}

.user-detail-content {
  display: grid;
  gap: 30px;
}

.user-info-section,
.user-stats-section,
.user-sync-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info-section h3,
.user-stats-section h3,
.user-sync-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item label {
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 5px;
  font-size: 14px;
}

.info-item span {
  color: #2c3e50;
  font-size: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sync-history {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sync-item {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

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

.sync-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.sync-status.sync-completed {
  background-color: #d4edda;
  color: #155724;
}

.sync-status.sync-running {
  background-color: #fff3cd;
  color: #856404;
}

.sync-status.sync-failed {
  background-color: #f8d7da;
  color: #721c24;
}

.sync-date {
  font-size: 14px;
  color: #6c757d;
}

.sync-details {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
}

.edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* User Detail GitHub Section */
.user-github-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.user-github-section h3 {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  padding: 15px 20px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.user-github-section .github-stats {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.user-github-section .recent-commits-section h4 {
  padding: 15px 20px 0 20px;
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 1rem;
  font-weight: 600;
}

.user-github-section .commits-list {
  max-height: 400px;
  overflow-y: auto;
}

.user-github-section .commit-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.user-github-section .commit-item:last-child {
  border-bottom: none;
}

.user-github-section .commit-item:hover {
  background-color: #f8f9fa;
}

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

.user-github-section .commit-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.user-github-section .commit-link:hover {
  background-color: #e9ecef;
}

.user-github-section .commit-link code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 600;
  color: #6c5ce7;
}

.user-github-section .commit-date {
  color: #6c757d;
  font-size: 0.9em;
}

.user-github-section .commit-message {
  color: #495057;
  margin-bottom: 8px;
  line-height: 1.4;
}

.user-github-section .commit-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.user-github-section .repository-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-github-section .repository-link {
  color: #0366d6;
  text-decoration: none;
  font-weight: 500;
}

.user-github-section .repository-link:hover {
  text-decoration: underline;
}

.user-github-section .branch-name {
  color: #2ed573;
  font-weight: 500;
}

.user-github-section .commit-stats {
  display: flex;
  gap: 8px;
}

.user-github-section .stat-additions {
  color: #27ae60;
  font-weight: 500;
}

.user-github-section .stat-deletions {
  color: #e74c3c;
  font-weight: 500;
}

/* Button Styles */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3498db;
  color: #fff;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

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

.btn-danger:hover {
  background-color: #c0392b;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Alert Styles */
.alert {
  padding: 12px 16px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 16px;
}

.error-container {
  text-align: center;
  padding: 40px;
}

.error {
  color: #e74c3c;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-list-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .user-list-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
  }
  .table {
    font-size: 14px;
  }
  .table th,
  .table td {
    padding: 8px 10px;
  }
  .action-buttons {
    flex-direction: column;
    gap: 3px;
  }
  .user-detail-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .edit-actions {
    flex-direction: column;
  }
  .modal {
    width: 95%;
    margin: 20px;
  }
}
.user-count {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* GitHub Repository Detail Styles */
.github-repository-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.github-repository-detail .page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  position: relative;
  overflow: hidden;
}

.github-repository-detail .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.github-repository-detail .header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
}

.github-repository-detail .title-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.github-repository-detail .repository-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.github-repository-detail .full-name {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

.github-repository-detail .visibility-badge,
.github-repository-detail .archived-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.github-repository-detail .visibility-badge.private {
  background: rgba(231, 76, 60, 0.3);
}

.github-repository-detail .visibility-badge.public {
  background: rgba(46, 204, 113, 0.3);
}

.github-repository-detail .header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.github-repository-detail .back-button,
.github-repository-detail .external-link-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.github-repository-detail .back-button:hover,
.github-repository-detail .external-link-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.github-repository-detail .repository-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin: 30px 0;
}

.github-repository-detail .info-card,
.github-repository-detail .stats-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.github-repository-detail .info-card:hover,
.github-repository-detail .stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.github-repository-detail .info-card h3,
.github-repository-detail .stats-card h3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
}

.github-repository-detail .info-grid {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.github-repository-detail .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.github-repository-detail .info-item:last-child {
  border-bottom: none;
}

.github-repository-detail .info-item strong {
  color: #6c757d;
  font-weight: 500;
  font-size: 0.95rem;
}

.github-repository-detail .info-item span {
  color: #212529;
  font-weight: 500;
  text-align: right;
}

.github-repository-detail .status-indicator {
  padding: 4px 12px;
  border-radius: 12px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.github-repository-detail .stats-grid {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.github-repository-detail .stat-item {
  text-align: center;
  min-width: 100px;
}

.github-repository-detail .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.github-repository-detail .stat-label {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.github-repository-detail .branches-section {
  margin-top: 30px;
}

.github-repository-detail .section-header {
  margin-bottom: 24px;
}

.github-repository-detail .section-header h3 {
  font-size: 1.5rem;
  color: #495057;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.github-repository-detail .section-header h3::before {
  content: '🌿';
  font-size: 1.2em;
}

.github-repository-detail .branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.github-repository-detail .branch-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
}

.github-repository-detail .branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.github-repository-detail .branch-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.github-repository-detail .branch-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #495057;
}

.github-repository-detail .protected-badge {
  background: #ffeaa7;
  color: #d63031;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.github-repository-detail .branch-sha code {
  background: #667eea;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.github-repository-detail .branch-stats {
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #f1f3f4;
}

.github-repository-detail .branch-stats .stat-item {
  color: #6c757d;
  font-size: 0.9rem;
  text-align: left;
  min-width: auto;
}

.github-repository-detail .branch-stats strong {
  color: #495057;
  font-weight: 600;
}

.github-repository-detail .commit-info {
  padding: 20px;
}

.github-repository-detail .commit-item {
  margin-bottom: 16px;
}

.github-repository-detail .commit-item:last-child {
  margin-bottom: 0;
}

.github-repository-detail .commit-item strong {
  color: #6c757d;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.github-repository-detail .commit-details {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.github-repository-detail .commit-details code {
  background: #495057;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 10px;
}

.github-repository-detail .commit-message {
  display: block;
  color: #495057;
  font-weight: 500;
  margin: 6px 0;
  line-height: 1.4;
}

.github-repository-detail .commit-date {
  color: #6c757d;
  font-size: 0.8rem;
  display: block;
}

.github-repository-detail .branch-actions {
  padding: 16px 20px;
  text-align: center;
  background: #f8f9fa;
}

.github-repository-detail .action-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.github-repository-detail .action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.github-repository-detail .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.github-repository-detail .empty-state h3 {
  color: #495057;
  margin-bottom: 12px;
}

.github-repository-detail .error-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.github-repository-detail .error-state h3 {
  color: #e74c3c;
  margin-bottom: 16px;
}

.github-repository-detail .error-state p {
  color: #6c757d;
  margin-bottom: 24px;
}

.github-repository-detail .retry-button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.github-repository-detail .retry-button:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .github-repository-detail .branches-grid {
    grid-template-columns: 1fr;
  }
  
  .github-repository-detail .repository-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .github-repository-detail .header-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .github-repository-detail .title-section h2 {
    font-size: 2rem;
  }
  
  .github-repository-detail .header-actions {
    align-self: stretch;
  }
  
  .github-repository-detail .back-button,
  .github-repository-detail .external-link-button {
    flex: 1;
    text-align: center;
  }
  
  .github-repository-detail .branches-grid {
    grid-template-columns: 1fr;
  }
  
  .github-repository-detail .stats-grid {
    flex-direction: column;
    gap: 16px;
  }
  
  .github-repository-detail .stat-item {
    min-width: auto;
  }
}

/* GitHub Branch Detail Styles */
.github-branch-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.github-branch-detail .page-header {
  background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
  border-radius: 12px;
  color: white;
  position: relative;
  overflow: hidden;
}

.github-branch-detail .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.github-branch-detail .header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
}

.github-branch-detail .title-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-branch-detail .branch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.github-branch-detail .repository-name {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

.github-branch-detail .branch-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.github-branch-detail .branch-badge.protected {
  background: rgba(255, 193, 7, 0.3);
}

.github-branch-detail .header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.github-branch-detail .back-button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.github-branch-detail .back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.github-branch-detail .branch-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin: 30px 0;
}

.github-branch-detail .info-card,
.github-branch-detail .stats-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.github-branch-detail .info-card:hover,
.github-branch-detail .stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.github-branch-detail .info-card h3,
.github-branch-detail .stats-card h3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
}

.github-branch-detail .sha-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 8px 12px;
  width: fit-content;
}

.github-branch-detail .sha-display code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 600;
  color: #495057;
  background: none;
  padding: 0;
}

.github-branch-detail .copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.github-branch-detail .copy-btn:hover {
  opacity: 1;
}

.github-branch-detail .protection-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.github-branch-detail .protection-status.protected {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.github-branch-detail .protection-status.unprotected {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.github-branch-detail .commit-count {
  font-weight: 600;
  font-size: 1.1em;
  color: #2ed573;
}

.github-branch-detail .date-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.github-branch-detail .date-info .relative-date {
  font-weight: 500;
  color: #495057;
}

.github-branch-detail .date-info .exact-date {
  font-size: 0.85em;
  color: #6c757d;
}

.github-branch-detail .commits-section {
  margin-top: 30px;
}

.github-branch-detail .section-header {
  margin-bottom: 24px;
}

.github-branch-detail .section-header h3 {
  font-size: 1.5rem;
  color: #495057;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.github-branch-detail .section-header h3::before {
  content: '📝';
  font-size: 1.2em;
}

.github-branch-detail .commits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.github-branch-detail .commit-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
  padding: 4px;
}

.github-branch-detail .commit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #2ed573;
}

.github-branch-detail .commit-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.github-branch-detail .commit-message {
  font-weight: 600;
  color: #495057;
  line-height: 1.4;
  flex: 1;
}

.github-branch-detail .commit-sha {
  background: #495057;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 500;
}

.github-branch-detail .commit-meta {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #f1f3f4;
}

.github-branch-detail .commit-author {
  font-weight: 500;
  color: #495057;
}

.github-branch-detail .commit-date {
  color: #6c757d;
  font-size: 0.9rem;
}

.github-branch-detail .commit-stats {
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.github-branch-detail .stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.github-branch-detail .stat-badge.additions {
  background: rgba(46, 213, 115, 0.1);
  color: #27ae60;
}

.github-branch-detail .stat-badge.deletions {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.github-branch-detail .stat-badge.files {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.github-branch-detail .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px;
}

.github-branch-detail .stat-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.github-branch-detail .stat-item.commits {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.github-branch-detail .stat-item.additions {
  background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
  color: white;
}

.github-branch-detail .stat-item.deletions {
  background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
  color: white;
}

.github-branch-detail .stat-item.contributors {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
}

.github-branch-detail .stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.github-branch-detail .stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.github-branch-detail .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.github-branch-detail .stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.github-branch-detail .author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.github-branch-detail .author-email {
  font-size: 0.85em;
  color: #6c757d;
  font-style: italic;
}

.github-branch-detail .linked-user {
  color: #2ed573;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(46, 213, 115, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  margin-top: 4px;
  display: inline-block;
  width: fit-content;
}

.github-branch-detail .relative-date {
  font-weight: 500;
  color: #495057;
}

.github-branch-detail .exact-date {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
}

.github-branch-detail .stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 2px;
}

.github-branch-detail .stat-badge.total {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
}

.github-branch-detail .file-changes-summary {
  padding: 12px 20px;
  background: #f8f9fa;
  border-top: 1px solid #f1f3f4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.github-branch-detail .change-summary {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.github-branch-detail .change-summary.added {
  background: rgba(46, 213, 115, 0.1);
  color: #27ae60;
}

.github-branch-detail .change-summary.modified {
  background: rgba(255, 193, 7, 0.1);
  color: #f39c12;
}

.github-branch-detail .change-summary.removed {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.github-branch-detail .commit-actions {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #f1f3f4;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.github-branch-detail .action-button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.github-branch-detail .action-button.primary {
  background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
  color: white;
}

.github-branch-detail .action-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
}

.github-branch-detail .action-button.secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.github-branch-detail .action-button.secondary:hover {
  background: rgba(108, 117, 125, 0.15);
  transform: translateY(-1px);
}

/* GitHub Commits List Styles */
.github-commits {
  max-width: 1400px;
  margin: 0 auto;
}

.github-commits .page-header {
  background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
  border-radius: 12px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.github-commits .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
}

.github-commits .page-header .header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.github-commits .page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-commits .filters-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
}

.github-commits .filters-section h3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
}

.github-commits .filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 24px;
}

.github-commits .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.github-commits .filter-group label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.9rem;
}

.github-commits .filter-input,
.github-commits .filter-select {
  padding: 10px 12px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: white;
}

.github-commits .filter-input:focus,
.github-commits .filter-select:focus {
  outline: none;
  border-color: #ff7675;
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.1);
}

.github-commits .filter-actions {
  padding: 0 24px 24px 24px;
}

.github-commits .clear-filters-button {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.github-commits .clear-filters-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.github-commits .commits-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.github-commits .section-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
}

.github-commits .section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
}

.github-commits .commits-list {
  display: flex;
  flex-direction: column;
}

.github-commits .commit-card {
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
  position: relative;
}

.github-commits .commit-card:last-child {
  border-bottom: none;
}

.github-commits .commit-card:hover {
  background: #f8f9fa;
  transform: translateX(4px);
}

.github-commits .commit-card:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
}

.github-commits .commit-header {
  padding: 20px 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.github-commits .commit-message {
  flex: 1;
}

.github-commits .commit-message strong {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.4;
  display: block;
  margin-bottom: 8px;
}

.github-commits .commit-description {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 8px;
}

.github-commits .commit-sha code {
  background: #495057;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 500;
}

.github-commits .commit-meta {
  padding: 0 24px 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.github-commits .commit-author {
  color: #495057;
  font-weight: 500;
}

.github-commits .linked-user {
  color: #2ed573;
  font-size: 0.85rem;
  font-weight: 500;
}

.github-commits .commit-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6c757d;
  font-size: 0.9rem;
}

.github-commits .repository {
  font-weight: 500;
}

.github-commits .branch {
  color: #2ed573;
  font-weight: 500;
}

.github-commits .commit-date {
  text-align: right;
  color: #6c757d;
  font-size: 0.9rem;
}

.github-commits .exact-date {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2px;
}

.github-commits .commit-stats {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #f1f3f4;
}

.github-commits .stats-summary {
  display: flex;
  gap: 16px;
  align-items: center;
}

.github-commits .files-changed {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3498db;
  font-weight: 500;
  font-size: 0.9rem;
}

.github-commits .additions {
  color: #27ae60;
  font-weight: 600;
  font-size: 0.9rem;
}

.github-commits .deletions {
  color: #e74c3c;
  font-weight: 600;
  font-size: 0.9rem;
}

.github-commits .file-changes-summary {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: white;
}

.github-commits .change-summary {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.github-commits .change-summary.added {
  background: rgba(46, 213, 115, 0.1);
  color: #27ae60;
}

.github-commits .change-summary.modified {
  background: rgba(255, 193, 7, 0.1);
  color: #f39c12;
}

.github-commits .change-summary.removed {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.github-commits .commit-actions {
  padding: 16px 24px;
  text-align: center;
  background: #f8f9fa;
}

.github-commits .action-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.github-commits .action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.github-commits .load-more-section {
  padding: 30px;
  text-align: center;
  background: white;
}

.github-commits .load-more-button {
  background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.github-commits .load-more-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 118, 117, 0.4);
}

.github-commits .load-more-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.github-commits .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.github-commits .empty-state h3 {
  color: #495057;
  margin-bottom: 12px;
}

/* GitHub Commit Detail Styles */
.github-commit-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.github-commit-detail .page-header {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  border-radius: 12px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.github-commit-detail .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
}

.github-commit-detail .header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  gap: 20px;
}

.github-commit-detail .title-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-commit-detail .commit-meta-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.9;
}

.github-commit-detail .repository-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.github-commit-detail .branch-name {
  font-size: 1rem;
  color: #2ed573;
  font-weight: 500;
}

.github-commit-detail .commit-sha-display {
  margin-top: 8px;
}

.github-commit-detail .commit-sha-display code {
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.github-commit-detail .header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: flex-start;
}

.github-commit-detail .back-button,
.github-commit-detail .external-link-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.github-commit-detail .back-button:hover,
.github-commit-detail .external-link-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.github-commit-detail .commit-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.github-commit-detail .info-card,
.github-commit-detail .stats-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.github-commit-detail .info-card h3,
.github-commit-detail .stats-card h3 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
  border-bottom: 1px solid #f1f3f4;
}

.github-commit-detail .commit-message-section {
  padding: 24px;
  border-bottom: 1px solid #f1f3f4;
}

.github-commit-detail .commit-message .message-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 12px;
}

.github-commit-detail .commit-message .message-body {
  color: #6c757d;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.github-commit-detail .info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
}

.github-commit-detail .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.github-commit-detail .info-item:last-child {
  border-bottom: none;
}

.github-commit-detail .info-item strong {
  color: #495057;
  font-weight: 600;
  min-width: 120px;
}

.github-commit-detail .info-item span {
  color: #6c757d;
  text-align: right;
}

.github-commit-detail .linked-user {
  color: #2ed573 !important;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 8px;
}

.github-commit-detail .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 24px;
}

.github-commit-detail .stat-item {
  text-align: center;
  padding: 20px 12px;
}

.github-commit-detail .stat-item:not(:last-child) {
  border-right: 1px solid #f1f3f4;
}

.github-commit-detail .stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.github-commit-detail .stat-number.additions {
  color: #27ae60;
}

.github-commit-detail .stat-number.deletions {
  color: #e74c3c;
}

.github-commit-detail .stat-number.total {
  color: #3498db;
}

.github-commit-detail .stat-label {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.github-commit-detail .file-changes-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.github-commit-detail .section-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
  border-bottom: 1px solid #f1f3f4;
}

.github-commit-detail .section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-commit-detail .section-header h3::before {
  content: '📁';
  font-size: 1.1em;
}

.github-commit-detail .file-changes-list {
  max-height: 400px;
  overflow-y: auto;
}

.github-commit-detail .file-change-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.github-commit-detail .file-change-item:last-child {
  border-bottom: none;
}

.github-commit-detail .file-change-item:hover {
  background: #f8f9fa;
}

.github-commit-detail .file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.github-commit-detail .file-icon {
  font-size: 1.1em;
}

.github-commit-detail .file-name {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  color: #495057;
}

.github-commit-detail .change-type {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.github-commit-detail .change-type.added {
  background: rgba(46, 213, 115, 0.2);
  color: #27ae60;
}

.github-commit-detail .change-type.modified {
  background: rgba(255, 193, 7, 0.2);
  color: #f39c12;
}

.github-commit-detail .change-type.removed {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.github-commit-detail .error-state,
.github-commit-detail .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.github-commit-detail .error-state h3,
.github-commit-detail .empty-state h3 {
  color: #495057;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.github-commit-detail .retry-button,
.github-commit-detail .back-button {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.github-commit-detail .retry-button:hover,
.github-commit-detail .back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.github-commit-detail .linked-user-link {
  background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.github-commit-detail .linked-user-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
  background: linear-gradient(135deg, #27ae60 0%, #2ed573 100%);
}

/* Responsive Design for Branch Detail and Commits */
@media (max-width: 1024px) {
  .github-branch-detail .branch-info {
    grid-template-columns: 1fr;
  }
  
  .github-commits .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .github-branch-detail .header-content,
  .github-commits .page-header .header-content,
  .github-commit-detail .header-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .github-branch-detail .title-section h2,
  .github-commits .page-header h2,
  .github-commit-detail .title-section h2 {
    font-size: 2rem;
  }
  
  .github-commit-detail .header-actions {
    align-self: stretch;
    justify-content: space-between;
  }
  
  .github-commit-detail .commit-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .github-commit-detail .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .github-commit-detail .stat-item {
    border-right: none;
    border-bottom: 1px solid #f1f3f4;
    padding: 16px 0;
  }
  
  .github-commit-detail .stat-item:last-child {
    border-bottom: none;
  }
  
  .github-commits .commit-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .github-commits .commit-date {
    text-align: left;
  }
  
  .github-commits .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .github-commits .stats-summary {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/*# sourceMappingURL=styles.css.map */
