:root {
  --primary-color: #006837;
  --secondary-color: #008542;
  --background-light: #ffffff;
  --text-light: #1f2937;
  --border-light: #e5e7eb;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --header-height: 70px;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

[data-theme="dark"] {
  --primary-color: #008542;
  --secondary-color: #00a651;
  --background-light: #1f2937;
  --text-light: #f3f4f6;
  --border-light: #374151;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  color: var(--text-light);
  transition: all 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height) - 3.5rem);
}

@media (min-width: 1920px) {
  .container {
    max-width: 95%;
    padding: 2rem 4rem;
  }
}

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-light);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  max-width: 1800px;
  margin: 0 auto;
  height: 100%;
}

.header-content > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2.content-creator-title {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .header-title {
    font-size: 0.6rem;
  }
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.menu-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.side-menu {
  position: fixed;
  right: -100%;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--background-light);
  box-shadow: var(--shadow-light);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  padding: calc(var(--header-height) + 1rem) 1rem 1rem 1rem;
}

.side-menu.active {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.menu-items {
  list-style: none;
}

.menu-item {
  margin-bottom: 1rem;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.menu-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateX(-5px);
}

.menu-link i {
  margin-left: 0.75rem;
  width: 20px;
  text-align: center;
}

.submenu {
  list-style: none;
  margin-right: 2rem;
  margin-top: 0.5rem;
  display: none;
}

.submenu.active {
  display: block;
}

.menu-close {
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-close:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.floating-buttons {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

.float-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.float-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.float-button:hover::before {
  left: 100%;
}

.float-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.notification {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  right: 20px;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-light);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.5rem;
  text-align: center;
  position: sticky;
  bottom: 0;
  width: 100%;
  margin-top: auto;
}

.content-creator {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  width: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

[data-theme="dark"] .content-creator {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(75, 85, 99, 0.3);
}

.content-creator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1.5rem 1.5rem 0 0;
}

.content-creator-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  margin-bottom: 2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 104, 55, 0.1);
  transition: all 0.3s ease;
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .section {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(75, 85, 99, 0.3);
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.platform-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .platform-btn {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-color: #475569;
}

.platform-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 104, 55, 0.1), transparent);
  transition: left 0.5s;
}

.platform-btn:hover::before {
  left: 100%;
}

.platform-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 104, 55, 0.2);
}

.platform-btn.active {
  background: linear-gradient(135deg, rgba(0, 104, 55, 0.1), rgba(0, 133, 66, 0.1));
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 104, 55, 0.3);
}

.platform-btn i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.platform-btn:hover i {
  transform: scale(1.2) rotate(10deg);
}

.platform-btn .delete-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.platform-btn:hover .delete-btn {
  opacity: 1;
  transform: scale(1.1);
}

.delete-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.2) !important;
}

.add-platform-btn {
  background: linear-gradient(135deg, rgba(0, 104, 55, 0.1), rgba(0, 133, 66, 0.1));
  border: 2px dashed var(--primary-color);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.add-platform-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 104, 55, 0.2), transparent);
  transition: left 0.5s;
}

.add-platform-btn:hover::before {
  left: 100%;
}

.add-platform-btn:hover {
  background: linear-gradient(135deg, rgba(0, 104, 55, 0.2), rgba(0, 133, 66, 0.2));
  transform: scale(1.05);
}

.add-platform-btn i {
  font-size: 2rem;
  color: var(--primary-color);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--background-light);
  border-radius: 1.5rem;
  padding: 0.5rem;
  width: 100%;
  max-width: 423px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.9);
  transition: transform 0.3s ease;
  border-top: 10px solid var(--primary-color);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 1.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary-color);
  background: rgba(0, 104, 55, 0.1);
  transform: rotate(90deg);
}

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

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  font-size: 1rem;
  background: var(--background-light);
  color: var(--text-light);
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 104, 55, 0.1);
  transform: translateY(-1px);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.variable-input.form-textarea {
  min-height: 80px;
  height: auto;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 104, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 104, 55, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #1f2937;
}

