/* Default Theme Variables */
:root {
  /* Темная цветовая схема */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  --accent-color: #f39c12;
  --danger-color: #e74c3c;
  --warning-color: #f1c40f;
  --dark-color: #1a1a1a;
  --darker-color: #121212;
  --text-color: #e0e0e0;
  --light-color: #ecf0f1;
  --gray-color: #95a5a6;
  --light-gray: #2c2c2c;
  --card-bg: #252525;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --bg-color: var(--darker-color);
  --bg-secondary: var(--dark-color);
  --border-color: #333;
  --text-color-secondary: #aaa;
  
  /* Стили уведомлений */
  --notification-success-bg: rgba(40, 167, 69, 0.2);
  --notification-primary-bg: rgba(52, 152, 219, 0.2);
  --notification-warning-bg: rgba(255, 193, 7, 0.2);
  --notification-danger-bg: rgba(220, 53, 69, 0.2);
  --border-success: #28a745;
  --border-primary: #3498db;
  --border-warning: #ffc107;
  --border-danger: #dc3545;
}

/* Common styles */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  background-color: var(--darker-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Themed elements */
.theme-colored {
  color: var(--text-color) !important;
  background-color: inherit;
}

.theme-select {
  color: var(--text-color) !important;
  background-color: var(--card-bg) !important;
  border-color: var(--border-color) !important;
}

.theme-select option {
  background-color: var(--card-bg);
  color: var(--text-color);
}

.theme-windowsxp .theme-select {
  color: #000000 !important;
  background-color: #FFFFFF !important;
  border-color: #7F9DB9 !important;
}

.theme-windowsxp .theme-select option {
  background-color: #FFFFFF;
  color: #000000;
}

.theme-macos .theme-select {
  color: #333333 !important;
  background-color: #FFFFFF !important;
  border-color: #ced4da !important;
  border-radius: 6px;
}

.theme-macos .theme-select option {
  background-color: #FFFFFF;
  color: #333333;
}

/* Custom buttons */
.btn {
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.btn:active {
  transform: translateY(0);
}

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

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

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

.btn-success:hover,
.btn-success:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
  color: #333;
}

/* Cards */
.card {
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
  background-color: var(--dark-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  font-weight: 600;
  color: var(--text-color);
}

.card-body {
  padding: 20px;
  background-color: var(--card-bg);
}

/* Form styles */
.form-control {
  border-radius: 4px;
  border: 1px solid #444;
  padding: 10px 15px;
  transition: var(--transition);
  background-color: #333;
  color: var(--text-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
  background-color: #383838;
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Navbar */
.navbar {
  background-color: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 12px 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-color);
  margin: 0 10px;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .active .nav-link {
  color: var(--primary-color);
}

.navbar-nav .active .nav-link::after {
  width: 100%;
}

.navbar-toggler {
  background-color: rgba(52, 152, 219, 0.1);
  border: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: none;
  box-shadow: var(--shadow);
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--secondary-dark);
  border-left: 4px solid var(--secondary-color);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background-color: rgba(241, 196, 15, 0.1);
  color: #b7950b;
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Tables */
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--card-bg);
  color: var(--text-color);
}

.table th {
  background-color: var(--dark-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--text-color);
  padding: 14px 16px;
  border-bottom: 1px solid #333;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

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

/* Login page */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--card-bg);
  color: var(--text-color);
  animation: fadeInUp 0.5s ease forwards;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--gray-color);
  font-size: 1rem;
}

/* Dashboard cards */
.stat-card {
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow);
  height: 100%;
}

