/* Command Center Custom Styles */

* {
  box-sizing: border-box;
}

/* Navigation */
.nav-link {
  color: #9ca3af;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: white;
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  color: white;
  border-left: 3px solid #6366f1;
}

/* Metric Cards */
.metric-card {
  transition: all 0.3s;
}

.metric-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
}

/* Tone Buttons */
.tone-btn {
  transition: all 0.2s;
  background: transparent;
}

.tone-btn:hover {
  border-color: #6366f1;
}

.tone-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

/* Sections */
.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

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

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* LinkedIn Preview Styling */
#preview-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#post-text {
  line-height: 1.6;
}

/* Copy Success Animation */
.copy-success {
  animation: pulse 0.3s ease;
}

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

/* Draft Items */
.draft-item {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.draft-item:hover {
  background: #334155;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  
  #sidebar.open {
    transform: translateX(0);
  }
  
  main {
    margin-left: 0 !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}
