:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --accent: #f093fb;
  --bg-dark: #0f0e17;
  --bg-darker: #0a0a0f;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text: #fffffe;
  --text-muted: #a7a9be;
  --success: #06ffa5;
  --warning: #ffd166;
  --error: #ef4444;
  --border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Segoe UI', 'Kalpurush', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.back-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  background: var(--secondary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.back-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: var(--primary);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #00d4a1);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(6, 255, 165, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(6, 255, 165, 0.5);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #ffb700);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="color"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  backdrop-filter: blur(10px);
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.15);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="url"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(102, 126, 234, 0.5);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a7a9be' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

select option {
  background: var(--bg-dark);
  color: var(--text);
  padding: 10px;
}

input[type="color"] {
  height: 50px;
  padding: 5px;
  cursor: pointer;
}

input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="tel"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  select,
  textarea {
    backdrop-filter: none;
  }
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--success);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.notification.error {
  background: var(--error);
}

header {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .back-btn {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 15px;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .notification {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }
}

.tool-header {
  text-align: center;
  margin: 20px auto 30px;
  max-width: 700px;
}

.upload-section {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 30px;
}

.upload-area {
  border: 2px dashed var(--primary);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(102, 126, 234, 0.05);
}

.upload-area:hover, .upload-area.drag-over {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--accent);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.upload-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.upload-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.progress-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 8px;
}

.section-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 20px 0 15px;
  font-weight: 600;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .upload-area {
    padding: 30px 15px;
  }
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out, logoFloat 3s ease-in-out 0.8s infinite;
}

.logo-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(240, 147, 251, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto 25px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 50px rgba(102, 126, 234, 1), 0 0 80px rgba(240, 147, 251, 0.7), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.logo-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.logo-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 2s infinite;
}

.search-box {
  max-width: 600px;
  margin: 30px auto;
  position: relative;
  animation: fadeIn 1.2s ease-out;
}

