/* TailAdmin Custom CSS - Compiled Version */

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  height: 100vh;
  width: 18rem;
  background-color: rgb(17 24 39);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.sidebar-collapsed {
  transform: translateX(-100%);
}

@media (min-width: 1024px) {
  .sidebar-collapsed {
    width: 5rem;
    transform: translateX(0);
  }
}

/* Main Content Area */
.main-content {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: 18rem;
  }
}

.main-content-collapsed {
  margin-left: 0;
}

@media (min-width: 1024px) {
  .main-content-collapsed {
    margin-left: 5rem;
  }
}

.dashboard-content {
  padding: 1rem;
}

@media (min-width: 640px) {
  .dashboard-content {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .dashboard-content {
    padding: 2rem;
  }
}

/* Cards */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgb(229 231 235);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgb(17 24 39);
}

.card-body {
  padding: 1rem 1.5rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: white;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card-icon {
  position: absolute;
  right: 1rem;
  top: 1rem;
  height: 4rem;
  width: 4rem;
  color: rgb(229 231 235);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(107 114 128);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-top: 0.25rem;
}

.stat-subtitle {
  font-size: 0.875rem;
  color: rgb(75 85 99);
  margin-top: 0.25rem;
}

/* Tables */
.data-table {
  width: 100%;
  table-layout: auto;
}

.data-table thead {
  background-color: rgb(249 250 251);
}

.data-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(107 114 128);
}

.data-table td {
  white-space: nowrap;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: rgb(17 24 39);
}

.data-table tbody tr {
  border-bottom: 1px solid rgb(229 231 235);
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.data-table tbody tr:hover {
  background-color: rgb(249 250 251);
}

/* Forms */
.form-input {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgb(209 213 219);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.form-input:focus {
  border-color: rgb(99 102 241);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(55 65 81);
}

.form-select {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgb(209 213 219);
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  appearance: none;
}

.form-select:focus {
  border-color: rgb(99 102 241);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

.btn-primary {
  background-color: rgb(79 70 229);
  color: white;
}

.btn-primary:hover {
  background-color: rgb(67 56 202);
}

.btn-primary:focus {
  box-shadow: 0 0 0 2px white, 0 0 0 4px rgb(99 102 241);
}

.btn-secondary {
  background-color: white;
  color: rgb(55 65 81);
  border: 1px solid rgb(209 213 219);
}

.btn-secondary:hover {
  background-color: rgb(249 250 251);
}

.btn-secondary:focus {
  box-shadow: 0 0 0 2px white, 0 0 0 4px rgb(99 102 241);
}

.btn-danger {
  background-color: rgb(220 38 38);
  color: white;
}

.btn-danger:hover {
  background-color: rgb(185 28 28);
}

.btn-danger:focus {
  box-shadow: 0 0 0 2px white, 0 0 0 4px rgb(239 68 68);
}

.btn-success {
  background-color: rgb(5 150 105);
  color: white;
}

.btn-success:hover {
  background-color: rgb(4 120 87);
}

.btn-success:focus {
  box-shadow: 0 0 0 2px white, 0 0 0 4px rgb(16 185 129);
}

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

/* Alerts */
.alert {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgb(236 253 245);
  color: rgb(6 78 59);
  border: 1px solid rgb(167 243 208);
}

.alert-error {
  background-color: rgb(254 242 242);
  color: rgb(127 29 29);
  border: 1px solid rgb(254 202 202);
}

.alert-warning {
  background-color: rgb(254 252 232);
  color: rgb(113 63 18);
  border: 1px solid rgb(254 240 138);
}

.alert-info {
  background-color: rgb(239 246 255);
  color: rgb(30 58 138);
  border: 1px solid rgb(191 219 254);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(75 85 99);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: rgb(156 163 175);
}

/* Tabs */
.tab-list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgb(229 231 235);
}

.tab-item {
  margin-bottom: -1px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(107 114 128);
  cursor: pointer;
}

.tab-item:hover {
  color: rgb(55 65 81);
}

.tab-item:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.tab-item-active {
  border-bottom: 2px solid rgb(99 102 241);
  color: rgb(79 70 229);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  text-align: left;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  z-index: 10;
  margin-top: 0.5rem;
  width: 14rem;
  transform-origin: top right;
  border-radius: 0.375rem;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgb(55 65 81);
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: rgb(249 250 251);
}

/* Charts Container */
.chart-container {
  position: relative;
  height: 20rem;
  width: 100%;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  height: 2rem;
  width: 2rem;
  animation: spin 1s linear infinite;
  border-radius: 9999px;
  border: 4px solid;
  border-color: rgb(79 70 229);
  border-right-color: transparent;
}

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

/* Utility classes */
.hidden {
  display: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .dark\:bg-gray-800 {
    background-color: rgb(31 41 55);
  }
  
  .dark\:text-gray-100 {
    color: rgb(243 244 246);
  }
  
  .dark\:border-gray-700 {
    border-color: rgb(55 65 81);
  }
}

/* Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

.animate-slide-out {
  animation: slide-out 0.3s ease-out;
}