/* Admin Layout Styles */
.admin-dashboard, 
.admin-users-page, 
.admin-user-page, 
.admin-user-form-page,
.admin-companies-page,
.admin-company-page,
.admin-company-form-page,
.admin-api-keys-page {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-user-page, 
.admin-user-form-page,
.admin-company-form-page {
  max-width: 800px;
}

/* Page header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Card components */
.card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

/* Stats components */
.dashboard-stats, .company-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Form layouts */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

/* Error message formatting */
.error-messages {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.error-messages h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.error-messages ul {
  margin-left: 20px;
}

/* Status badges */
.status {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  font-weight: 500;
}

.status.completed {
  background-color: rgba(0, 200, 83, 0.1);
  color: #00a852;
}

.status.failed {
  background-color: rgba(255, 51, 51, 0.1);
  color: #e60000;
}

.status.pending {
  background-color: rgba(255, 153, 0, 0.1);
  color: #cc7a00;
}

.status.processing {
  background-color: rgba(0, 153, 255, 0.1);
  color: #007acc;
}

/* Action buttons */
.admin-actions, .action-buttons {
  margin-bottom: 40px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.danger {
  background-color: var(--danger-color);
}

/* Empty state */
.empty-state-box {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.empty-state-box p {
  margin-bottom: 15px;
}

.empty-state {
  color: var(--gray-color);
  font-style: italic;
}

/* Details display */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.detail-label {
  font-weight: 600;
  color: var(--gray-color);
  margin-bottom: 5px;
}

.detail-value {
  font-size: 1.1rem;
}

/* Company-specific styles */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.company-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.company-header {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.company-logo, .company-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.company-logo-placeholder {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.company-name {
  font-size: 1.3rem;
  margin: 0;
}

.company-name a {
  color: var(--dark-color);
  text-decoration: none;
}

.company-name a:hover {
  color: var(--primary-color);
}

.company-body {
  padding: 20px;
}

.company-description {
  color: var(--gray-color);
  margin-bottom: 15px;
  min-height: 60px;
}

.company-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

/* Company details page */
.company-info {
  flex: 1;
}

.company-website a {
  color: var(--primary-color);
  text-decoration: none;
}

.company-website a:hover {
  text-decoration: underline;
}

.company-description h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.company-actions, .user-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Company logo on edit page */
.current-logo {
  margin-bottom: 10px;
}

.logo-preview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* Helper classes */
small {
  font-size: 0.85rem;
  color: var(--gray-color);
  display: block;
  margin-top: 5px;
}

/* Pagination styling */
.pagination {
  margin: 20px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  list-style-type: none;
}

.pagination li {
  display: inline-block;
  margin: 0 3px;
}

.pagination a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  background-color: var(--light-color);
  color: var(--dark-color);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background-color: var(--secondary-color);
  color: white;
}

.pagination .current a {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  cursor: default;
}

.pagination .gap {
  padding: 5px 10px;
  border: 1px solid transparent;
  color: var(--gray-color);
}

.pagination .disabled {
  color: var(--gray-color);
  cursor: not-allowed;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

/* Root variables for consistent theming */
:root {
  --primary-color: #0a5d9b;
  --secondary-color: #2c82c9;
  --accent-color: #5e97d1;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #f5f7fa;
  --dark-color: #2c3e50;
  --gray-color: #95a5a6;
  --border-color: #dddfe2;
  
  --header-height: 60px;
  --footer-height: 60px;
  --container-width: 1200px;
  
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Poppins", var(--font-main);
}

/* Basic CSS reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container for content */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styling */
.app-header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-name {
  font-weight: 500;
}

/* Main content area */
.main-content {
  flex: 1;
  padding: 30px 0;
}

/* Footer styling */
.app-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 20px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form elements */
form {
  margin-bottom: 20px;
}

.field {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s;
}

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

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

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

.btn.small {
  padding: 5px 10px;
  font-size: 0.9rem;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.data-table th,
.data-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--light-color);
  font-weight: 600;
}

.data-table tr:hover {
  background-color: rgba(0,0,0,0.02);
}

/* Alert messages */
.notice, .alert {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Dashboard specific styles */
.dashboard-page {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-welcome {
  margin-bottom: 30px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stats-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.dashboard-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.dashboard-section h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.dashboard-actions {
  margin-top: 30px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.empty-state {
  color: var(--gray-color);
  font-style: italic;
}

/* Home page specific styles */
.home-page {
  margin-bottom: 50px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: white;
  margin-bottom: 50px;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.lead-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.features-section {
  padding: 50px 0;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--light-color);
  margin-top: 50px;
}

.contact-section h2 {
  margin-bottom: 15px;
}

.contact-section p {
  margin-bottom: 30px;
}
