/* Base styles */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2c2c2e;
  --background-color: #131517;
  --card-background: #1C1E20;
  --text-color: #dbdbdb;
  --text-secondary: #8e8e93;
  --border-color: #38383A;
  --accent-color-1: #ffffff;
  --accent-color-2: #888888;
  --price-color: #7cfe9d;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

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


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input,
textarea,
select {
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Navigation */
.navbar {
  background-color: rgba(28, 28, 30, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-links {
  display: flex; 
  justify-content: center;  
  align-items: center;  
  gap: 20px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent-color-1);
}

/* Main content */
.main-content {
  padding: 40px 0;
  min-height: 100Vh;
  margin-bottom: 80px;
}

.welcome-message {
  font-size: 20px;
  margin-bottom: 25px;
  animation: fadeInUp 0.5s ease-out;
  color: var(--text-color);
  font-weight: 600;
  text-align: center;
}

.welcome-message a,
.welcome-message p{
  font-size: 12px;
  animation: fadeInUp 0.5s ease-out;
  color: orange;
  text-align: center;
  text-decoration: none;
}

.btn-pokuty{
  padding: 8px 8px;
}

a {
  color: #F6384E;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Notifications Container */
.notifications {
  margin: 20px auto;
  padding: 20px;
  max-width: 600px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #262729;
}

/* Individual Notification */
.notification {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed);
}


/* Notification Content */
.notification-content {
  display: flex;
  align-items: flex-start;
}

/* Notification Icon */
.notification-icon {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-color-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* Notification Text */
.notification-text {
  flex-grow: 1;
}

/* Notification Title */
.notification-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-color);
}

/* Notification Message */
.notification-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Notification Date */
.notification-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Notification Types */
.notification-info .notification-icon {
  background-color: var(--accent-color-1);
}

.notification-success .notification-icon {
  background-color: var(--price-color);
}

.notification-warning .notification-icon {
  background-color: #b26800;
}

.notification-error .notification-icon {
  background-color: #FF453A;
}

/* Animation */
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification {
  animation: slideInUp 0.3s ease-out;
}

/* --- MODERNÍ KARTY SMĚN --- */
.shift-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}

.shift-card {
  position: relative;
  background-color: var(--card-background);
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  overflow: visible;
  transition: box-shadow 0.25s, transform 0.18s;
  margin-top: 6px;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 28px;
  padding-right: 18px;
  border: 1px solid #2e2e31;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Barevné pruhy podle pobočky (příklad) */
.shift-card[data-branch="vinohradska"] {
  border-left: 8px solid #12A594;
}
.shift-card[data-branch="andel"] {
  border-left: 8px solid #F2A20D;
}
.shift-card[data-branch="vrsovice"] {
  border-left: 8px solid #FF453A;
}

.shift-card:hover {
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.22), 0 2px 8px 0 rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.012);
}

/* Oddělení směn od hlavičky dne */
.shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
  background: transparent;
  color: var(--text-color);
  width: auto;
}

