/* 
   ================================================================
   GOO Service Manager - Premium Custom Theme
   Created by Süper Mühendis Antigravity
   ================================================================
*/

:root {
  --theme-secondary: #0056D2;
  --theme-primary: #0F172A;
  --theme-blue: #0071BC;
  --theme-gradient: linear-gradient(135deg, #0F172A 0%, #004DB3 100%);
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --content-bg: #fdfdfd;
  --text-main: #2c3e50;
  --header-height: 60px;
}

/* Base Styles */
body {
  font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif !important;
  background-color: var(--content-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Sidebar */
.sidebar {
  background: var(--sidebar-bg) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-right: 1px solid rgba(200, 200, 200, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  flex-direction: column;
  top: 0 !important;
  z-index: 1001 !important; /* Stack above header */
}

/* Swap Logo and Search Bar Order */
.sidebar > .app-name {
  order: -2 !important;
}

.sidebar > .search {
  order: -1 !important;
  margin-top: 0 !important;
}

/* 🚫 Remove hyphens/bullets from sidebar list */
.sidebar-nav ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.sidebar-nav ul li {
  list-style: none !important;
  list-style-type: none !important;
}

.sidebar-nav ul li::before {
  content: none !important;
  display: none !important;
}

.sidebar-nav ul li a::before {
  content: none !important;
  display: none !important;
}

.sidebar-nav ul li a {
  font-weight: 500;
  color: #455a64 !important;
  border-radius: 8px;
  margin: 4px 15px;
  padding: 10px 15px !important;
  transition: all 0.2s ease;
}

.sidebar-nav ul li a:hover {
  background: rgba(0, 86, 210, 0.1) !important;
  color: var(--theme-secondary) !important;
  transform: translateX(5px);
}

.sidebar-nav ul li.active > a {
  background: var(--theme-gradient) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  font-weight: 600;
}

/* App Name Styling */
.app-name {
  padding: 20px 20px 5px 20px !important;
  background: transparent !important;
}

.app-name-link img {
  width: 160px !important;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-name-link:hover img {
  transform: scale(1.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--theme-blue);
}

/* Search Bar Styling */
.search input {
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 20px !important;
  padding: 10px 15px !important;
  transition: all 0.3s ease;
}

.search input:focus {
  box-shadow: 0 0 15px rgba(0, 86, 210, 0.15) !important;
  border-color: var(--theme-secondary) !important;
}

/* Content Area */
.markdown-section {
  max-width: 900px !important;
  padding: 80px 45px 40px 45px !important;
}

/* Animated Headlines */
h1, h2, h3 {
  position: relative;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,0,0,0.03);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--theme-gradient);
}

/* Table Design */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

table th {
  background: #f8f9fa !important;
  color: var(--text-main);
  font-weight: 600;
  padding: 15px !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

table td {
  padding: 12px 15px !important;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background: rgba(0, 86, 210, 0.02);
}

/* Warning & Alerts Customization */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 15px 20px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

/* Mermaid Diagram Center */
.mermaid {
  display: flex;
  justify-content: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  margin: 20px 0;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .sidebar {
    background: white !important;
  }
  .markdown-section {
    padding: 20px !important;
  }
}

/* Navbar / Header Styling */
.app-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 300px !important; /* Adjusted to prevent covering the sidebar */
    margin: 0 !important;
    padding: 15px 40px !important;
    background: var(--theme-gradient) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}



.app-nav a {
    color: white !important;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 !important;
}

.app-nav a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

@media screen and (max-width: 1200px) {
    .app-nav {
        padding: 10px 20px !important;
    }
    .app-nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 🏁 Global Custom Footer */
.custom-footer {
    padding: 40px 0 20px 0;
    margin-top: 60px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-logo {
    height: 24px;
    margin-right: 15px;
    vertical-align: middle;
    filter: grayscale(1) opacity(0.6);
}

.footer-right a {
    color: var(--theme-blue);
    text-decoration: none;
    font-weight: 600;
}

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

@media screen and (max-width: 768px) {
    .app-nav {
        left: 0 !important;
        padding: 15px 20px !important;
        justify-content: center;
    }
    .markdown-section {
        margin-top: 85px;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* 🏔️ Hero Section */
.hero-header {
    text-align: center;
    padding: 80px 20px 60px 20px;
    background: radial-gradient(circle at top right, rgba(0, 86, 210, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.05), transparent);
    border-radius: 30px;
    margin-bottom: 40px;
    margin-top: 50px;
}

.hero-header h1 {
    font-size: 3.5rem !important;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px !important;
}

.hero-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--theme-gradient);
    color: white !important;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary {
    background: white;
    color: var(--theme-secondary) !important;
    border: 2px solid var(--theme-secondary);
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

/* 🎴 Card System */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.module-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    color: inherit !important;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--theme-secondary);
}

.module-card i {
    font-size: 1.8rem;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: block;
}

.module-card h4 {
    margin: 10px 0;
    font-weight: 700;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Scrollbar and Other Tweaks */
::-webkit-scrollbar-thumb {
    background: var(--theme-secondary);
}

/* Copy Button Styling */
.docsify-copy-code-button {
    background: var(--theme-gradient) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* 🚀 Premium Finishing Touches (Top Border Removed) */

.sidebar-toggle {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .sidebar-toggle {
        display: flex !important;
        background: var(--theme-gradient) !important;
        border-radius: 0 8px 8px 0;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        bottom: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1002 !important;
    }
    .sidebar-toggle span {
        background: white !important;
    }
}

/* Smooth Scrolling */
/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* =======================================================
   PREMIUM UX/UI ADDITIONS:
   Alerts, Accordions (FAQ), and Tabs
======================================================= */

/* 🚨 Custom Premium Alerts */
.markdown-section p.tip, .markdown-section p.warn {
  border-radius: 12px !important;
  padding: 20px 20px 20px 60px !important;
  position: relative !important;
  background: white !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
  color: var(--text-main) !important;
  font-weight: 500;
  margin: 2em 0;
}

.markdown-section p.tip::before, .markdown-section p.warn::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--theme-blue);
}

.markdown-section p.tip {
  border-left: 4px solid var(--theme-blue) !important;
}

.markdown-section p.tip::before {
  content: "\f0eb"; /* fa-lightbulb */
}

.markdown-section p.warn {
  border-left: 4px solid var(--theme-secondary) !important;
}

.markdown-section p.warn::before {
  content: "\f071"; /* fa-exclamation-triangle */
  color: var(--theme-secondary);
}

/* 📌 Accordion (FAQ) / Details-Summary Styling */
.markdown-section details {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  overflow: hidden;
}

.markdown-section details[open] {
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border-color: rgba(0, 86, 210, 0.3); /* Theme orange */
}

.markdown-section summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none; /* remove default arrow */
  color: var(--text-main);
  outline: none;
}

.markdown-section summary::-webkit-details-marker {
  display: none;
}

.markdown-section summary::after {
  content: '\f067'; /* fa-plus */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-secondary);
  transition: transform 0.3s ease;
}

.markdown-section details[open] summary::after {
  content: '\f068'; /* fa-minus */
  transform: translateY(-50%) rotate(180deg);
}

.markdown-section details p {
  padding: 0 20px 20px 20px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

/* 💻 Custom Docsify Tabs Override */
:root {
  --docsifytabs-border-color: rgba(0,0,0,0.05);
  --docsifytabs-tab-highlight-color: var(--theme-secondary);
  --docsifytabs-tab-color: #64748b;
}

.docsify-tabs__tab {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  transition: color 0.3s ease;
}

.docsify-tabs__tab--active {
  color: var(--theme-secondary) !important;
}

/* 🚫 Anasayfada Pagination (İleri Sistem Mimarisi) Gizleme */
body:has(.hero-header) .docsify-pagination-container {
  display: none !important;
}

