/* 
==================================================
STYLES NOW CONSOLIDATED IN unified-dashboard.css
==================================================
This file is kept for reference but styles are commented out to prevent conflicts.
Remove this file once unified-dashboard.css is fully tested.
*/

/* CSS Variables for Design System - NOW IN unified-dashboard.css */
:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 84% 4.9%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
  --radius: 0.5rem;
  
  /* Custom colors */
  --mod-primary: 217 91% 60%;
  --mod-secondary: 217 32.6% 17.5%;
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
  --error: 0 72% 51%;
}

/*
==================================================
ALL STYLES BELOW ARE COMMENTED OUT 
NOW USING unified-dashboard.css
==================================================
*/

/* 
Base Styles - COMMENTED OUT - Now in unified-dashboard.css
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.5;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
}
*/

/*
Utility Classes - COMMENTED OUT - Now in unified-dashboard.css
.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}
*/

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

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

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-bold {
  font-weight: 700;
}

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

/* Card Components */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  color: hsl(var(--card-foreground));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

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

.btn-primary:hover:not(:disabled) {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover:not(:disabled) {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover:not(:disabled) {
  background-color: hsl(var(--destructive) / 0.9);
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.btn-outline:hover:not(:disabled) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover:not(:disabled) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Input Components */
.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  display: block;
}

.input-container {
  position: relative;
}

.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 1rem;
  height: 1rem;
}

.password-toggle:hover {
  background-color: transparent;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

/* Notice Component */
.notice-container {
  margin-top: 1rem;
}

.notice {
  background-color: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--muted));
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.notice-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.notice-title {
  font-weight: 500;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
}

.notice-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--background) / 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 10;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 2px solid hsl(var(--border));
  border-top: 2px solid hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: hsl(var(--destructive) / 0.1);
  border: 1px solid hsl(var(--destructive) / 0.3);
  border-radius: var(--radius);
  color: hsl(var(--destructive));
  font-size: 0.875rem;
  text-align: center;
}

/* Access Denied */
.access-denied {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.access-denied-content {
  max-width: 28rem;
  width: 100%;
  text-align: center;
}

.access-denied-icon {
  width: 4rem;
  height: 4rem;
  color: hsl(var(--destructive));
  margin: 0 auto 1rem;
}

.access-denied-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.access-denied-text {
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.access-denied-subtext {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/*
Dashboard Layout Styles - COMMENTED OUT - Now in unified-dashboard.css
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: hsl(var(--background));
}
*/

.sidebar {
  width: 16rem;
  background-color: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 50;
  transition: transform 0.3s ease-in-out;
}

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

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--mod-primary));
}

.sidebar-logo span {
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
}

.sidebar-content {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 1.5rem;
}

.sidebar-group-label {
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu-item {
  margin: 0.125rem 0.5rem;
}

.sidebar-menu-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
}

.sidebar-menu-button:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.sidebar-menu-button.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.sidebar-menu-button svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.main-content {
  flex: 1;
  margin-left: 16rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  height: 4rem;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.sidebar-trigger {
  display: none;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
}

.sidebar-trigger:hover {
  background-color: hsl(var(--accent));
}

.sidebar-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

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

.search-container {
  position: relative;
  width: 16rem;
}

.search-input {
  width: 100%;
  height: 2.25rem;
  padding-left: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}

.notification-btn {
  position: relative;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
}

.notification-btn:hover {
  background-color: hsl(var(--accent));
}

.notification-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.notification-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1rem;
  height: 1rem;
  background-color: hsl(var(--destructive));
  color: white;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: hsl(var(--mod-primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

.content {
  flex: 1;
  overflow-y: auto;
  background-color: hsl(var(--background));
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-trigger {
    display: block;
  }
  
  .search-container {
    display: none;
  }
  
  .header-title {
    font-size: 1rem;
  }
} 