
/* Base styles â€“ Enhanced and Bigger */
:root {
  --primary: #8838f7;
  --secondary: #fd71ca;
  --success: #20c997;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --danger: #dc3545;
  --main-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-bg: #fff;
  --text-color: #333;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--main-bg);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  padding: 20px;
}

.container {
  background: var(--card-bg);
  border-radius: 25px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15);
  padding: 50px;
  max-width: 800px;
  width: 100%;
  animation: fadeIn 0.6s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings */
h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* Message boxes */
.message {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-weight: 500;
  border: 1px solid;
  font-size: 1.1rem;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.delete-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.delete-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.copy-btn, .delete-btn {
  font-size: 0.95rem;
  padding: 10px 16px;
  margin-left: 8px;
}

/* File Input */
.file-input-wrapper {
  margin-bottom: 30px;
}

.fake-file-input {
  display: block;
  width: 100%;
  padding: 30px;
  border: 3px dashed var(--border-color);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-color);
  background: #f8f9fa;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fake-file-input:hover {
  border-color: var(--primary);
  background: #f0f8ff;
  transform: translateY(-2px);
}

.fake-file-input input[type="file"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.file-names {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 1rem;
  color: #666;
  min-height: 50px;
  display: flex;
  align-items: center;
}

/* Form Buttons */
.form-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.upload-btn {
  flex: 1;
  padding: 18px 25px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
}

.upload-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(136, 56, 247, 0.3);
}

.safebox-btn {
  padding: 18px 30px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  min-height: 60px;
}

.safebox-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
  color: white;
  text-decoration: none;
}

/* File list */
.files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
  min-height: 70px;
}

.files li:hover {
  background: #f8f9fa;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  flex: 1;
  font-size: 1.1rem;
}

.file-label:hover {
  color: var(--primary);
  text-decoration: none;
}

.file-icon {
  font-size: 1.3rem;
}

/* File actions */
.file-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.copy-btn,
.delete-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn {
  background: linear-gradient(135deg, #17a2b8, #138496);
  box-shadow: 0 3px 8px rgba(23, 162, 184, 0.3);
}

.copy-btn:hover {
  background: linear-gradient(135deg, #138496, #117a8b);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(23, 162, 184, 0.4);
}

.delete-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

.delete-btn:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
}

/* Folder name */
h3.folder-name {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 35px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer */
footer {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 1rem;
  padding: 20px 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card-bg);
  margin: 15% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal h3 {
  color: var(--danger);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.modal p {
  color: #555;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.modal-btn {
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.modal-btn.confirm {
  background: linear-gradient(135deg, var(--danger), #c82333);
  color: white;
}

.modal-btn.cancel {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Notification */
.notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: var(--success);
  color: white;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  z-index: 1300;
  transform: translateX(450px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, var(--success), #059669);
}

.notification.error {
  background: linear-gradient(135deg, var(--error), #dc2626);
}

.notification .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.notification .close-btn:hover {
  opacity: 1;
}

/* Progress bar */
.progress-bar-out {
  width: 100%;
  height: 25px;
  background: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  display: none;
  position: relative;
}

.progress-bar-in {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 12px;
}

.progress-bar-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  z-index: 5;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 30px;
  color: #666;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  color: #ddd;
}

.empty-state p {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
  }
  
  .sidebar-ads {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 15px;
  }
  
  .ad-banner {
    min-width: 250px;
    padding: 20px;
  }
  
  .container {
    padding: 30px 20px;
    margin: 0;
  }

  h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .fake-file-input {
    padding: 25px 20px;
    font-size: 1.1rem;
    min-height: 100px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .upload-btn, .safebox-btn {
    padding: 15px 20px;
    font-size: 1.1rem;
    min-height: 55px;
  }

  .file-actions {
    flex-direction: column;
    gap: 8px;
  }

  .copy-btn,
  .delete-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
    width: 100%;
    justify-content: center;
  }

  .files li {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .file-label {
    width: 100%;
    font-size: 1rem;
  }

  .file-actions {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 30px 20px;
    margin: 20% auto;
  }

  .modal-btn {
    font-size: 1rem;
    padding: 12px 20px;
    min-width: 100px;
  }

  .notification {
    width: 90%;
    right: 5%;
    top: 15px;
    font-size: 0.9rem;
    padding: 15px 20px;
  }

  .progress-bar-text {
    font-size: 0.9rem;
  }
  
  h3.folder-name {
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
  }
}
body.dark-mode {
  --main-bg: #1a1c1e; /* Ù¾Ø³â€ŒØ²Ù…ÛŒÙ†Ù‡ Ù…Ù„Ø§ÛŒÙ…â€ŒØªØ± */
  --card-bg: #242629; /* Ú©Ø§Ø±Øªâ€ŒÙ‡Ø§ Ùˆ Ù¾Ù†Ù„â€ŒÙ‡Ø§ */
  --text-color: #e0e0e0; /* Ù…ØªÙ† Ù‚Ø§Ø¨Ù„ Ø®ÙˆØ§Ù†Ø¯Ù† Ø¨Ø§ Ú©Ù†ØªØ±Ø§Ø³Øª Ù…ØªØ¹Ø§Ø¯Ù„ */
  --border-color: #3a3d41; /* Ø®Ø·ÙˆØ· Ø¬Ø¯Ø§Ú©Ù†Ù†Ø¯Ù‡ Ù†Ø±Ù…â€ŒØªØ± */
  
  --primary: #b39ddb;
  --secondary: #f48fb1;
  --success: #26c6da;
  --error: #ef5350;
  --warning: #ffca28;
  --info: #29b6f6;
  --danger: #e53935;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

body.dark-mode {
  background: var(--main-bg);
  color: var(--text-color);
}

body.dark-mode .container,
body.dark-mode .modal-content,
body.dark-mode .fake-file-input,
body.dark-mode .file-names,
body.dark-mode .files li,
body.dark-mode .progress-bar-out,
body.dark-mode .empty-state,
body.dark-mode .ad-banner,
body.dark-mode .notification {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

body.dark-mode .files li:hover {
  background: #2e3136 !important;
}

body.dark-mode .message.success {
  background: #1e2f2f;
  color: #80e8c3;
  border-color: #2a8d6c;
}

body.dark-mode .message.error {
  background: #3c2a2f;
  color: #ff8fa3;
  border-color: #d94356;
}

body.dark-mode .file-label:hover {
  color: var(--primary);
}

body.dark-mode .progress-bar-out {
  background: #2b2e31;
}

body.dark-mode .empty-state i {
  color: #777;
}

body.dark-mode .modal {
  background-color: rgba(20, 20, 20, 0.85);
}

body.dark-mode .modal-btn.confirm {
  background: linear-gradient(135deg, var(--danger), #a01515);
}

body.dark-mode .modal-btn.cancel {
  background: linear-gradient(135deg, #555, #444);
}

body.dark-mode .notification.success {
  background: linear-gradient(135deg, #204035, #0b6d5e);
}

body.dark-mode .notification.error {
  background: linear-gradient(135deg, #5b2d3b, #c2185b);
}