/* Větší a tučnější čas a jméno masérky */
.shift-details {
  padding: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.shift-details .shift-time {
  font-size: 1.18em;
  font-weight: 700;
  color: #12A594;
  margin-bottom: 2px;
}
.shift-details .shift-girl {
  font-size: 1.12em;
  font-weight: 600;
  color: var(--accent-color-1);
  margin-bottom: 4px;
}

/* Lepší oddělení jednotlivých směn */
.shift-card + .shift-card {
  margin-top: 22px;
}

/* Jemné oddělení dne */
.shift-cards:before {
  display: none;
}

/* Responsivita zachována */
@media (max-width: 768px) {
  .shift-card {
    padding: 20px 14px 20px 14px;
    border-radius: 16px;
  }
}

.shift-date-day {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shift-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.shift-day {
  font-weight: 600;
  color: #FFF;
}

.shift-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 7px;
  text-transform: uppercase;
  margin-left: 10px;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  letter-spacing: 0.5px;
  opacity: 0.92;
}

.shift-location {
  margin-bottom: 15px;
  font-size: 14px;
}

.shift-location strong {
  color: var(--accent-color-1);
}


.today-shift .shift-header {
  background-color: transparent;
}

.today-shift .shift-tag {
  background-color: #12A594;
  color: #FFF;
}

.tomorrow-shift .shift-header {
  background-color: transparent;
}

.tomorrow-shift .shift-tag {
  background-color: #F2A20D;
  color: #fff;
  font-weight: 800;
}

.past-shift {
  opacity: 0.5;
  pointer-events: none;
}

/* Login page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background-color);
}

.login-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 90%;
  max-width: 400px;
  animation: fadeInUp 0.5s ease-out;
  border: 1px solid #262729;
}

.login-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-color);
}

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

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: all var(--transition-speed);
  background-color: rgba(44, 44, 46, 0.8);
  color: var(--text-color);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-color-1);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.2);
}

.btn-delete {
  background-color: #FF453A;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn-delete:hover {
  background-color: #FF3B30;
}


.login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-color-1);
  color: black;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.login-btn:hover {
  background-color: var(--accent-color-2);
  transform: translateY(-2px);
}

.register-link {
  text-align: center;
  margin-top: 20px;
}

.register-link-text {
  color: var(--accent-color-1);
  text-decoration: none;
  font-weight: 500;
}

.message-box {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Individual toast */
.message {
  background-color: var(--card-background);
  color: var(--text-color);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInOut 5s ease-out forwards;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #262729;

}

/* Message categories */
.message.success {
  background-color: var(--price-color);
}

.message.danger {
  background-color: #FF453A;
}

.message.info {
  background-color: var(--accent-color-1);
}

/* Animation for display and disappearance */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Add some subtle hover effects */
.shift-card, .login-btn, .nav-link {
  transition: all 0.3s ease;
}

.shift-card:hover, .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add a pulsating animation for today's shift */
@keyframes pulse-today {
  0% {
    box-shadow: 0 0 0 0 rgba(3, 128, 109, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(10, 255, 251, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 255, 251, 0);
  }
}

/* Add a pulsating animation for tomorrow's shift */
@keyframes pulse-tomorrow {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 132, 1, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(94, 92, 230, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 92, 230, 0);
  }
}

/* Apply pulsating animation for today's shift */
.today-shift {
  background-color: #1C1E20;
  border-radius: var(--border-radius);
  border: 1px solid #2E2E31;
}

.tomorrow-shift {
  background-color: #1C1E20;
  border-radius: var(--border-radius);
  border: 1px solid #2E2E31;
}


/* Add a transition for color changes */
* {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hide navbar on login page */
body.login-page .navbar {
  display: none;
}

/* Apple-style form inputs */
input[type="text"],
input[type="password"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

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

::-webkit-scrollbar-track {
  background: var(--card-background);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color-1);
}

.notification-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.notification-tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 8px;
  background-color: var(--accent-color-2);
  color: white;
}

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

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  display: block;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.3s ease;
  background-color: rgba(44, 44, 46, 0.8);
  color: var(--text-color);
}

.form-input:focus {
  border-color: var(--accent-color-1);
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.2);
}

/* Quill Editor (Rich Text Editor) */
.quill-editor {
  height: 200px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 8px;
  padding: 10px;
  font-size: 14px;
  color: var(--text-color);
  background-color: rgba(64, 64, 64, 0.8);
}

.ql-toolbar.ql-snow {
  border: none!important;
  margin: 10px !important;
}

.quill-editor .ql-container {
  border: none !important;
}

.ql-container.ql-snow {
  border: none !important;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--accent-color-1);
  color: black;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  width: 100%;
  margin-top: 20px;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent-color-2);
  transform: translateY(-2px);
}

.btn:active {
  background-color: var(--secondary-color);
  transform: translateY(0);
}

/* Select dropdown */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" class="w-5 h-5 ml-2 text-gray-500"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M10 12.5l-5-5h10l-5 5z" fill="%23007bff"%3E%3C/path%3E%3C/svg%3E');
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding-right: 30px;
}

@media (max-width: 768px) {
  .form-section {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }

  .title {
    font-size: 20px;
  }
}

.button-container {
  display: block;
  justify-content: flex-end;
  margin-bottom: 20px;
}


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

.guides-list {
  display: column;
  gap: 20px;
  margin-top: 30px;
}

.guide-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  border: 1px solid #262729;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.guide-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 14px;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 3px;
}

.guide-card .btn {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 14px;
  background-color: var(--accent-color-1);
  color: rgb(0, 0, 0);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed);
}

.guide-card .btn:hover {
  background-color: var(--accent-color-2);
}