.stat-card-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 15px;
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.stat-card-title {
  color: var(--gray-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Calendar & shifts */
.shift-item {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  background-color: white;
}

.shift-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shift-item h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.shift-time {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.shift-approved {
  border-left-color: var(--secondary-color);
}

.shift-pending {
  border-left-color: var(--warning-color);
}

.shift-rejected {
  border-left-color: var(--danger-color);
}

/* Custom switch/toggle */
.custom-switch {
  padding-left: 0;
}

.custom-switch .custom-control-label::before {
  height: 1.5rem;
  width: 2.75rem;
  border-radius: 1rem;
  background-color: #e9ecef;
  border: none;
}

.custom-switch .custom-control-label::after {
  top: calc(0.25rem + 2px);
  left: calc(-2.25rem + 2px);
  width: calc(1rem - 4px);
  height: calc(1rem - 4px);
  background-color: #fff;
  border-radius: 0.5rem;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--secondary-color);
}

.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

.pulse {
  animation: pulse 1.5s infinite;
}

/* Loading animation */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(52, 152, 219, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-container {
    max-width: 100%;
    margin: 30px 15px;
  }
}

/* Windows XP Theme */
.theme-windowsxp {
  font-family: 'Tahoma', sans-serif;
  background: url('https://wallpapercave.com/wp/6AQGtUC.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000000;
}

/* macOS Theme */
.theme-macos {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: url('https://512pixels.net/downloads/macos-wallpapers/12-Monterey-Light.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000000;
}

.theme-windowsxp .container {
  background-color: #ECE9D8;
  border: 1px solid #0055EA;
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 4px;
}

.theme-windowsxp h1, 
.theme-windowsxp h2,
.theme-windowsxp h3,
.theme-windowsxp h4,
.theme-windowsxp h5,
.theme-windowsxp h6,
.theme-windowsxp p,
.theme-windowsxp .table,
.theme-windowsxp .card,
.theme-windowsxp label,
.theme-windowsxp .form-label,
.theme-windowsxp .nav-link,
.theme-windowsxp .list-group-item {
  color: #000000 !important;
}

.theme-windowsxp .btn {
  border-radius: 3px;
  background: linear-gradient(to bottom, #ffffff 0%, #e1e1e1 100%);
  border: 1px solid #919191;
  color: #000000 !important;
  font-weight: normal;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-windowsxp .btn:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #cce3fc 100%);
  border-color: #0078D7;
}

.theme-windowsxp .btn-primary {
  background: linear-gradient(to bottom, #2A8AE2 0%, #0062C6 100%);
  border-color: #003E81;
  color: #FFFFFF !important;
}

.theme-windowsxp .btn-primary:hover {
  background: linear-gradient(to bottom, #52A1E5 0%, #1270D6 100%);
}

/* Windows XP card style */
.theme-windowsxp .card {
  background-color: #FFFFFF;
  border: 1px solid #7DA2CE;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.theme-windowsxp .card-header {
  background: linear-gradient(to right, #0A246A, #3A6EA5);
  color: white !important;
  font-weight: bold;
  padding: 4px 8px;
  border-bottom: 1px solid #7DA2CE;
}

/* Windows XP navigation tabs */
.theme-windowsxp .nav-tabs {
  border-bottom: 1px solid #7DA2CE;
  background-color: #D6DFF7;
}

.theme-windowsxp .nav-tabs .nav-link {
  color: #000000 !important;
  background-color: #EBF1FD;
  border: 1px solid #7DA2CE;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  margin-right: 2px;
  padding: 4px 10px;
}

.theme-windowsxp .nav-tabs .nav-link.active {
  background: linear-gradient(to bottom, #FEFEFE, #E3EFFF);
  color: #000000 !important;
  font-weight: bold;
  border-bottom: 1px solid #FFFFFF;
  margin-bottom: -1px;
}

/* Windows XP form controls */
.theme-windowsxp .form-control {
  border: 1px solid #7F9DB9;
  border-radius: 2px;
  background-color: #FFFFFF;
  color: #000000;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-windowsxp .form-control:focus {
  border-color: #0078D7;
  box-shadow: inset 1px 1px 3px rgba(0, 120, 215, 0.3);
}

/* Windows XP themed modal */
.theme-windowsxp .modal-content {
  background-color: #ECE9D8;
  border: 1px solid #0055EA;
  border-radius: 7px;
}

.theme-windowsxp .modal-header {
  background: linear-gradient(to right, #0A246A, #3A6EA5);
  color: white;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  border-radius: 7px 7px 0 0;
}

.theme-windowsxp .modal-title {
  color: white !important;
  font-weight: bold;
}

.theme-windowsxp .modal-header .btn-close {
  background-color: #ff3939;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  opacity: 1;
  position: relative;
}

.theme-windowsxp .modal-header .btn-close::before {
  content: "×";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: -4px;
  left: 3px;
}

/* Windows XP Calendar modifications */
.theme-windowsxp .fc {
  background-color: #FFFFFF;
  border: 1px solid #7DA2CE;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-windowsxp .fc-toolbar-title {
  color: #000000 !important;
}

.theme-windowsxp .fc-day-today {
  background-color: #E7F1FF !important;
}

/* Windows XP theme switcher */
.theme-windowsxp .theme-switcher .dropdown-toggle {
  background: linear-gradient(to bottom, #2A8AE2 0%, #0062C6 100%);
  border-color: #003E81;
  color: #FFFFFF !important;
}

.theme-windowsxp .dropdown-menu {
  background-color: #FFFFFF;
  border: 1px solid #7DA2CE;
}

.theme-windowsxp .dropdown-item {
  color: #000000;
}

.theme-windowsxp .dropdown-item:hover {
  background-color: #E7F1FF;
}

.theme-windowsxp .dropdown-item.active {
  background-color: #CCE8FF;
  color: #000000;
}

.card {
  margin-bottom: 15px;
}

.stat-card-value {
  font-size: 1.5rem;
}

/* macOS Container and Elements */
.theme-macos .container {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
}

.theme-macos h1, 
.theme-macos h2,
.theme-macos h3,
.theme-macos h4,
.theme-macos h5,
.theme-macos h6,
.theme-macos p,
.theme-macos .table,
.theme-macos .card,
.theme-macos label,
.theme-macos .form-label,
.theme-macos .nav-link,
.theme-macos .list-group-item {
  color: #333333 !important;
}

.theme-macos .btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #333333 !important;
  background: linear-gradient(to bottom, #ffffff, #f7f7f7);
  border: 1px solid #d1d1d1;
}

.theme-macos .btn:hover {
  background: linear-gradient(to bottom, #ffffff, #efefef);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-macos .btn-primary {
  background: linear-gradient(to bottom, #4099ff, #2d7be3);
  border-color: #2d7be3;
  color: #FFFFFF !important;
}

.theme-macos .btn-primary:hover {
  background: linear-gradient(to bottom, #56a8ff, #3d87e3);
}

/* macOS card style */
.theme-macos .card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.theme-macos .card-header {
  background-color: rgba(244, 244, 244, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #333 !important;
  font-weight: 500;
  padding: 12px 15px;
}

/* macOS navigation tabs */
.theme-macos .nav-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
}

.theme-macos .nav-tabs .nav-link {
  color: #666 !important;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 15px;
  transition: all 0.2s ease;
  margin-right: 4px;
  font-weight: 500;
}

.theme-macos .nav-tabs .nav-link.active {
  color: #007aff !important;
  background-color: transparent;
  border-bottom: 2px solid #007aff;
}

.theme-macos .nav-tabs .nav-link:hover:not(.active) {
  border-bottom: 2px solid rgba(0, 122, 255, 0.3);
  color: #007aff !important;
}

/* macOS form controls */
.theme-macos .form-control {
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #333333;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.theme-macos .form-control:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

/* macOS themed modal */
.theme-macos .modal-content {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.theme-macos .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(244, 244, 244, 0.9);
  padding: 15px 20px;
}

.theme-macos .modal-title {
  color: #333 !important;
  font-weight: 500;
}

.theme-macos .modal-header .btn-close {
  opacity: 0.7;
  transition: all 0.2s ease;
}

.theme-macos .modal-header .btn-close:hover {
  opacity: 1;
}

/* macOS Calendar modifications */
.theme-macos .fc {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.theme-macos .fc-toolbar-title {
  color: #333 !important;
  font-weight: 500;
}

.theme-macos .fc-day-today {
  background-color: rgba(0, 122, 255, 0.1) !important;
}

.theme-macos .fc-event {
  border-radius: 6px;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* macOS theme switcher */
.theme-macos .theme-switcher .btn {
  background: linear-gradient(to bottom, #4099ff, #2d7be3);
  border-color: #2d7be3;
  color: #FFFFFF !important;
}

.theme-macos .theme-switcher .btn:hover {
  background: linear-gradient(to bottom, #56a8ff, #3d87e3);
}

.theme-macos .theme-switcher .btn.active {
  background: linear-gradient(to bottom, #2d7be3, #1c5fbe);
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

.theme-macos .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}

.theme-macos .dropdown-item {
  color: #333;
  padding: 8px 15px;
  transition: all 0.2s ease;
}

.theme-macos .dropdown-item:hover {
  background-color: rgba(0, 122, 255, 0.1);
  color: #007aff;
}

.theme-macos .dropdown-item.active {
  background-color: rgba(0, 122, 255, 0.2);
  color: #007aff;
}

/* Background logo styling */
.background-logo {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none; /* Makes logo clickthrough */
  opacity: 0.15; /* Makes it semi-transparent */
  max-width: 40%;
}

.background-logo img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

/* Adjust logo opacity for different themes */
.theme-dark .background-logo {
  opacity: 0.15;
}

.theme-windowsxp .background-logo {
  opacity: 0.2;
}

.theme-macos .background-logo {
  opacity: 0.12;
}

/* Mobile responsiveness for background logo */
@media (max-width: 992px) {
  .background-logo {
    max-width: 35%;
  }
  
  .background-logo img {
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  .background-logo {
    max-width: 30%;
  }
  
  .background-logo img {
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .background-logo {
    max-width: 25%;
  }
  
  .background-logo img {
    max-height: 150px;
  }
}

/* Stylish App Title */
.app-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.title-shift {
  background: linear-gradient(135deg, #3498db, #2ecc71);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 4px;
  position: relative;
}

.title-scheduler {
  color: var(--text-color);
  position: relative;
}

.title-shift::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 2px;
}

/* Theme-specific title styles */
.theme-windowsxp .app-title {
  font-family: 'Tahoma', sans-serif;
  font-weight: 600;
}

.theme-windowsxp .title-shift {
  background: linear-gradient(to bottom, #0078D7, #0055EA);
  -webkit-background-clip: text;
  background-clip: text;
}

.theme-windowsxp .title-scheduler {
  color: #000000;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.theme-windowsxp .title-shift::after {
  background: linear-gradient(to right, #0078D7, #0055EA);
}

.theme-macos .app-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-weight: 500;
}

.theme-macos .title-shift {
  background: linear-gradient(135deg, #007AFF, #34AADC);
  -webkit-background-clip: text;
  background-clip: text;
}

.theme-macos .title-scheduler {
  color: #333333;
}

.theme-macos .title-shift::after {
  background: linear-gradient(135deg, #007AFF, #34AADC);
  height: 2px;
}

/* Mobile responsiveness for title */
@media (max-width: 768px) {
  .app-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .app-title {
    font-size: 1.5rem;
  }
}

/* PDF Export Theme Preview Styles */
.style-preview-card {
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.style-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.style-preview {
  height: 150px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.preview-calendar {
  position: absolute;
  top: 20px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 4px;
}

.preview-header {
  height: 20%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-body {
  height: 80%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
}

.preview-day {
  background-color: rgba(200, 200, 200, 0.2);
  border-radius: 2px;
}

.preview-day.has-event {
  background-color: #3498db;
}

/* Theme-specific styles for preview cards */

/* Dark theme preview */
.dark-preview {
  background-color: #121212;
}

.dark-preview .preview-header {
  background-color: #1E1E1E;
  border-bottom: 1px solid #333;
}

.dark-preview .preview-day {
  background-color: #252525;
}

.dark-preview .preview-day.has-event {
  background-color: #3498db;
}

/* Windows XP theme preview */
.windowsxp-preview {
  background-color: #ECE9D8;
}

.windowsxp-preview .preview-header {
  background: linear-gradient(to bottom, #0A246A, #3A6EA5);
  border-bottom: 1px solid #0055EA;
}

.windowsxp-preview .preview-day {
  background-color: #FFFFFF;
  border: 1px solid #D5D5D5;
}

.windowsxp-preview .preview-day.has-event {
  background-color: #0078D7;
  border-color: #005A9E;
}

/* macOS theme preview */
.macos-preview {
  background-color: #F5F5F7;
}

.macos-preview .preview-header {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.macos-preview .preview-day {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.macos-preview .preview-day.has-event {
  background-color: #007AFF;
  box-shadow: 0 2px 5px rgba(0, 122, 255, 0.3);
}

/* Selected theme card highlight */
.style-preview-card.selected {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

/* Ensure modal appears on top of all other elements */
.modal-backdrop {
  z-index: 1050;
}

.modal {
  z-index: 1051;
}

/* PDF Theme Selector Styles */
.pdf-theme-dialog {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.pdf-theme-dialog-content {
  background-color: var(--bg-color);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s;
  color: var(--text-color);
}

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

.pdf-theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.pdf-theme-header h3 {
  margin: 0;
  color: var(--text-color);
  font-weight: 500;
}

.pdf-theme-close {
  color: var(--text-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.pdf-theme-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.pdf-theme-option {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 15px;
  width: 180px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  color: var(--text-color);
}

.pdf-theme-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pdf-theme-option.selected {
  border-color: var(--primary-color);
}

.pdf-theme-option img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.pdf-theme-option h4 {
  margin: 10px 0;
  color: var(--text-color);
}

.pdf-theme-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.pdf-theme-button:hover {
  background-color: #2980b9;
}

/* Theme-specific styling */
.dark-theme img {
  background-color: #121212;
}

.windows-theme img {
  background-color: #ECE9D8;
}

.macos-theme img {
  background-color: #F5F5F7;
}

.custom-modal-content {
  background-color: var(--bg-color);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10001;
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.custom-modal-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 600;
}

.custom-close-btn {
  color: var(--text-color-secondary);
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 10px;
  line-height: 1;
}

.custom-close-btn:hover {
  color: var(--primary-color);
}

.custom-modal-body {
  padding: 10px 0;
}

.custom-modal-footer {
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.style-options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.style-preview-option {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

/* Improved radio buttons */
.style-radio {
  margin-top: 10px;
  text-align: center;
}

.style-radio input[type="radio"] {
  transform: scale(1.3);
  margin-right: 8px;
  cursor: pointer;
}

.style-radio label {
  cursor: pointer;
  font-weight: 500;
}

/* Make sure the style cards are fully interactive */
.style-preview-card {
  z-index: 10002 !important;
  position: relative;
  overflow: visible;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.style-preview-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Make radio buttons and inputs more visible and clickable */
.style-preview-card .form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.style-preview-card .form-check-label {
  cursor: pointer;
  font-weight: 500;
}

/* Animation classes for specific elements */
.notification-list .notification-item {
  animation-name: fadeInUp;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.notification-list .notification-item:nth-child(1) {
  animation-delay: 0.1s;
}

.notification-list .notification-item:nth-child(2) {
  animation-delay: 0.2s;
}

.notification-list .notification-item:nth-child(3) {
  animation-delay: 0.3s;
}

.side-nav .nav-item {
  animation-name: slideInLeft;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.side-nav .nav-item:nth-child(1) {
  animation-delay: 0.1s;
}

.side-nav .nav-item:nth-child(2) {
  animation-delay: 0.2s;
}

.side-nav .nav-item:nth-child(3) {
  animation-delay: 0.3s;
}

.side-nav .nav-item:nth-child(4) {
  animation-delay: 0.4s;
}

.side-nav .nav-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Notification specific styles */
.notification-success {
  background-color: var(--notification-success-bg);
}

.notification-primary {
  background-color: var(--notification-primary-bg);
}

.notification-warning {
  background-color: var(--notification-warning-bg);
}

.notification-danger {
  background-color: var(--notification-danger-bg);
}

.notification-read {
  opacity: 0.7;
}

.notification-unread {
  font-weight: 500;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.border-success {
  border-left: 4px solid var(--border-success) !important;
}

.border-primary {
  border-left: 4px solid var(--border-primary) !important;
}

.border-warning {
  border-left: 4px solid var(--border-warning) !important;
}

.border-danger {
  border-left: 4px solid var(--border-danger) !important;
}
