:root {
  --primary: #0d4f3c;
  --primary-light: #1a6b52;
  --gold: #c5a059;
  --bg: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --danger: #e74c3c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  direction: rtl;
}

/* ٹاپ بار */
.topbar {
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.topbar h2 {
  font-size: 1.2rem;
  color: var(--gold);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
}
.btn-logout {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
}

/* ٹیبز (ذاتی اور شیئرڈ) */
.tabs {
  display: flex;
  background: white;
  padding: 10px 20px;
  border-bottom: 2px solid var(--border);
  gap: 10px;
}
.tab-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ایکشن بار (اپلوڈ اور نیا فولڈر) */
.action-bar {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
}
.btn-action {
  background: var(--gold);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-action:hover {
  opacity: 0.9;
}

/* فائلز اور فولڈرز کا گرڈ */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
}

.file-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.file-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.file-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}
.folder-icon {
  color: #f59e0b;
}
.file-icon-other {
  color: #3b82f6;
}
.file-name {
  font-size: 0.85rem;
  word-wrap: break-word;
  font-weight: 600;
}

/* اپلوڈ موڈل */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.modal-content h3 {
  margin-bottom: 20px;
  color: var(--primary);
}
.modal-content input[type="file"] {
  margin-bottom: 20px;
  width: 100%;
}
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}
/* چھوٹے ایکشن بٹنز */
.btn-action-sm {
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.btn-action-sm:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