/* Guide Detail */
.guide-detail {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 10px;
  border: 1px solid #262729;
}

.guide-detail h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.guide-detail p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.guide-detail strong {
  color: var(--text-color);
}

.guide-detail small {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .guides-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .guide-detail {
    padding: 20px;
  }
  
  .guide-detail h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .guides-list {
    grid-template-columns: 1fr;
  }
  
  .guide-card,
  .guide-detail {
    padding: 10px;
  }
}

.btnback {
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: var(--card-background);
  color: var(--text-secondary);
  padding: 30px 0;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-link:hover {
  color: var(--accent-color-1);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  font-size: 20px;
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

.social-icon:hover {
  color: var(--accent-color-1);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .social-links {
    margin-top: 20px;
  }
}

.mobile-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 18px; 
  left: 10px;  
  right: 10px; 
  padding-bottom: 6px;
  backdrop-filter: blur(70px); 
  -webkit-backdrop-filter: blur(70px);
  background-color: #131517b7;
  border-radius: 20px;  
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4); 
  z-index: 1000; 
}

.mobile-menu .btn {
  color: var(--text-secondary);
  background-color: transparent;
  padding: 8px 12px;
  border: none;
  text-align: center; 
  text-decoration: none;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  margin-top: 10px;
}


.mobile-menu .btn i {
  margin-bottom: 10px; 
  font-size: 16px; 
}


.mobile-menu .btn:active {
  transform: scale(0.95); 
}

.day-row {
  margin-bottom: 10px;
}

.day-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.day-row input {
  width: 100%;
  padding: 15px;
  font-size: 14px;
}

.notes {
  margin-top: 20px;
}

.notes label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.notes textarea {
  width: 100%;
  height: 100px;
  padding: 8px;
  font-size: 14px;
}

.shift-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-background);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #262729;
}


.info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.6;
}

.info strong{
  font-size: 14px;
  color: #b26800;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.6;
}

.day-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.day-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.form-control {
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-color);
  background: var(--background-color);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.notes textarea {
  resize: none;
  height: 100px;
}

/* Přidání okrajů k sekci poznámek */
.notes {
  margin-top: 20px;
}


.fines-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.fines-table th, .fines-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.fines-table th {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
}

.fines-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.fines-table td {
  color: var(--text-color);
}

.fines-section .btn {
  margin-top: 15px;
  display: inline-block;
}

.shift-card .today-shift {
  border: 5px solid #fff!important;
}


/* Sekce pro volné směny */
.free-shifts-container {
  margin: 20px auto;
  padding: 8px;
  max-width: 600px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #262729;
}

/* Hlavní nadpis sekce */
.free-shifts-header {
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--card-background);
  border-radius: var(--border-radius);
  transition: background 0.3s;
}

.free-shifts-header i {
  transition: transform 0.3s ease;
}

.free-shifts-container.open .free-shifts-header i {
  transform: rotate(90deg);
}

.free-shifts-content {
  display: none;
  padding: 10px;
  animation: slideIn 0.3s ease-out;
}

.free-shift {
  margin-bottom: 25px;
  padding: 15px 15px;
  border: 1px solid rgb(56, 56, 56);
  border-radius: var(--border-radius);

}

.free-shift-day {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-color);
}

/* Název pobočky */
.free-shift-location {
  color: var(--accent-color-1);
}

/* Čas směny */
.free-shift-time {
  font-size: 16px;
  color: #FFA500;
  margin-bottom: 10px;
}

/* Tlačítko pro přijetí směny */
.free-shift-button {
  display: inline-block;
  padding: 5px 10px;
  color: #FFA500;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #ffa60050;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  margin-top: 12px;
}

.free-shift-button:hover {
  color: #FFA500;
}