.search-input {
  width: 100%;
  padding: 18px 55px 18px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.update-banner {
  max-width: 700px;
  margin: 25px auto;
  padding: 20px 30px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15));
  border: 2px solid var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeIn 1s ease-out, pulse 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.update-icon {
  font-size: 2.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-content {
  flex: 1;
}

.update-title {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.update-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .update-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .update-title {
    font-size: 1.1rem;
  }
  
  .update-text {
    font-size: 0.9rem;
  }
}

.category-section {
  margin: 50px 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.category-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.category-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tool-card:hover::before {
  opacity: 0.1;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: var(--primary);
}

.tool-card:active {
  transform: translateY(-4px);
}

.tool-card.is-favorite {
  border: 2px solid var(--success);
  background: rgba(6, 255, 165, 0.05);
  box-shadow: 0 0 20px rgba(6, 255, 165, 0.2);
}

.tool-card.is-favorite::before {
  background: linear-gradient(135deg, var(--success), #00d4aa);
}

.tool-card.is-favorite:hover {
  border-color: var(--success);
  box-shadow: 0 15px 40px rgba(6, 255, 165, 0.4);
}

.tool-card.is-favorite .tool-icon {
  background: linear-gradient(135deg, var(--success), #00d4aa);
}

@media (max-width: 640px) {
  .tool-card, .search-input {
    backdrop-filter: none;
  }
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.tool-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.tool-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;
}

.badge-new {
  background: linear-gradient(135deg, var(--success), #00d4a1);
  color: var(--bg-dark);
}

.badge-popular {
  background: linear-gradient(135deg, var(--warning), #ffb700);
  color: var(--bg-dark);
}

.badge-pro {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text);
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.footer-text-main {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.footer-highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-5px);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.no-results-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 20px;
}

.tool-credit {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.credit-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5), 0 0 30px rgba(240, 147, 251, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.7), 0 0 45px rgba(240, 147, 251, 0.5);
}

.credit-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.credit-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.credit-name {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .tool-credit {
    margin-top: 30px;
    padding: 15px;
  }
  
  .credit-logo {
    width: 50px;
    height: 50px;
  }
}

/* Filter Buttons */
.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Favorite Button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.fav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ff6b6b;
  transform: scale(1.1);
}

.fav-btn.active {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.fav-btn.active i {
  font-weight: 900;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.back-to-top.show {
  display: flex;
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  .fav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-notification i {
  font-size: 1.2rem;
}


/* Light Theme */
body[data-theme="light"] {
  --bg-dark: #f8f9fa;
  --bg-darker: #ffffff;
  --card-bg: rgba(0, 0, 0, 0.03);
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --border: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .stars {
  opacity: 0;
}

body[data-theme="light"] .card {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .tool-card {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .tool-card:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

body[data-theme="light"] .back-btn,
body[data-theme="light"] .back-to-top {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .filter-btn {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .quick-action-btn {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Smooth transitions for theme switching */
body {
  transition: background 0.3s ease, color 0.3s ease;
}

.card,
.tool-card,
.filter-btn,
.quick-action-btn {
  transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toast-notification {
    bottom: 70px;
    left: 20px;
    right: 20px;
    transform: translateX(0) translateY(100px);
    font-size: 0.9rem;
    padding: 12px 20px;
  }
  
  .toast-notification.show {
    transform: translateX(0) translateY(0);
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}


/* Card Size Variations */
.tools-grid.size-small {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.tools-grid.size-small .tool-card {
  padding: 18px;
}

.tools-grid.size-small .tool-icon {
  width: 45px;
  height: 45px;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.tools-grid.size-small .tool-name {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tools-grid.size-small .tool-desc {
  font-size: 0.85rem;
}

.tools-grid.size-large {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
}

.tools-grid.size-large .tool-card {
  padding: 30px;
}

.tools-grid.size-large .tool-icon {
  width: 75px;
  height: 75px;
  font-size: 2rem;
  margin-bottom: 20px;
}

.tools-grid.size-large .tool-name {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.tools-grid.size-large .tool-desc {
  font-size: 1rem;
}

/* List View */
.tools-grid.view-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.tools-grid.view-list .tool-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
}

.tools-grid.view-list .tool-icon {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.tools-grid.view-list .tool-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tools-grid.view-list .tool-name {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.tools-grid.view-list .tool-desc {
  font-size: 0.9rem;
}

.tools-grid.view-list .tool-badge {
  margin-left: auto;
  align-self: center;
}

.tools-grid.view-list .fav-btn {
  position: static;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .view-controls {
    top: 75px;
    right: 15px;
    padding: 6px;
  }
  
  .view-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .tools-grid.size-small {
    grid-template-columns: 1fr;
  }
  
  .tools-grid.size-large {
    grid-template-columns: 1fr;
  }
}

/* Unified Settings Menu */
.settings-menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 1001;
}

.settings-menu-btn:hover {
  transform: translateY(-3px) rotate(90deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.settings-dropdown {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
  min-width: 280px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.settings-dropdown.show {
  display: flex;
}

.settings-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.settings-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.settings-option:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primary);
  transform: translateX(3px);
}

.settings-option i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

.settings-option span {
  flex: 1;
  font-size: 0.9rem;
}

.settings-option.active {
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--primary);
}

.pwa-badge {
  background: var(--success);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Offline Indicator */
.offline-indicator {
  position: fixed;
  bottom: 95px;
  left: 30px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  z-index: 999;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.offline-indicator.show {
  display: flex;
}

.offline-indicator.online {
  background: rgba(6, 255, 165, 0.9);
  border-color: rgba(6, 255, 165, 0.5);
}

/* Tool Selection Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--error);
  border-color: var(--error);
  color: white;
}

.tool-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tool-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-checkbox-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primary);
}

.tool-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.tool-checkbox-item label {
  flex: 1;
  cursor: pointer;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .settings-menu-btn {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .settings-dropdown {
    top: 70px;
    right: 15px;
    min-width: 250px;
  }
  
  .offline-indicator {
    bottom: 75px;
    left: 20px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .modal-content {
    padding: 20px;
  }
}

/* Multitasking Container */
.multitask-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.multitask-container.show {
  opacity: 1;
  transform: scale(1);
}

/* Tab Bar */
.multitask-tab-bar {
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--border);
  padding: 8px 12px;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.multitask-close-btn {
  background: linear-gradient(135deg, #f93e3e, #ff6b6b);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.multitask-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 62, 62, 0.4);
}

.multitask-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  padding: 0 8px;
}

.multitask-tabs::-webkit-scrollbar {
  height: 4px;
}

.multitask-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.multitask-tabs::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

/* Individual Tab */
.multitask-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.multitask-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.multitask-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-name {
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Area */
.multitask-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-darker);
}

.multitask-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.multitask-iframe.active {
  opacity: 1;
  pointer-events: all;
}

/* PWA Badge in Settings */
.pwa-badge {
  background: linear-gradient(135deg, #06ffa5, #00d4aa);
  color: #0a0a0f;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .multitask-tab-bar {
    padding: 6px 8px;
    gap: 6px;
  }
  
  .multitask-close-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .multitask-tab {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .tab-name {
    max-width: 100px;
  }
}
