/* Define theme colors based on Secure Ambit logo */
:root {
  --color-primary-dark: #2F4858;
  /* Deep Teal/Slate */
  --color-primary-light: #67B7A4;
  /* Light Mint Green */
  --color-primary-hover: #213540;
  /* Darker Teal */
}

body {
  font-family: "Inter", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode (default) */
body.light-theme {
  background-color: #f1f5f9;
  color: #1e293b;
}

/* Dark mode */
body.dark-theme {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.dark-theme {
  --bg-primary: #1e293b;
  --bg-secondary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-color: #475569;
}

body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
}

/* Theme toggle button */
.theme-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: var(--color-primary-dark);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 72, 88, 0.3);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(47, 72, 88, 0.4);
}

body.dark-theme .theme-toggle-btn {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* Style for the generated post textarea */
#generatedPost {
  min-height: 400px;
  white-space: pre-wrap;
  overflow: auto;
}

/* Focus Ring Style for Inputs */
.focus-ring-primary:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(103, 183, 164, 0.5);
  /* Mint color with transparency */
}

/* PREMIUM BUTTON STYLE */
.premium-button {
  /* Deep Teal/Slate Gradient */
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-hover) 100%);
  transition: all 0.3s ease;
  font-weight: 600;
}

.premium-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 15px rgba(47, 72, 88, 0.4);
  transform: translateY(-2px);
}

.premium-button:disabled {
  cursor: not-allowed;
  background: #a5b4fc;
  /* Light blue for disabled state */
  box-shadow: none;
}

/* Style for the "Copied!" alert */
.copy-alert {
  position: absolute;
  background-color: var(--bg-secondary);
  /* Tailwind emerald-500 */
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
  transform: translateY(5px);
  z-index: 50;
  box-shadow: 0 4px 5px rgba(16, 185, 129, 0.3);
  display: inline-block;
}

.copy-alert.show {
  opacity: 1;
  transform: translateY(0);
}

/* Share Buttons */
.share-button {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.share-button:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-button.facebook {
  background-color: #1877F2;
}

.share-button.twitter {
  background-color: #1DA1F2;
}

.share-button.linkedin {
  background-color: #0A66C2;
}

.share-button.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.main-tittle {
  color: var(--color-primary-dark);
}

/* Dark theme for cards and containers */
body.dark-theme .main-container {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .main-container header {
  border-color: #334155;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background-color: #0f172a;
  color: #f1f5f9;
  border-color: #334155;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  border-color: var(--color-primary-light);
}

body.dark-theme .output-card {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

body.dark-theme .output-card label {
  color: #cbd5e1;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
  color: #f1f5f9;
}

body.dark-theme p {
  color: #e2e8f0;
}

body.dark-theme .text-gray-500,
body.dark-theme .text-gray-600,
body.dark-theme .text-gray-700 {
  color: #cbd5e1 !important;
}

body.dark-theme .text-gray-400,
body.dark-theme .text-gray-900 {
  color: #94a3b8 !important;
}

body.dark-theme .text-gray-800 {
  color: #f1f5f9 !important;
}

body.dark-theme .bg-white {
  background-color: #1e293b !important;
}

body.dark-theme .bg-gray-50 {
  background-color: #0f172a !important;
}

body.dark-theme .bg-red-50 {
  background-color: #7f1d1d !important;
}

body.dark-theme .border-gray-100,
body.dark-theme .border-gray-200 {
  border-color: #334155 !important;
}

body.dark-theme .border-b {
  border-color: #334155 !important;
}

body.dark-theme .border-t {
  border-color: #334155 !important;
}

/* Navbar Styling */
.navbar {
  background-color: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.dark-theme .navbar {
  background-color: #1e293b;
  border-bottom-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  transition: opacity 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

body.dark-theme .navbar-brand {
  color: var(--color-primary-light);
}

.navbar-cta {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-hover) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.navbar-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(47, 72, 88, 0.3);
  transform: translateY(-2px);
}

body.dark-theme .navbar-cta {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  color: white;
}

body.dark-theme .navbar-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: white;
}

/* Footer Styling */
.footer {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  margin-top: 10px;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

body.dark-theme .footer {
  background-color: #0f172a;
  border-top-color: #334155;
  color: #cbd5e1;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-text {
  margin: 0.5rem 0;
}

.footer-link {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

body.dark-theme .footer-link {
  color: var(--color-primary-light);
}

/* Main body layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Logo switching */
.brand-logo {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.light-logo {
  display: block;
}

.dark-logo {
  display: none;
}

body.dark-theme .light-logo {
  display: none;
}

body.dark-theme .dark-logo {
  display: block;
}

/* Scrollbar Styling - Brand Colors */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 0 8px rgba(103, 183, 164, 0.5);
}

/* Dark theme scrollbar adjustments */
body.dark-theme::-webkit-scrollbar-track {
  background: #1e293b;
}

body.dark-theme::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  border-color: #1e293b;
  box-shadow: 0 0 8px rgba(103, 183, 164, 0.2);
}

body.dark-theme::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 0 8px rgba(103, 183, 164, 0.4);
}

/*# sourceMappingURL=style.css.map */