/* Custom CSS for Clean Proposals UI */

:root {
  /* Custom color palette */
  --primary-blue: #007bff;
  --secondary-gray: #6c757d;
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-yellow: #ffc107;
  --info-cyan: #17a2b8;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --accent-teal: #20c997;
  --accent-purple: #6f42c1;
  --border-color: #dee2e6;
  --hover-bg: #e9ecef;
}

/* Global styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

/* Custom utilities */
.bg-sidebar {
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
}

.sidebar-link {
  color: var(--secondary-gray);
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  border-radius: 0.375rem;
  margin: 0.25rem 0;
  transition: all 0.2s ease-in-out;
}

.sidebar-link:hover {
  background-color: var(--hover-bg);
  color: var(--primary-blue);
}

.sidebar-link.active {
  background-color: var(--primary-blue);
  color: white;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-blue) !important;
}

.card-stat {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.2s ease-in-out;
}

.card-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.btn-loading {
  position: relative;
}

.btn-loading .spinner-border {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.table-actions {
  white-space: nowrap;
}

.table-actions .btn {
  padding: 0.25rem 0.5rem;
  margin: 0 0.125rem;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.proposal-section {
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  background: white;
}

.proposal-section-header {
  background-color: var(--light-gray);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
}

.proposal-section-content {
  padding: 1rem;
}

.drag-handle {
  cursor: move;
  color: var(--secondary-gray);
}

.pricing-table th {
  background-color: var(--light-gray);
  border-color: var(--border-color);
}

.image-preview {
  max-width: 200px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
}

.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
}

.login-card {
  max-width: 400px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-gray);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

