/* Modern UI Overrides for Signage CMS */
/* Beautiful, Simple, and Cute Design */

/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #4facfe;
  --warning-color: #fcb69f;
  --danger-color: #ff9a9e;
  
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-muted: #a0aec0;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Modernization */
.az-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.az-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.az-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Removed hardcoded logo emoji to allow dynamic branding */
.az-logo::before {
  content: none;
}

/* Navigation Sidebar */
.az-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  margin: 1rem 0;
  height: calc(100vh - 2rem);
}

.az-navbar-header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--primary-gradient);
  border-radius: 0 var(--border-radius-lg) 0 0;
}

.az-navbar-header .az-logo {
  color: white;
  -webkit-text-fill-color: white;
  font-size: 1.3rem;
}

.az-navbar .nav {
  padding: 1rem 0;
}

.az-navbar .nav-item {
  margin: 0.25rem 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.az-navbar .nav-link {
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.az-navbar .nav-link:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--primary-color);
  transform: translateX(4px);
}

.az-navbar .nav-link.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.az-navbar .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Submenu Styles */
.az-navbar .az-menu-sub {
  background: rgba(102, 126, 234, 0.05);
  border-radius: var(--border-radius);
  margin: 0.5rem 0;
  padding: 0.5rem 0;
}

.az-navbar .az-menu-sub .nav-link {
  padding: 0.5rem 1.25rem 0.5rem 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.az-navbar .az-menu-sub .nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
}

.az-navbar .az-menu-sub .nav-link.active {
  background: var(--primary-color);
  color: white;
}

/* Main Content Area */
.az-content {
  background: transparent;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1400px;
}

/* Cards Modernization */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 252, 0.9) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-size: 1.25rem;
}

.card-body {
  padding: 2rem;
}

/* Dashboard Cards */
.card-dashboard-two {
  background: var(--primary-gradient);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.card-dashboard-two::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.card-dashboard-two .card-header h6 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.card-dashboard-two .card-header p {
  opacity: 0.9;
  margin: 0.5rem 0 0;
  font-weight: 500;
}

/* Buttons Modernization */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: var(--success-gradient);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background: var(--warning-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger-gradient);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

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

/* Form Controls */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  padding: 0 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Media Grid Modernization */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.media-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.media-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--primary-gradient);
}

.media-thumbnail img,
.media-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.media-card:hover .media-thumbnail img,
.media-card:hover .media-thumbnail video {
  transform: scale(1.1);
}

.media-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.media-info {
  padding: 1.5rem;
}

.media-info h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

/* Upload Area */
.upload-zone {
  border: 3px dashed var(--primary-color);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 3rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transform: scale(1.02);
}

.upload-zone i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.upload-zone h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 50px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.progress-bar {
  background: var(--primary-gradient);
  border-radius: 50px;
  transition: var(--transition);
}

