:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --secondary: #7209b7;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #f8961e;
  --danger: #ef233c;
  --gray: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 10px;
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.6;
  box-sizing: border-box;
}

.container {
  width: calc(100vw - 100px);
  max-width: none;
  margin: 0;
  padding: 10px 50px 0 50px;
  min-height: calc(100vh - 20px);
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

h1 {
  color: var(--primary-dark);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  color: #23272f;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--dark);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5a189a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: #e9ecef;
  color: var(--dark);
}

.btn-secondary:hover {
  background: #dee2e6;
}

.btn-icon {
  font-size: 1.1rem;
}

.response-container {
  position: relative;
}

.response-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

pre {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  white-space: pre-wrap;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  border: 1px solid #e9ecef;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 0;
}

.tool-desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.param-item {
  margin-bottom: 0;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
  background: var(--gray);
}

.status-active {
  background: var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #dee2e6;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

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

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.history-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid var(--primary);
  background: white;
}

.history-item:hover {
  background: #f8f9fa;
}

.history-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.history-details {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  gap: 1rem;
}

.endpoint-manager {
  margin-top: 1rem;
}

.endpoint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.endpoint-tag {
  background: #e9ecef;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.endpoint-tag button {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  width: auto;
  font-size: 0.75rem;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
  color: var(--gray);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

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

.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hero-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

@media (max-width: 1200px) {
  #tools-map svg {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0.5rem 0 0 0;
  }
  #tools-map {
    min-height: 300px;
  }
  .param-group {
    grid-template-columns: 1fr;
  }
  .logo-container {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-logo-img {
  transition: filter 0.3s;
}
body.dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}
body.dark .card {
  background: #212529;
  color: #fff;
}
body.dark pre {
  background: #343a40;
  color: #fff;
  border-color: #495057;
}
body.dark input, body.dark select, body.dark textarea {
  background: #343a40;
  color: #fff;
  border-color: #495057;
}
body.dark .tool-desc {
  background: #343a40;
  color: #fff;
}
body.dark .endpoint-tag {
  background: #343a40;
  color: #fff;
}
body.dark .footer {
  border-top-color: #495057;
  color: #fff;
}
body.dark .footer-links a,
body.dark .footer p,
body.dark label,
body.dark .card-title,
body.dark .subtitle,
body.dark .history-details,
body.dark .history-title,
body.dark .tab,
body.dark .tab-content,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p,
body.dark span,
body.dark div,
body.dark ul,
body.dark li {
  color: #fff !important;
}
body.blue .footer-logo-img,
body.blue .logo-img {
  filter: none;
  background: #e6f0ff;
  border-radius: 8px;
  padding: 2px 6px;
}
body.blue {
  background: linear-gradient(135deg, #e6f0ff 0%, #cfe2ff 100%);
}
body.blue .card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

#tools-map {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 400px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 0 10px 0;
}

#paper-container {
  position: absolute;
  right: 0;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: scroll;
}

#logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #ffffff;
  border: 1px solid #d3d3d3;
  padding: 5px;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.3);
}

/* تم حذف كل CSS يخص الدياجرام و Checklist نهائياً */

.tab .btn-icon, .tab i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  vertical-align: middle;
  color: inherit;
  transition: color 0.3s;
}

body.dark .card,
body.dark .tools-group .card {
  background: #23272f;
  color: #fff;
  border-color: #333;
}
body.dark .tools-group hr {
  border-top: 2px solid #444;
}
body.dark .tools-group .card {
  background: #23272f;
  color: #fff;
  border-color: #333;
}
body.dark .tools-group .card div[style*='background: #fff'] {
  background: #23272f !important;
  color: #fff !important;
  border-color: #333 !important;
}
body.dark .tools-group .card div[style*='background: #fff;'] {
  background: #23272f !important;
  color: #fff !important;
  border-color: #333 !important;
}
body.dark .tools-group .card .tool-status-icon {
  color: #27ae60 !important;
}
body.dark .tools-group .card .tool-status-icon[title*='missing'] {
  color: #f1c40f !important;
}
body.dark .tools-group .card .tool-status-icon[title*='error'] {
  color: #e74c3c !important;
}
body.dark .tools-group .card div[style*='border: 1px solid #ccc'] {
  background: #23272f !important;
  color: #fff !important;
  border-color: #333 !important;
}
body.dark .history-item {
  background: #23272f;
  color: #fff;
  border-left: 3px solid #4cc9f0;
}
body.dark .history-item:hover {
  background: #2c2f36;
  color: #fff;
}

.mcp-sdk-tab-content {
  background: transparent !important;
  color: var(--text-color, #23272f) !important;
  box-shadow: none !important;
  border: none !important;
}
#mcp-sdk-content {
  background: transparent !important;
  border: none !important;
}
body.dark .mcp-sdk-tab-content, body.dark #mcp-sdk-content {
  background: transparent !important;
  color: #fff !important;
}
.tabs .tab img[src*='laravel'] {
  vertical-align: middle;
  margin-right: 0.4em;
  height: 1.2em;
}
.btn-secondary .fa-magic {
  color: #6c47ff;
  margin-right: 0.5em;
}
.card-title, label, .card .subtitle, .card .tool-desc, .card .history-details, .card .history-title, .card .tab, .card .tab-content, .card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .card p, .card span, .card div, .card ul, .card li {
  color: #23272f !important;
}
body.dark .card-title,
body.dark label,
body.dark .card .subtitle,
body.dark .card .tool-desc,
body.dark .card .history-details,
body.dark .card .history-title,
body.dark .card .tab,
body.dark .card .tab-content,
body.dark .card h1,
body.dark .card h2,
body.dark .card h3,
body.dark .card h4,
body.dark .card h5,
body.dark .card h6,
body.dark .card p,
body.dark .card span,
body.dark .card div,
body.dark .card ul,
body.dark .card li {
  color: #fff !important;
}