/* Animace pro rozbalení */
@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateY(-5px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* --- Správa uživatelů (admin/manage-users) --- */
.user-management-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 30px;
}
.add-user-card, .user-table-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 32px 24px 24px 24px;
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 600px;
    margin: 0 auto;
}
.add-user-card h2, .user-table-card h2 {
    font-size: 1.3em;
    margin-bottom: 18px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.add-user-form .button.add {
    background-color: var(--edit-color, #30D158);
    color: #fff;
    width: 100%;
    font-size: 1em;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.user-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    background: var(--card-background);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}
.user-table th, .user-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    background: transparent;
}
.user-table th {
    background-color: var(--table-header-bg, #232323);
    font-weight: bold;
    color: var(--text-color);
}
.user-table tr:hover {
    background-color: var(--table-hover-bg, #23232333);
}
.user-table input[type="text"], .user-table select {
    width: 100%;
    padding: 7px 8px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--input-background, #232323);
    color: var(--text-color);
}
.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.button.edit {
    background-color: var(--edit-color, #30D158);
    color: #fff;
}
.button.delete {
    background-color: var(--delete-color, #FF453A);
    color: #fff;
}
.button.edit:hover, .add-user-form .button.add:hover {
    opacity: 0.85;
}
.button.delete:hover {
    opacity: 0.85;
}
@media (max-width: 1100px) {
    .user-management-grid {
        flex-direction: column;
        gap: 24px;
    }
    .add-user-card, .user-table-card {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .add-user-card, .user-table-card {
        padding: 18px 8px 12px 8px;
    }
    .user-table th, .user-table td {
        padding: 8px 4px;
        font-size: 13px;
    }
    .button {
        font-size: 13px;
        padding: 7px 10px;
    }
}
@media (max-width: 480px) {
    .welcome-message {
        font-size: 16px;
    }
    .info {
        font-size: 12px;
    }
    .add-user-card, .user-table-card {
        padding: 8px 2px 8px 2px;
    }
    .user-table th, .user-table td {
        padding: 6px 2px;
        font-size: 12px;
    }
}
.add-user-form .form-group {
    margin-bottom: 18px;
}
.input-icon-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    display: block;
}
.input-icon-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-background, #232323);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.input-icon-wrapper:focus-within {
    border-color: var(--edit-color, #30D158);
    box-shadow: 0 0 0 2px rgba(40,167,69,0.08);
}
.input-icon-wrapper i {
    color: var(--accent-color-2, #888);
    font-size: 1.1em;
    margin-right: 10px;
}
.input-icon-wrapper input,
.input-icon-wrapper select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1.08em;
    padding: 14px 0;
    width: 100%;
    font-weight: 500;
    transition: color 0.2s;
}
.input-icon-wrapper input::placeholder {
    color: #aaa;
    opacity: 1;
}
.input-icon-wrapper select {
    cursor: pointer;
}
.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
    color: var(--accent-color-1, #fff);
}
.user-table .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.user-table tr.editing {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.user-table tr.editing td {
    padding: 12px 8px;
}

.user-table input[type="text"], 
.user-table input[type="password"], 
.user-table select {
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-table input[type="text"]:focus, 
.user-table input[type="password"]:focus, 
.user-table select:focus {
    outline: none;
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Role badges */
.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.role-user {
    background: #2563EB;
    color: #fff;
}

.role-admin {
    background: #F59E0B;
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-table-card,
.add-user-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Hover effects */
.user-table tr:hover {
    background: var(--secondary-color);
    transition: background 0.3s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.review-badge {
  background: #FFD600;
  color: #222;
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  padding: 2px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  animation: review-pulse-modern 1.2s infinite cubic-bezier(.4,0,.2,1);
}
.review-badge i {
  color: #f59e42;
  margin-right: 4px;
}
@keyframes review-pulse-modern {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0 0 0 #FFD60033;
    background: #FFD600;
  }
  60% {
    transform: scale(1.04);
    box-shadow: 0 3px 10px 2px #FFD60033, 0 2px 8px rgba(0,0,0,0.10);
    background: #ffe066;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0 0 0 #FFD60033;
    background: #FFD600;
  }
}

/* --- DESKTOP OPTIMALIZACE --- */
@media (min-width: 1100px) {
  .container {
    max-width: 1100px;
    padding: 0 32px;
  }
  .shift-cards {
    flex-direction: column;
    gap: 32px;
    justify-content: flex-start;
  }
  .shift-card {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }
  .free-shifts-container {
    max-width: 1100px;
    margin-bottom: 32px;
  }
  .notifications {
    max-width: 1100px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 0 60px;
  }
  .shift-card {
    min-width: 0;
    max-width: 100%;
    font-size: 17px;
  }
}

/* Větší mezery mezi sekcemi na desktopu */
@media (min-width: 1100px) {
  .dashboard .shift-cards {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .dashboard .notifications {
    margin-bottom: 32px;
  }
  .dashboard .free-shifts-container {
    margin-bottom: 32px;
  }
}

.full-width-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .full-width-card {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}