/* Tables */
.table {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table thead th {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  padding: 1rem;
  border: none;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: scale(1.01);
}

.table td {
  padding: 1rem;
  border-color: var(--border-color);
  vertical-align: middle;
}

/* Status Indicators */
.status-online {
  color: var(--success-color);
  font-weight: 600;
}

.status-offline {
  color: var(--text-muted);
  font-weight: 600;
}

.badge {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: var(--success-gradient);
  color: white;
}

.badge-warning {
  background: var(--warning-gradient);
  color: var(--text-primary);
}

.badge-danger {
  background: var(--danger-gradient);
  color: white;
}

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

/* Pagination */
.pagination {
  gap: 0.5rem;
}

.page-link {
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

.page-link:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: var(--primary-gradient);
  border-color: var(--primary-color);
  color: white;
}

/* Modals */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.modal-header {
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 1.5rem 2rem;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.modal-body {
  padding: 2rem;
}

/* Alerts */
.alert {
  border-radius: var(--border-radius-lg);
  border: none;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
}

.alert-success {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 236, 210, 0.3) 0%, rgba(252, 182, 159, 0.3) 100%);
  color: #d69e2e;
  border-left: 4px solid #d69e2e;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.1) 0%, rgba(254, 207, 239, 0.1) 100%);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

/* Login/Signup Forms */
.az-signin-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.az-card-signin {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.az-signin-header h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.az-signin-header h4 {
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Dashboard Title */
.az-dashboard-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

.media-card {
  animation: slideInRight 0.6s ease-out;
}

.card-dashboard-two {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .az-content {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .az-card-signin {
    padding: 2rem;
    margin: 1rem;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Cute Elements */
.cute-icon {
  display: inline-block;
  animation: bounce 2s infinite;
}

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

/* Glass Effect for Special Elements */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

/* Hover Effects for Interactive Elements */
.interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

/* Success States */
.success-state {
  background: var(--success-gradient);
  color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

/* Error States */
.error-state {
  background: var(--danger-gradient);
  color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

/* Modern Admin Navigation Styles */

/* Top Navigation Bar */
.modern-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}

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

.navbar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.brand-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 2rem;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-item {
  position: relative;
}

.notification-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-gradient);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary-gradient);
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 1rem 1.5rem;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.user-role {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.dropdown-item {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Modern Sidebar */
.modern-sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  flex-shrink: 0;
}

.sidebar-header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.sidebar-title-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  padding: 0 1.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

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

.nav-item {
  margin: 0.25rem 1rem;
}

.nav-item:last-child {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 44px;
}

.nav-link:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--primary-color);
  transform: translateX(4px);
  text-decoration: none;
}

.nav-link.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.nav-link.active .nav-indicator {
  opacity: 1;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.nav-indicator {
  width: 4px;
  height: 20px;
  background: white;
  border-radius: 2px;
  opacity: 0;
  transition: var(--transition);
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 70px);
}

.content-wrapper {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content Sections Animation */
.content-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design for Navigation */
@media (max-width: 1024px) {
  .navbar-center {
    display: none;
  }
  
  .modern-sidebar {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .modern-sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    z-index: 999;
    transition: left 0.3s ease;
  }
  
  .modern-sidebar.open {
    left: 0;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-wrapper {
    padding: 1rem;
  }
  
  .navbar-container {
    padding: 0 1rem;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

@media (max-width: 768px) {
  .sidebar-overlay.active {
    display: block;
  }
}

/* Enhanced Card Styles for Admin */
.admin-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  overflow: hidden;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.admin-card-header {
  background: var(--primary-gradient);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.admin-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin: 0;
  font-size: 1.25rem;
}

.admin-card-body {
  padding: 2rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.online {
  background: var(--success-gradient);
  color: white;
}

.status-badge.offline {
  background: var(--text-muted);
  color: white;
}

.status-badge.pending {
  background: var(--warning-gradient);
  color: var(--text-primary);
}

/* Action Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

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

.action-btn.success {
  background: var(--success-gradient);
  color: white;
}

.action-btn.warning {
  background: var(--warning-gradient);
  color: var(--text-primary);
}

.action-btn.danger {
  background: var(--danger-gradient);
  color: white;
}
/* Enhanced Navigation Text Visibility */
.nav-link .nav-text {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 0.95rem;
  line-height: 1.4;
}

.nav-link:hover .nav-text {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.active .nav-text {
  color: white;
  font-weight: 600;
}

/* Ensure sidebar content is properly spaced */
.sidebar-nav {
  padding: 1.5rem 0 2rem;
}

.nav-section:first-child .nav-section-title {
  margin-top: 0;
}

/* Better visual hierarchy for navigation */
.nav-section-title {
  position: relative;
}

.nav-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  opacity: 0.3;
}

/* Improved hover states */
.nav-link:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.nav-link:hover .nav-icon {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Active state improvements */
.nav-link.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.nav-link.active .nav-icon {
  color: white;
}

.nav-link.active .nav-indicator {
  opacity: 1;
  background: white;
}
/* Modern Remote Control Modal Styles */
.modern-modal {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modern-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 1.5rem 2rem;
  color: white;
}

.device-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modern-modal-body {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.control-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.section-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  margin-right: 0.75rem;
}

.section-title {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.control-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: var(--primary-color);
  background: white;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-text {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.refresh-btn .btn-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.screenshot-btn .btn-icon {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #495057;
}

.reboot-btn .btn-icon {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #495057;
}

.erase-btn .btn-icon {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: white;
}

.mute-btn .btn-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.volume-control {
  text-align: center;
}

.volume-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.volume-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.volume-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.volume-value small {
  font-size: 1rem;
  opacity: 0.7;
}

.volume-slider-container {
  margin-bottom: 1.5rem;
}

.modern-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ecef 0%, var(--primary-color) 0%, var(--primary-color) 50%, #e9ecef 50%);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 1rem;
}

.modern-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.modern-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modern-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.orientation-buttons {
  display: flex;
  gap: 1rem;
}

.orientation-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--text-primary);
}

.orientation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: var(--primary-color);
  background: white;
}

.orientation-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.orientation-btn span {
  font-size: 0.85rem;
  font-weight: 500;
}

.screenshot-preview {
  background: rgba(248, 249, 250, 0.8);
  border: 2px dashed rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.screenshot-placeholder {
  color: var(--text-muted);
}

.screenshot-placeholder i {
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.screenshot-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.screenshot-preview img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.control-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.control-btn.loading .btn-icon {
  animation: pulse 1.5s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .control-grid {
    grid-template-columns: 1fr;
  }
  
  .orientation-buttons {
    flex-direction: column;
  }
  
  .volume-display {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .modern-modal-body {
    padding: 1rem;
  }
  
  .control-section {
    padding: 1rem;
  }
  
  .modal-xl {
    max-width: 95%;
  }
}
/* Tenant Devices Page Specific Styles */
.tenant-selector {
  max-width: 300px;
  width: 100%;
}

.tenant-selector .form-select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.tenant-selector .form-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  background: white;
}

.tenant-info {
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.tenant-info strong {
  color: var(--primary-color);
}

/* Fix page overflow */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

.az-content {
  width: 100%;
  overflow-x: hidden;
}

.az-content-body {
  width: 100%;
  overflow-x: hidden;
}

.d-flex {
  flex-wrap: wrap;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Responsive adjustments for tenant selector */
@media (max-width: 768px) {
  .navbar-center {
    display: none;
  }
  
  .tenant-info {
    display: none;
  }
}