/* Custom Tesseract ESS styles beyond Tailwind utilities */

/* Primary colors */
:root {
  --color-primary: #ff5722;  /* Orange */
  --color-primary-dark: #e64a19;
  --color-secondary: #e02020;  /* Red */
  --color-secondary-dark: #c62828;
  --color-dark: #212121;
  --color-dark-light: #424242;
  --color-dark-sidebar: #1a1a1a;
}

/* Sidebar active state */
.sidebar-active {
  background-color: rgba(255, 87, 34, 0.1);
  border-left: 4px solid var(--color-primary);
}

/* Primary button styles */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

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

/* Card hover effects */
.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Status colors */
.status-active {
  background-color: #10b981;
  color: white;
}

.status-pending {
  background-color: #f59e0b;
  color: white;
}

.status-inactive {
  background-color: #6b7280;
  color: white;
}

/* Progress bar animations */
.progress-bar {
  transition: width 1s ease-in-out;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }

  .print-only {
    display: block;
  }

  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }
}

/* Responsive fixes */
@media (max-width: 768px) {
  .responsive-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .card-stack {
    margin-bottom: 1rem;
  }
}

/* Dashboard specific styles */
.dashboard-card {
  min-height: 160px;
}

/* Chart containers */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Form elements */
.form-input {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

input[type="text"] {
  height: 52px;
}

/* VPN policy table filters: undo global 52px text inputs + keep selects identical (CDN Tailwind may load after this file) */
.vpn-policy-filter .vpn-policy-filter-control,
.vpn-policy-filter input[type="text"],
.vpn-policy-filter select {
  height: 2.25rem !important;
  min-height: 0 !important;
  max-height: 2.25rem !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.25rem !important;
}
.vpn-policy-filter select {
  padding-right: 1.75rem !important; /* keep room for native chevron (pr-7) */
}

.select2-container {
width: 100% !important;
}

.select2-selection--single {
height: 52px !important;
border: 2px solid #e5e7eb !important;
border-radius: 0.5rem !important;
display: flex !important;
align-items: center !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
border-color: #f97316 !important;
}

.select2-selection__rendered {
padding-left: 0.75rem !important;
color: #6b7280 !important;
}

.select2-selection__placeholder {
  color: #9ca3af !important;
}

.select2-selection__arrow {
height: 50px !important;
}

.select2-dropdown {
border: 2px solid #e5e7eb !important;
border-radius: 0.5rem !important;
margin-top: 4px !important;
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: white;
  font-size: 10px;
  font-weight: 600;
}

/* Tag/badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Tesseract logo animation */
@keyframes pulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}

.logo-pulse {
  animation: pulse 2s infinite;
}

.messages {
    z-index: 60;
}
