/* Admin Panel Styles - Pure CSS for PHP-only hosting */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #2a2a2a;
  background-color: #f5f4f1;
}

/* Layout */
.flex {
  display: flex;
}

.min-h-screen {
  min-height: 100vh;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-1 {
  flex: 1;
}

.overflow-auto {
  overflow: auto;
}

/* Sidebar Styles */
.w-64 {
  width: 16rem;
}

.bg-primary {
  background-color: #3d3d3d;
}

.text-primary-foreground {
  color: #faf9f7;
}

.p-6 {
  padding: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-border {
  border-color: #e5e3dd;
}

.border-primary-foreground\/10 {
  border-color: rgba(250, 249, 247, 0.1);
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-8 {
  margin-top: 2rem;
}

.pt-8 {
  padding-top: 2rem;
}

.text-primary-foreground\/70 {
  color: rgba(250, 249, 247, 0.7);
}

.hidden {
  display: none;
}

.max-h-96 {
  max-height: 24rem;
}

/* Navigation */
nav ul {
  list-style: none;
}

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

nav a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: rgba(250, 249, 247, 0.05);
}

nav a.bg-primary-foreground\/10 {
  background-color: rgba(250, 249, 247, 0.1);
}

.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Main Content */
.bg-muted {
  background-color: #f5f4f1;
}

.bg-background {
  background-color: #faf9f7;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded {
  border-radius: 0.25rem;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-4 {
  gap: 1rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Typography */
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

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

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-muted-foreground {
  color: #6b6b6b;
}

.text-accent-foreground {
  color: #faf9f7;
}

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

.items-start {
  align-items: flex-start;
}

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

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

.flex-shrink-0 {
  flex-shrink: 0;
}

.min-w-0 {
  min-width: 0;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* Links */
.text-accent {
  color: #7a7568;
}

.hover\:text-primary:hover {
  color: #3d3d3d;
}

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

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

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* Badges */
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.bg-green-100 {
  background-color: #d1fae5;
}

.text-green-800 {
  color: #065f46;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.text-red-800 {
  color: #991b1b;
}

.bg-accent {
  background-color: #7a7568;
}

.bg-secondary {
  background-color: #f5f4f1;
}

.text-secondary-foreground {
  color: #2a2a2a;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  background-color: #f5f4f1;
  border-bottom: 2px solid #e5e3dd;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e3dd;
}

tr:hover {
  background-color: #faf9f7;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e3dd;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7a7568;
  box-shadow: 0 0 0 3px rgba(122, 117, 104, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  cursor: pointer;
}

.btn-primary {
  background-color: #3d3d3d;
  color: #faf9f7;
  border-color: #3d3d3d;
}

.btn-primary:hover {
  background-color: #2a2a2a;
}

.btn-secondary {
  background-color: #f5f4f1;
  color: #2a2a2a;
  border-color: #e5e3dd;
}

.btn-secondary:hover {
  background-color: #e5e3dd;
}

.btn-danger {
  background-color: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

/* Utilities */
.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.whitespace-nowrap {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .w-64 {
    width: 100%;
  }

  .flex {
    flex-direction: column;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #3d3d3d;
}

/* Job Content */
.job-content {
  word-wrap: break-word;
}

.job-content div,
.job-content span,
.job-content p,
.job-content ul,
.job-content ol,
.job-content li {
  margin-bottom: 0.5rem;
}

.job-content ul,
.job-content ol {
  padding-left: 1.5rem;
}

.job-content h1,
.job-content h2,
.job-content h3,
.job-content h4 {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.job-content a {
  color: #7a7568;
  text-decoration: underline;
}

.job-content strong,
.job-content b {
  font-weight: 600;
}

.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e3dd;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  background-color: #fff;
  transition: all 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

.login-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.bg-primary-light {
  background-color: rgba(102, 126, 234, 0.1);
}

.text-primary {
  color: #667eea;
}

.hover-text-primary:hover {
  color: #667eea;
}
