:root {
    /* === ARKA PLANLAR === */
    --bg-primary: #f5f7fa;      /* Sayfa arka planı */
    --bg-secondary: #ffffff;    /* Kartlar / bloklar */
    --bg-card: #ffffff;
    --bg-hover: #f0f2f8;

    /* === ACCENT RENKLERİ (Aynı palette ama daha canlı tonlar) === */
    --accent-primary: #4f46e5;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --accent-success: #16a34a;
    --accent-warning: #f59e0b;
    --accent-danger: #dc2626;
    --accent-info: #3b82f6;

    /* === ÇERÇEVE & GÖLGELER === */
    --border-color: #d1d5db;
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* === METİN RENKLERİ === */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* === BORDER RADIUS === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* === ANİMASYONLAR === */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}


  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  }

  body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 20%),
      radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 20%);
  }

  .locked {
pointer-events: none;
opacity: 0.4;
}



  /* Layout Container */
  .app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 24px;
  }

  /* Header */
  .app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 18px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    animation: slideDown 0.5s ease;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: white;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.7);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
  }

  .brand-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
  }

  .brand-info h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #c73baf, #0086a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
  }

  .brand-info p {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* .dashboard-card {
  position: relative;
  overflow: hidden;
}

.dashboard-card.locked {
  filter: blur(3px);
  pointer-events: none;
}

.card-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  color: #fff;
  z-index: 5;
  text-align: center;
}

.card-locked-overlay i {
  font-size: 32px;
  color: var(--accent-primary);
}

.card-locked-overlay.hidden {
  display: none;
}
 */
 .lockable-card {
    position: relative;
    opacity: 0.65; /* Eskisi çok şeffaftı: 0.45 → 0.65 */
    pointer-events: none;
    filter: blur(0.5px); /* Eskisi 1px: daha hafif blur */
    transition: 0.3s ease;
}

.card-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35); /* Daha aydınlık, daha modern */
    backdrop-filter: blur(2px); /* Eskisi blur(6px): azaltıp daha şık yaptım */
    border-radius: 15px;
    z-index: 10;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #1e293b; /* Açık temaya uygun daha koyu metin */
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.card-locked-overlay i {
    font-size: 28px;
    margin-bottom: 8px;
    color: #4f46e5; /* Accent renginle uyumlu kilit ikonu */
    opacity: 0.9;
}

.lockable-card.unlocked {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}

.lockable-card.unlocked .card-locked-overlay {
    display: none;
}


  .auth-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
  }

  .auth-badge {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .auth-badge i {
    color: var(--accent-primary);
  }

  .password-example {
    background: rgba(233, 233, 233, 0.7);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
  }

  .password-example code {
    color: var(--accent-info);
    font-weight: 600;
    margin-left: 4px;
  }

  /* Main Content Area */
  .main-content {
    display: flex;
    flex: 1;
    gap: 24px;
  }

  /* Navigation Sidebar */
  .nav-sidebar {
    flex: 0 0 240px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 24px 0;
    box-shadow: var(--shadow-medium);
    height: fit-content;
    animation: slideRight 0.5s ease;
  }

  .nav-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 24px 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    cursor: pointer;
  }

  .nav-item:hover {
    background: rgba(70, 70, 70, 0.08);
    color: var(--text-primary);
  }

  .nav-item.active {
    background: rgba(121, 121, 121, 0.15);
    color: var(--text-primary);
    border-right: 3px solid var(--accent-primary);
  }

  .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
  }

  .nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }

  /* Content Panel */
  .content-panel {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    animation: fadeIn 0.6s ease;
  }

  .tab-content {
    display: none;
    padding: 28px;
    animation: fadeIn 0.4s ease;
  }

  .tab-content.active {
    display: block;
  }
/* LOGİN KISMI ANİMASYON */
/* MODAL ARKA PLAN */
.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-modal.hidden {
    display: none;
}