[data-theme="dark"] .btn-secondary {
  background: linear-gradient(135deg, #4b5563, #6b7280);
  color: #f9fafb;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.prompt-editor {
  position: relative;
  padding-bottom: 15px;
}

.editor-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.editor-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.editor-tools-left {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.editor-tools-right {
  display: flex;
  gap: 0.75rem;
}

.copy-btn, .copy-generated-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .copy-btn, [data-theme="dark"] .copy-generated-btn {
  background: rgba(30, 41, 59, 0.9);
  color: #f9fafb;
}

.copy-btn:hover, .copy-generated-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.copy-generated-btn {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
}

.copy-generated-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: scale(1.1);
}

.insert-braces-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 104, 55, 0.2);
}

.insert-braces-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 55, 0.3);
}

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

.variable-group {
  position: relative;
}

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

.variable-clear-btn {
  background: linear-gradient(135deg, var(--error-color), #dc2626);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  opacity: 0.7;
}

.variable-clear-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.generated-preview {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid var(--primary-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  min-height: 120px;
  white-space: pre-wrap;
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  position: relative;
  font-size: 1rem;
}

[data-theme="dark"] .generated-preview {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f1f5f9;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.saved-prompt-item {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  margin-bottom: 1rem;
  cursor: pointer;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .saved-prompt-item {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-color: #475569;
}

.saved-prompt-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 104, 55, 0.1), transparent);
  transition: left 0.5s;
}

.saved-prompt-item:hover::before {
  left: 100%;
}

.saved-prompt-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 104, 55, 0.2);
}

.saved-prompt-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

[data-theme="dark"] .saved-prompt-date {
  color: #9ca3af;
}

.saved-prompt-preview {
  font-size: 0.875rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.saved-prompt-delete {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
}

.saved-prompt-item:hover .saved-prompt-delete {
  opacity: 1;
  transform: scale(1.1);
}

.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.language-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
}

.language-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 1rem;
    max-width: 100%;
  }

  .content-creator {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .section {
    padding: 1.5rem;
  }

  .action-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: auto;
    flex: 0 1 auto;
  }

  .btn-icon {
    gap: 0.25rem;
  }

  .btn-icon i {
    font-size: 0.75rem;
  }

  .editor-tools {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .editor-tools-left, .editor-tools-right {
    gap: 0.5rem;
  }

  .insert-braces-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .copy-btn, .copy-generated-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .variables-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .platform-btn {
    padding: 1rem 0.5rem;
  }

  .platform-btn i {
    font-size: 1.5rem;
  }

  .platform-btn span {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .content-creator-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.125rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .platform-btn {
    padding: 0.75rem 0.25rem;
  }

  .platform-btn i {
    font-size: 1.25rem;
  }

  .platform-btn span {
    font-size: 0.7rem;
  }
}

@media (min-width: 1400px) {
  .platform-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
  }

  .variables-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
  }

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

html[lang="en"] {
  direction: ltr;
}

html[lang="ar"] {
  direction: rtl;
}

[lang="en"] .header-content > div:first-child {
  flex-direction: row-reverse;
}

[lang="en"] .menu-toggle {
  margin-left: 1rem;
  margin-right: 0;
}

[lang="en"] .menu-link i {
  margin-right: 0.75rem;
  margin-left: 0;
}

[lang="en"] .side-menu {
  left: -100%;
  right: auto;
}

[lang="en"] .side-menu.active {
  left: 0;
  right: auto;
}

[lang="en"] .submenu {
  margin-left: 2rem;
  margin-right: 0;
}

[lang="en"] .floating-buttons {
  left: 1rem;
  right: auto;
}

[lang="en"] .notification {
  left: 20px;
  right: auto;
  transform: translateX(-120%);
}

[lang="en"] .notification.show {
  transform: translateX(0);
}

[lang="en"] .saved-prompt-delete,
[lang="en"] .copy-btn {
  right: 0.5rem;
  left: auto;
}

[lang="en"] .platform-btn .delete-btn {
  left: -8px;
  right: auto;
}

[lang="en"] .variable-clear-btn {
  left: auto;
  right: 0;
}

@media print {
  .header, .side-menu, .floating-buttons, .notification {
    display: none !important;
  }

  .container {
    padding-top: 0;
  }

  .content-creator {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
