/*
 * BizIdea - Modern Dark Theme
 */

:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --secondary: #10b981;
  --secondary-light: #34d399;
  --secondary-dark: #059669;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark: #7c3aed;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Dark theme colors */
  --dark-bg: #111827;
  --dark-surface: #1f2937;
  --dark-surface-lighter: #2d3748;
  --dark-border: #374151;
  --dark-text: #f9fafb;
  --dark-text-muted: #9ca3af;
  
  --light: #f9fafb;
  --light-darker: #f3f4f6;
  --gray: #9ca3af;
  --gray-light: #e5e7eb;
  --gray-dark: #4b5563;
  --dark: #1f2937;
  --dark-lighter: #374151;
  --text-dark: #111827;
  --text-light: #f9fafb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.14);
  
  /* Glow effects */
  --glow-primary: 0 0 15px rgba(59, 130, 246, 0.5);
  --glow-secondary: 0 0 15px rgba(16, 185, 129, 0.5);
  --glow-accent: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Base styles */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container styles */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--dark-surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--dark-border);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo-biz {
  color: var(--primary-light);
}

.logo-idea {
  color: var(--secondary-light);
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-light);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 10px var(--accent-light);
}

/* Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation li {
  position: relative;
}

.navigation a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: 500;
}

.navigation a:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.navigation a i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.navigation li.active a {
  color: var(--primary-light);
  font-weight: 600;
}

/* Enhanced Navigation Submenu */
.navigation-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  min-width: 180px;
  background-color: var(--dark-surface-lighter);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border: 1px solid rgba(55, 65, 81, 0.3);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(45, 55, 72, 0.98);
}

.navigation-submenu li {
  width: 100%;
}

.navigation-submenu a {
  padding: 0.75rem 1rem;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
  margin: 0.125rem 0.5rem;
}

.navigation-submenu a:hover {
  background-color: rgba(31, 41, 55, 0.5);
  color: var(--primary-light);
}

.navigation-submenu a.active {
  background-color: rgba(31, 41, 55, 0.7);
  color: var(--primary-light);
  font-weight: 600;
}

.navigation-submenu-header {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  opacity: 0.8;
  border-bottom: 1px solid rgba(55, 65, 81, 0.2);
  margin-bottom: 0.5rem;
  background-color: rgba(31, 41, 55, 0.4);
}

.navigation-submenu-section {
  border-top: 1px solid rgba(55, 65, 81, 0.2);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.navigation-submenu-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  background-image: linear-gradient(145deg, var(--dark-surface) 0%, var(--dark-surface-lighter) 100%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(55, 65, 81, 0.1);
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.navigation-submenu a:hover .navigation-submenu-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -2px rgba(0, 0, 0, 0.15), 0 3px 6px -2px rgba(0, 0, 0, 0.1);
  color: var(--primary-light);
}

.navigation-submenu-content {
  display: flex;
  flex-direction: column;
}

.navigation-submenu-label {
  font-weight: 500;
  color: var(--dark-text);
}

.navigation-submenu-description {
  font-size: 0.7rem;
  color: var(--dark-text-muted);
  margin-top: 0.1rem;
}

.danger-item .navigation-submenu-icon {
  background-image: linear-gradient(145deg, rgba(153, 27, 27, 0.3) 0%, rgba(127, 29, 29, 0.2) 100%);
  color: var(--danger);
  border-color: rgba(153, 27, 27, 0.2);
}

.danger-item .navigation-submenu-label {
  color: var(--danger);
}

.danger-item .navigation-submenu-description {
  color: rgba(239, 68, 68, 0.7);
}

.danger-item:hover {
  background-color: rgba(153, 27, 27, 0.1);
}

/* Mobile menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--dark-text);
  font-size: 1.25rem;
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }
  
  .nav-content {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--dark-surface);
    padding: 1rem;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    border-top: 1px solid var(--dark-border);
  }
  
  .nav-content.active {
    transform: translateX(0);
  }
  
  .navigation {
    flex-direction: column;
    width: 100%;
  }
  
  .navigation.right {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-border);
  }
  
  .navigation-submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
  }
  
  .navigation li.show-submenu .navigation-submenu {
    display: block;
  }
}

/* Cards */
.card {
  background-color: var(--dark-surface);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--dark-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--dark-border);
  font-weight: 600;
  color: var(--dark-text);
  font-size: 1.125rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--dark-border);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Stats card */
.stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
}

.stat-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--dark-text-muted);
}

.stat-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  margin-right: 1rem;
  font-size: 1.25rem;
  color: var(--primary-light);
}

.stat-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--dark-text);
}

.stat-card-footer {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.stat-card-footer i {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.stat-card-footer:hover i {
  transform: translateX(3px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  gap: 0.5rem;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

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

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn i {
  margin-left: 0.5rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

table th {
  font-weight: 600;
  background-color: var(--dark-surface-lighter);
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

table td {
  border-bottom: 1px solid var(--dark-border);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-text);
  font-size: 0.875rem;
}

/* Input Styling for dark theme */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-input,
.form-select,
.form-textarea {
  background-color: var(--dark-surface-lighter) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-border) !important;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

input:focus:not([type="checkbox"]):not([type="radio"]),
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

::placeholder {
  color: var(--dark-text-muted) !important;
  opacity: 0.7;
}

/* Darker Theme for search inputs and other special inputs */
[type="search"],
[type="text"],
[type="email"],
[type="password"],
[type="url"],
[type="tel"],
[type="number"],
[type="date"] {
  background-color: var(--dark-surface-lighter) !important;
  color: var(--dark-text) !important;
}

/* Override Tailwind defaults for inputs */
.form-checkbox,
.form-radio {
  background-color: var(--dark-surface-lighter) !important;
  border-color: var(--dark-border) !important;
}

.form-checkbox:checked,
.form-radio:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Admin menu w stylu przycisków z dashboardu */
.admin-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.admin-nav-buttons li {
  margin: 0;
  padding: 0;
}

.admin-nav-buttons a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dark-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-text);
  background-color: var(--dark-surface-lighter);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.admin-nav-buttons a:hover {
  background-color: var(--dark-surface-lighter);
  opacity: 0.8;
  text-decoration: none;
}

.admin-nav-buttons a.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

.admin-nav-buttons a i {
  margin-right: 0.5rem;
}

.admin-nav-buttons a.home-button {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
}

.admin-nav-buttons a.home-button:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
}

/* Modyfikacje dla ukrywania logo w panelu admina */
.logo-container.admin-hidden {
  display: none;
}

/* Rozszerzenie kontenera z menu gdy logo jest ukryte */
.nav-container.admin-expanded .nav-content {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .admin-nav-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .admin-nav-buttons a {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Footer */
.site-footer {
  background-color: var(--dark-surface);
  padding: 4rem 0 2rem;
  color: var(--dark-text-muted);
  border-top: 1px solid var(--dark-border);
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--dark-text-muted);
  margin-bottom: 1.5rem;
  max-width: 80%;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  border-radius: 999px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links a i {
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: rgba(59, 130, 246, 0.1);
  margin-right: 1rem;
  font-size: 0.875rem;
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

.social-links {
  display: flex;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--dark-surface-lighter);
  color: var(--dark-text-muted);
  margin-right: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Utility classes */
.text-primary { color: var(--primary-light); }
.text-secondary { color: var(--secondary-light); }
.text-accent { color: var(--accent-light); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-dark { color: var(--dark-text); }
.text-light { color: var(--text-light); }
.text-gray { color: var(--dark-text-muted); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }
.bg-dark { background-color: var(--dark-bg); }
.bg-surface { background-color: var(--dark-surface); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-sm { border-radius: 0.25rem; }
.rounded { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.75rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

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

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
}

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

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

.slide-up {
  animation: slideUp 0.5s ease-in-out;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Dark mode specific classes */
.glass-card {
  background-color: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

.hover-shadow:hover {
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3), 0 0 10px rgba(59, 130, 246, 0.1);
}

.animated-gradient {
  background: linear-gradient(125deg, var(--dark-bg), var(--dark-surface));
  position: relative;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
}

.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(8px);
  opacity: 0.5;
}

.glow {
  box-shadow: var(--glow-primary);
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

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

.animate-pulse-slow {
  animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

/* Fallback for AlpineJS */
.navigation-submenu.visible {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Admin dropdown styles - new implementation */
.admin-menu {
  position: relative;
}

.admin-menu-button {
  display: flex;
  align-items: center;
  color: var(--dark-text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: 500;
  text-decoration: none;
}

.admin-menu-button:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.admin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background-color: var(--dark-surface-lighter);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.25s ease-out;
  border: 1px solid var(--dark-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 0.75rem;
  display: none;
}

.admin-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  display: block;
}

.rotate-180 {
  transform: rotate(180deg);
}

.admin-section-header {
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.2);
}

.admin-section-divider {
  border-top: 1px solid rgba(55, 65, 81, 0.2);
  margin-top: 0.5rem;
}

.section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary-light);
}

.admin-section-content {
  padding: 0.5rem;
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  margin: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: var(--dark-text);
  text-decoration: none;
}

.admin-dropdown-item:hover {
  background-color: rgba(31, 41, 55, 0.5);
  transform: translateX(2px);
}

.admin-dropdown-item.active {
  background-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.admin-dropdown-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  margin-right: 0.75rem;
  background-image: linear-gradient(145deg, var(--dark-surface) 0%, var(--dark-surface-lighter) 100%);
  box-shadow: 0 3px 5px -2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(55, 65, 81, 0.1);
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.admin-dropdown-item:hover .admin-dropdown-icon-container {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 8px -2px rgba(0, 0, 0, 0.25);
}

.admin-dropdown-content {
  display: flex;
  flex-direction: column;
}

.admin-dropdown-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.admin-dropdown-description {
  font-size: 0.7rem;
  color: var(--dark-text-muted);
  margin-top: 0.1rem;
}

/* Logout item styling */
.logout-item {
  color: var(--danger);
}

.logout-item:hover {
  background-color: rgba(153, 27, 27, 0.1);
}

.logout-icon {
  background-image: linear-gradient(145deg, rgba(153, 27, 27, 0.3) 0%, rgba(127, 29, 29, 0.2) 100%);
  color: var(--danger);
  border-color: rgba(153, 27, 27, 0.2);
}

.logout-text {
  color: var(--danger);
}

.logout-description {
  color: rgba(239, 68, 68, 0.7);
}

/* Mobile styles for admin dropdown */
@media (max-width: 768px) {
  .admin-dropdown {
    position: static;
    width: 100%;
    margin: 0.5rem 0;
    max-height: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
  }
  
  .admin-dropdown.show {
    display: block;
  }
  
  .admin-dropdown-item {
    padding: 0.75rem 1rem;
  }
  
  .admin-section-header {
    padding: 0.75rem 1rem;
  }
}

/* Nowe style dla przeprojektowanej sekcji Hero */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.shadow-glow {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.shadow-glow-soft {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 6px rgba(59, 130, 246, 0.15);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  color: var(--primary-light);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Animacja float dla elementów */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Efekt overlay dla obrazów */
.mix-blend-overlay {
  mix-blend-mode: overlay;
}

/* Dostosowanie aspektu obrazu */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Gradientowe tło dla przycisków */
.from-primary\/30 {
  --tw-gradient-from: rgba(59, 130, 246, 0.3);
}

.from-secondary\/30 {
  --tw-gradient-from: rgba(16, 185, 129, 0.3);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.border-primary\/20 {
  border-color: rgba(59, 130, 246, 0.2);
}

.border-secondary\/20 {
  border-color: rgba(16, 185, 129, 0.2);
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-primary\/5 {
  background-color: rgba(59, 130, 246, 0.05);
}

.bg-primary\/10 {
  background-color: rgba(59, 130, 246, 0.1);
}

.bg-secondary\/10 {
  background-color: rgba(16, 185, 129, 0.1);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

.-rotate-6 {
  transform: rotate(-6deg);
}

.rotate-6 {
  transform: rotate(6deg);
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-bl-full {
  border-bottom-left-radius: 9999px;
}

.rounded-tr-full {
  border-top-right-radius: 9999px;
}

/* Custom Switch Styles */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--dark-surface);
  transition: .4s;
  border-radius: 28px;
  border: 1px solid var(--dark-border);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: var(--dark-border);
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .switch-slider {
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

input:focus + .switch-slider {
  box-shadow: 0 0 2px var(--primary);
}

input:checked + .switch-slider:before {
  transform: translateX(26px);
  background-color: white;
}

/* Animacja przełącznika */
@keyframes togglePulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.switch-slider.animate-toggle:before {
  animation: togglePulse 0.3s forwards;
}

/* Hover effect */
.switch-toggle:hover .switch-slider {
  border-color: var(--primary-light);
}

/* Focus style dla dostępności */
.switch-toggle input:focus-visible + .switch-slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