/* MODAL KUTUSU */
.login-modal-content {
    background: #1e2537;
    padding: 30px;
    border-radius: 16px;
    width: 380px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Loading */
.login-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff30;
    border-top-color: #4f46e5;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success & Fail */
.login-success i,
.login-fail i {
    font-size: 70px;
    margin-bottom: 10px;
}

.login-success i { color: #10b981; }
.login-fail i { color: #ef4444; }

.hidden {
    display: none !important;
}

  /* Kontrol Paneli */
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  .dashboard-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-light);
  }

  .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(99, 102, 241, 0.4);
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .card-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .card-icon.primary {
    background: rgba(79, 70, 229, 0.15);
    color: var(--accent-primary);
  }

  .card-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
  }

  .card-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
  }

  .card-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
  }

  .card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
  }

  /* Status Display */
  .status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(198, 198, 198, 0.5);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
  }

  .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
  }

  .status-indicator.active {
    background: var(--accent-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }

  .status-indicator.inactive {
    background: var(--accent-danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  }

  .status-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  .status-indicator.active::after {
    border: 2px solid var(--accent-success);
  }

  .status-indicator.inactive::after {
    border: 2px solid var(--accent-danger);
  }

  .status-text {
    font-size: 16px;
    font-weight: 600;
  }

  .status-details {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
  }

  /* Button Styles */
  .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    min-width: 120px;
  }

  .btn i {
    font-size: 16px;
  }

  .btn-primary {
    background: linear-gradient(90deg, #c73baf, #0086a0);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.6);
  }

  .btn-danger {
    background: var(--accent-danger);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  }

  .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.6);
  }

  .btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }

  .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
  }

  /* Login Form */
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
  }

  .form-input {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(212, 212, 212, 0.7);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-fast);
  }

  .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  }

  .login-feedback {
    font-size: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    display: none;
  }

  .login-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
  }

  .login-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  /* Logs Section */
  .logs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
  }

  .logs-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-light);
  }

  .logs-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(236, 236, 236, 0.5);
  }

  .logs-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logs-content {
    height: 320px;
    overflow-y: auto;
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.7);
  }

  .log-entry {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .log-time {
    color: var(--accent-info);
    font-weight: 500;
  }

  .log-message {
    color: var(--text-secondary);
  }

  .log-error {
    color: var(--accent-danger);
  }

  /* File Manager */
  .file-manager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
    height: 600px;
  }

  .file-explorer {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .explorer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(141, 141, 141, 0.5);
  }

  .explorer-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .explorer-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }

  .file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 6px;
  }

  .file-item:hover {
    background: rgba(155, 155, 155, 0.1);
  }

  .file-item.selected {
    background: rgba(79, 70, 229, 0.2);
    border-left: 3px solid var(--accent-primary);
  }

  .file-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }

  .file-icon.folder {
    color: var(--accent-warning);
  }

  .file-icon.file {
    color: var(--accent-info);
  }

  .file-name {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .file-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-secondary);
  }

  .file-editor {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .editor-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(138, 138, 138, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .editor-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mongo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }
  
  /* Genel durum */
  .mongo-status {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    transform-origin: left center;
  }
  
  /* Yükleniyor */
  .mongo-status.loading {
    background: #eef2ff;
    color: #4f46e5;
    animation: pulse 1.5s infinite;
  }
  
  /* Bağlı */
  .mongo-ok {
    background: #e6f9ee;
    color: #1f7a4d;
  }
  
  /* Bağlı değil / hata */
  .mongo-bad {
    background: #fdeaea;
    color: #a61d24;
  }
  
  /* Pulse animasyonu */
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }
  
  .mongo-ping {
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-weight: 700;
}


  /* Yenile butonu */
  .mongo-refresh {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
  }
  
  .mongo-refresh:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
  }
  
  .mongo-refresh.loading i {
    animation: spin 1s linear infinite;
  }
  
  /* Spin */
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  
  .file-path {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin: 0 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .editor-content {
    flex: 1;
    overflow: hidden;
  }

  .editor-textarea {
    width: 100%;
    height: 100%;
    padding: 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    outline: none;
  }

  .editor-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.5);
  }

  .editor-status {
    font-size: 14px;
    color: var(--text-muted);
  }

  .editor-status.saving {
    color: var(--accent-warning);
  }

  .editor-status.saved {
    color: var(--accent-success);
  }

  /* Animations */
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
  }

  @keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
  }

  /* Responsive */
  @media (max-width: 1200px) {
    .main-content {
      flex-direction: column;
    }
    
    .nav-sidebar {
      flex: 0 0 auto;
      width: 100%;
    }
    
    .file-manager {
      grid-template-columns: 1fr;
      height: auto;
    }
    
    .logs-container {
      grid-template-columns: 1fr;
    }
  }

  /* Mobil görünümde dosya düzenleyici tam boy görünsün */
@media (max-width: 768px) {
    .file-manager {
        flex-direction: column;
    }

    .file-explorer {
        height: 200px !important;
        margin-bottom: 12px;
    }

    .file-editor {
        height: calc(100vh - 260px) !important;
        min-height: 400px;
    }

    .editor-content {
        height: calc(100% - 80px) !important;
        min-height: 350px;
    }

    #editorArea {
        height: 100% !important;
        min-height: 350px !important;
        width: 100% !important;
    }
}


  @media (max-width: 768px) {
    .app-header {
      flex-direction: column;
      gap: 16px;
      align-items: flex-start;
    }
    
    .auth-info {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }
    
    .btn-group {
      flex-direction: column;
    }
    
    .btn {
      width: 100%;
    }
    
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Utility Classes */
  .hidden {
    display: none !important;
  }

  .fade-in {
    animation: fadeIn 0.4s ease;
  }