@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
}

/* Theme variables */
:root {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans, Arial, sans-serif);
  --font-mono: var(--font-geist-mono, monospace);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

/* Database Content Styles */
.database-content {
  font-size: 14px;
  line-height: 1.5;
  color: #000000; /* Ensure black text by default */
}

/* Only apply larger font size to data values on mobile, not on desktop */

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

.database-content th,
.database-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.database-content th {
  font-weight: 600;
  background-color: #f9fafb;
  font-size: 18px;
}

.database-content tr:hover {
  background-color: #f9fafb;
}

/* Form elements in database views */
.database-content input,
.database-content textarea,
.database-content select {
  font-size: 14px !important;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  width: 100%;
  color: #000000 !important; /* Force black text */
  background-color: #ffffff !important; /* Ensure white background */
}

/* Ensure text color stays black on all devices */
.database-content input[type="text"],
.database-content input[type="date"],
.database-content input[type="time"],
.database-content input[type="number"],
.database-content select,
.database-content textarea {
  color: #000000 !important;
}

/* Style only buttons that don't have specific action classes */
.database-content button:not([class*="bg-"]):not([class*="text-"]) {
  font-size: 18px;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

/* Ensure action buttons maintain their intended styles */
.database-content .bg-gray-100,
.database-content .bg-blue-100,
.database-content .bg-green-100,
.database-content .bg-purple-100 {
  font-size: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin: 0 0.125rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .database-content {
    font-size: 14px;
  }
  
  .database-content th,
  .database-content td {
    padding: 0.5rem;
    color: #000000; /* Ensure table cell text is black */
  }
  
  /* Make data values larger only on mobile */
  .database-content td:not(th) {
    color: #000000; /* Ensure data cells are black */
    font-size: 20px;
  }
  
  .database-content input,
  .database-content textarea,
  .database-content select {
    font-size: 14px !important;
  }
  
  /* Ensure form labels and headers stay at normal size */
  .database-content label,
  .database-content th,
  .database-content h1,
  .database-content h2,
  .database-content h3 {
    font-size: 14px !important;
  }
}

/* Mobile container styles */
@media (max-width: 768px) {
  html {
    display: flex;
    justify-content: center;
    background-color: #f5f5f5;
  }
  
  body {
    width: 100%;
    max-width: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
}
