/*
 * Cold Layout Template
 * For SaaS and API business applications
 */

/* Layout Container */
.cold-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--theme-bg);
}

/* Sidebar - Compact */
.cold-sidebar {
  width: 56px;
  background-color: var(--theme-surface);
  border-right: 1px solid var(--theme-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  transition: width var(--transition-speed);
}

.cold-sidebar.expanded {
  width: 240px;
}

.cold-sidebar-logo {
  width: 32px;
  height: 32px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.cold-sidebar-nav {
  flex: 1;
  width: 100%;
}

.cold-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  color: var(--theme-text-secondary);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-speed);
}

.cold-nav-item:hover {
  color: var(--theme-text-primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.cold-nav-item.active {
  color: var(--theme-text-primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.cold-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background-color: var(--theme-highlight);
  border-radius: 0 2px 2px 0;
}

.cold-nav-icon {
  width: 20px;
  height: 20px;
}

.cold-nav-label {
  display: none;
  margin-left: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cold-sidebar.expanded .cold-nav-label {
  display: block;
}

.cold-sidebar.expanded .cold-nav-item {
  justify-content: flex-start;
  padding: 0 1rem;
}

/* Main Container */
.cold-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.cold-header {
  height: 56px;
  background-color: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.cold-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cold-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.cold-breadcrumb-item {
  color: var(--theme-text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.cold-breadcrumb-item:hover {
  color: var(--theme-text-primary);
}

.cold-breadcrumb-item.active {
  color: var(--theme-text-primary);
  font-weight: 500;
}

.cold-breadcrumb-separator {
  color: var(--theme-text-secondary);
}

.cold-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cold-header-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background-color: var(--theme-bg);
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--theme-text-primary);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.cold-header-dropdown:hover {
  border-color: var(--theme-accent);
}

.cold-header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem;
  cursor: pointer;
}

.cold-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--theme-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Main Content */
.cold-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.cold-content {
  max-width: 1400px;
  margin: 0 auto;
}

/* Page Header */
.cold-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cold-page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--theme-text-primary);
}

.cold-page-actions {
  display: flex;
  gap: 0.75rem;
}

/* Metrics Grid */
.cold-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cold-metric-card {
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cold-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--theme-highlight);
  opacity: 0.5;
}

.cold-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cold-metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text-secondary);
}

.cold-metric-icon {
  width: 20px;
  height: 20px;
  color: var(--theme-accent);
}

.cold-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: 0.5rem;
}

.cold-metric-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.cold-metric-change.positive {
  background-color: rgba(107, 140, 174, 0.1);
  color: #6B8CAE;
}

.cold-metric-change.negative {
  background-color: rgba(255, 87, 87, 0.1);
  color: #FF5757;
}

/* Data Table Container */
.cold-table-container {
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.cold-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--theme-border);
}

.cold-table-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text-primary);
}

.cold-table-filters {
  display: flex;
  gap: 0.75rem;
}

.cold-table {
  width: 100%;
  border-collapse: collapse;
}

.cold-table thead {
  background-color: var(--theme-bg);
}

.cold-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text-secondary);
  border-bottom: 1px solid var(--theme-border);
}

.cold-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--theme-text-primary);
  border-bottom: 1px solid var(--theme-border);
}

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

.cold-table tbody tr:hover {
  background-color: rgba(140, 144, 146, 0.03);
}

/* Status Badges */
.cold-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.cold-status.active {
  background-color: rgba(107, 140, 174, 0.1);
  color: #6B8CAE;
}

.cold-status.pending {
  background-color: rgba(255, 184, 77, 0.1);
  color: #FFB84D;
}

.cold-status.inactive {
  background-color: var(--cool-200);
  color: var(--cool-600);
}

/* Empty State */
.cold-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.cold-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--theme-text-secondary);
  opacity: 0.5;
}

.cold-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--theme-text-primary);
  margin-bottom: 0.5rem;
}

.cold-empty-description {
  font-size: 0.875rem;
  color: var(--theme-text-secondary);
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* Responsive */
@media (max-width: 1280px) {
  .cold-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cold-sidebar {
    display: none;
  }

  .cold-metrics-grid {
    grid-template-columns: 1fr;
  }

  .cold-main {
    padding: 1rem;
  }

  .cold-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}