:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #e5e7eb;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --border-color: #e5e7eb;
  --bg-color: #ffffff;
  --secondary-bg: #f9fafb;
  --sidebar-bg: #1f2937;
  --sidebar-text: #e5e7eb;
  --sidebar-active: #4f46e5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--secondary-bg);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
}

.app {
  height: 100vh;
}

/* Giriş Ekranı */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--secondary-bg);
}

.login-form {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--primary-color), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.login-header p {
  color: var(--light-text);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.login-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.error-message {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* Admin Panel */
.admin-container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.badge {
  background-color: rgba(79, 70, 229, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-badge {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  color: var(--sidebar-text);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-item svg {
  margin-right: 1rem;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background-color: var(--sidebar-active);
  color: white;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.user-details {
  overflow: hidden;
}

.user-name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--sidebar-text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.logout-btn svg {
  margin-right: 0.75rem;
}

/* Ana İçerik */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: var(--secondary-bg);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.content-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.content-actions {
  display: flex;
  gap: 0.75rem;
}

.refresh-btn,
.action-btn {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.refresh-btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.refresh-btn:hover {
  background-color: #d1d5db;
}

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

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

.refresh-btn svg,
.action-btn svg {
  margin-right: 0.5rem;
}

/* İçerik Bölümleri */
.content-section {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.files-icon {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.folders-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.users-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.storage-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

.card-content h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--light-text);
}

.card-content p {
  font-size: 1.5rem;
  font-weight: 600;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.stats-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.stats-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.file-types-list,
.recent-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-type-item,
.recent-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--secondary-bg);
  border-radius: var(--radius);
}

.type-info {
  display: flex;
  align-items: center;
}

.type-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.type-name {
  font-weight: 500;
}

.type-count,
.file-size {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Dosyalar Bölümü */
.files-header {
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-item {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.breadcrumb-item:hover {
  background-color: rgba(79, 70, 229, 0.1);
}

.breadcrumb-separator {
  color: var(--light-text);
}

.files-list-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.files-list-header {
  display: flex;
  background-color: var(--secondary-bg);
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.files-list {
  overflow-y: auto;
  max-height: 500px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

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

.file-item:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

.file-column {
  padding: 0 0.5rem;
}

.name-column {
  flex: 2.5;
  display: flex;
  align-items: center;
}

.file-icon {
  margin-right: 0.75rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-icon {
  color: var(--warning-color);
}

.type-column {
  flex: 1;
}

.size-column {
  flex: 0.8;
  text-align: right;
}

.date-column {
  flex: 1.5;
  text-align: center;
}

.actions-column {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.file-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.delete-action:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

/* Kullanıcılar Bölümü */
.users-list-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.users-list-header {
  display: flex;
  background-color: var(--secondary-bg);
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.users-list {
  overflow-y: auto;
  max-height: 500px;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

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

.user-item:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

.user-column {
  padding: 0 0.5rem;
}

.user-column.name-column {
  flex: 2;
}

.user-column.role-column {
  flex: 1;
}

.user-column.date-column,
.user-column.login-column {
  flex: 1.5;
  text-align: center;
}

.user-column.actions-column {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.user-role-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.role-admin {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.role-editor {
  background-color: rgba(79, 70, 229, 0.2);
  color: var(--primary-color);
}

/* Ayarlar Bölümü */
.settings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.settings-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.settings-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}

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

.settings-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.success-message {
  color: var(--success-color);
}

.error-message {
  color: var(--error-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--light-text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
}

.cancel-btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cancel-btn:hover {
  background-color: #d1d5db;
}

.delete-btn {
  background-color: var(--error-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

/* Bildirim */
.notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  border-left: 4px solid var(--primary-color);
}

.notification-content.success {
  border-left-color: var(--success-color);
}

.notification-content.error {
  border-left-color: var(--error-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-item {
    width: auto;
  }
  
  .sidebar-footer {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .settings-container {
    grid-template-columns: 1fr;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .content-actions {
    width: 100%;
  }
  
  .refresh-btn,
  .action-btn {
    flex: 1;
    justify-content: center;
  }
  
  .file-column.type-column,
  .user-column.role-column {
    display: none;
  }
  
  .files-list-header {
    display: none;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .file-column {
    width: 100%;
    padding: 0.25rem 0;
  }
  
  .actions-column {
    justify-content: flex-start;
  }
}

/* Dosya Yükleme Formu */
.upload-form-container {
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.upload-form {
  width: 100%;
}

.form-header {
  margin-bottom: 1rem;
}

.form-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 1.5rem;
  background-color: var(--secondary-bg);
}

.upload-dropzone:hover {
  border-color: var(--primary-color);
}

.upload-dropzone.dragover {
  border-color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.05);
}

.upload-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.upload-dropzone p {
  color: var(--light-text);
  font-size: 0.95rem;
}

.upload-dropzone .highlight {
  color: var(--primary-color);
  font-weight: 500;
}

.file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.upload-options {
  flex: 1;
}

.option {
  margin-bottom: 1rem;
}

.option:last-child {
  margin-bottom: 0;
}

/* İlerleme Çubuğu */
.progress-container {
  margin-top: 1rem;
}

.progress-bar-container {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--light-text);
}

/* Paylaşım Butonu */
.share-action {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.share-action:hover {
  color: var(--primary-hover);
  background-color: rgba(79, 70, 229, 0.1);
}

/* Bildirim içindeki link */
.notification-link {
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

/* URL Popup */
.url-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 2000;
  max-width: 90%;
  width: 450px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.url-popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.url-popup-content h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.url-display {
  display: flex;
  margin-bottom: 1rem;
}

.url-display input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.9rem;
}

.copy-again-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

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

.close-popup-btn {
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.close-popup-btn:hover {
  background-color: #d1d5db;
}

/* Dosya Adı Hoverında URL Gösterme */
.file-url-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: var(--sidebar-bg);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 10;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.file-name-wrapper {
  position: relative;
}

.file-name-wrapper:hover .file-url-tooltip {
  opacity: 1;
  transform: translateY(-4px);
} 