/* 1. Add toggle switch styles */
/* 2. Style copy icon in code blocks (right, clear, feedback) */
/* 3. Style Privacy Policy link in footer */

/* Add any needed styles for the Privacy Policy link in the footer */
.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Add any needed styles for the Privacy Policy link in the footer */
.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* About card theme support */
.about-card {
  background: #fff;
  color: #23272f;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-radius: 16px;
  transition: background 0.3s, color 0.3s;
}
body.dark .about-card {
  background: #23273a;
  color: #f3f6fa;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.about-card .about-companies > div {
  background: #fff;
  color: #23272f;
  transition: background 0.3s, color 0.3s;
}
body.dark .about-card .about-companies > div {
  background: #23273a;
  color: #f3f6fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.about-company-card {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s;
}
body.dark .about-company-card {
  background: #23273a;
  color: #f3f6fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.about-company-title {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #23272f;
  transition: color 0.3s;
}
body.dark .about-company-title {
  color: #f3f6fa;
}
.about-company-desc {
  font-size: 1rem;
  color: #23272f;
  margin-bottom: 1.2rem;
  text-align: left;
  transition: color 0.3s;
}
body.dark .about-company-desc {
  color: #f3f6fa;
}
.about-company-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s;
}
body.dark .about-company-link {
  color: #4cc9f0;
}

/* Responsive About Section Enhancements */
.about-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.about-img-col {
  flex: 1;
  min-width: 260px;
  max-width: 500px;
  text-align: center;
}
.about-img-col img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.about-text-col {
  flex: 2;
  min-width: 260px;
  max-width: 700px;
  text-align: left;
}
.about-video-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.about-video-section iframe {
  max-width: 100vw;
  width: 100%;
  height: 315px;
  border-radius: 12px;
}
@media (max-width: 1200px) {
  .about-row {
    gap: 1.5rem;
  }
  .about-img-col {
    max-width: 350px;
  }
  .about-text-col {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .about-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .about-img-col, .about-text-col {
    max-width: 100%;
    min-width: 0;
  }
  .about-img-col img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  .about-video-section iframe {
    height: 220px;
  }
}
@media (max-width: 600px) {
  .about-row {
    gap: 0.7rem;
  }
  .about-video-section iframe {
    height: 160px;
  }
}
.about-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  padding: 2.5rem 1rem 2rem 1rem;
}
.about-company-card {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s;
}
body.dark .about-company-card {
  background: #23273a;
  color: #f3f6fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
@media (max-width: 900px) {
  .about-companies {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0.5rem 1.5rem 0.5rem;
  }
  .about-company-card {
    max-width: 100%;
    min-width: 0;
    padding: 1.2rem 0.7rem;
  }
}

@media (max-width: 480px) {
  html, body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    overflow-x: hidden !important;
  }
  .container {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0.5rem 0 0 0 !important;
    min-height: 100vh;
    box-sizing: border-box;
  }
  .card, .about-card, .card.about-card {
    padding: 0.7rem 0.3rem !important;
    margin-bottom: 1rem !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }
  .card-title, .about-company-title, h1, h2, h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }
  .subtitle, .about-company-desc, .about-text-col p, .about-text-col h2 {
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
  }
  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.7rem;
    border-bottom-width: 1px;
    overflow-x: auto;
    padding: 0 0.2rem;
  }
  .tab {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.98rem !important;
    min-width: 90px;
    border-bottom-width: 2px;
  }
  .tab-content, .about-row, .about-companies {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .about-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }
  .about-img-col, .about-text-col {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  .about-img-col img {
    max-width: 100vw !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
  }
  .about-company-card {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1rem 0.3rem !important;
    margin-bottom: 0.7rem !important;
  }
  .footer {
    padding: 0.7rem 0.2rem 0.2rem 0.2rem !important;
    font-size: 0.85rem !important;
    margin-top: 1.2rem !important;
  }
  .footer-logos {
    gap: 0.7rem !important;
    flex-direction: column !important;
  }
  .footer-logo-img {
    height: 32px !important;
    max-width: 90px !important;
  }
  .footer-links {
    flex-direction: column !important;
    gap: 0.3rem !important;
    margin-bottom: 0.5rem !important;
  }
  .endpoint-list, .param-group {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  pre, code {
    font-size: 0.92rem !important;
    padding: 0.7rem !important;
    border-radius: 8px !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
  }
  input, select, textarea {
    font-size: 0.98rem !important;
    padding: 0.5rem 0.7rem !important;
    border-radius: 8px !important;
  }
  .about-video-section iframe {
    height: 140px !important;
    min-width: 100% !important;
    max-width: 100vw !important;
  }
} 