/* 
 * Tender Creator - Visual Identity
 * Colors:
 * - Cambridge Blue: #92BDBB - Primary accent
 * - Japanese Indigo: #1B3948 - Primary dark
 * - White: #FFFFFF - Background
 * - Light Grey: #F8F9FA - Secondary background
 * - Mid Grey: #E9ECEF - Borders
 * - Dark Grey: #495057 - Text
 */

/* Typography enhancements */
body {
  font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
  color: #495057;
  line-height: 1.6;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  color: #1B3948;
  font-weight: 600;
}

h1 {
  border-bottom: 2px solid #14a39c;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Main navigation */
.navbar {
  background-color: #1B3948 !important;
  box-shadow: 0 2px 10px rgba(27, 57, 72, 0.15);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #92BDBB;
}

.navbar-dark .navbar-nav .nav-link.active {
  font-weight: 600;
  color: #92BDBB;
  border-bottom: 2px solid #92BDBB;
}

/* Buttons */
.btn {
  border-radius: 5px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1B3948;
  border-color: #1B3948;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #152c37;
  border-color: #152c37;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(27, 57, 72, 0.15);
}

.btn-success {
  background-color: #2D8B87;
  border-color: #2D8B87;
}

.btn-success:hover, .btn-success:focus {
  background-color: #267a76;
  border-color: #267a76;
}

.btn-info {
  background-color: #92BDBB;
  border-color: #92BDBB;
  color: #1B3948;
}

.btn-info:hover, .btn-info:focus {
  background-color: #7ba8a6;
  border-color: #7ba8a6;
  color: #1B3948;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-primary {
  color: #1B3948;
  border-color: #1B3948;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: #1B3948;
  border-color: #1B3948;
  color: #FFFFFF;
}

.btn-outline-info {
  color: #4cbbb5;
  border-color: #4abcb7;
}

.btn-outline-info:hover, .btn-outline-info:focus {
  background-color: #92BDBB;
  border-color: #92BDBB;
  color: #1B3948;
}

/* Cards */
.card {
  border-radius: 8px;
  border: 1px solid #E9ECEF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(27, 57, 72, 0.1);
}

.card-header {
  background-color: #F8F9FA;
  border-bottom: 1px solid #E9ECEF;
  padding: 1rem 1.25rem;
}

.card-header h5 {
  margin-bottom: 0;
  font-weight: 600;
}

/* Table of Contents tree */
.toc-tree {
  padding: 0.75rem;
}

.toc-section {
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.toc-section:hover {
  background-color: rgba(146, 189, 187, 0.15);
  border: 1px solid rgba(146, 189, 187, 0.3);
  cursor: pointer;
}

.toc-section.selected {
  background-color: rgba(146, 189, 187, 0.25);
  border-left: 4px solid #92BDBB;
  box-shadow: 0 2px 6px rgba(146, 189, 187, 0.2);
  font-weight: 500;
}

.toc-toggle {
  color: #1B3948;
  transition: transform 0.2s ease;
}

.toc-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

/* Tabs styling */
.nav-tabs {
  border-bottom: 1px solid #92BDBB;
}

.nav-tabs .nav-item .nav-link {
  color: #6c757d;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.nav-tabs .nav-item .nav-link:hover {
  border-color: transparent;
  color: #1B3948;
}

.nav-tabs .nav-item .nav-link.active {
  color: #1B3948;
  background-color: transparent;
  border-color: transparent;
  border-bottom: 2px solid #92BDBB;
}

/* Form controls */
.form-control {
  border-radius: 5px;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease-in-out;
}

.form-control:focus {
  border-color: #92BDBB;
  box-shadow: 0 0 0 0.25rem rgba(146, 189, 187, 0.25);
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-text {
  color: #6c757d;
}

/* Modals */
.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #F8F9FA;
  border-bottom: 1px solid #E9ECEF;
}

.modal-header .modal-title {
  color: #1B3948;
  font-weight: 600;
}

.modal-footer {
  background-color: #F8F9FA;
  border-top: 1px solid #E9ECEF;
}

/* Alerts */
.alert {
  border-radius: 6px;
  border: none;
}

.alert-info {
  background-color: rgba(146, 189, 187, 0.852);
  color: #1B3948;
  border-left: 4px solid #1e8b86;
}

.alert-secondary {
  background-color: #F8F9FA;
  color: #495057;
  border-left: 4px solid #6c757d;
}

.alert h5 {
  color: inherit;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: #F8F9FA;
  border-top: 1px solid #E9ECEF;
  color: #6c757d;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

/* Project page specific */
.project-header {
  background-color: rgba(146, 189, 187, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Action menu styling */
.action-menu {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(27, 57, 72, 0.08);
  padding: 1.25rem;
}

.action-group h6 {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-group .btn {
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dropdown-menu {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #E9ECEF;
  overflow: hidden;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: rgba(146, 189, 187, 0.1);
}

.gap-2 {
  gap: 0.5rem !important;
}

/* Special styling for generate content button */
#ai-generate-content {
  letter-spacing: 0.5px;
  padding: 0.6rem 1.25rem;
  box-shadow: 0 4px 8px rgba(27, 57, 72, 0.15) !important;
  transition: all 0.2s ease;
  border: none;
  background: linear-gradient(145deg, #4ecac4, #36a09c);
}

#ai-generate-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(27, 57, 72, 0.2) !important;
}

/* Prompt Variable Guides */
.variable-guide {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.variable-guide-title {
  font-weight: 500;
  color: #1B3948;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.variable-pill {
  display: inline-block;
  background-color: #e2f0f0;
  border: 1px solid #24aea7;
  color: #1B3948;
  border-radius: 4px;
  padding: 3px 8px;
  margin: 3px;
  font-size: 0.85rem;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variable-pill:hover {
  background-color: #24aea7;
  color: white;
  transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Helper classes */
.text-primary {
  color: #1B3948 !important;
}

.text-accent {
  color: #24aea7 !important;
}

.bg-primary {
  background-color: #1B3948 !important;
}

.bg-accent {
  background-color: #92BDBB !important;
}

.bg-light {
  background-color: #F8F9FA !important;
}

.border-accent {
  border-color: #92BDBB !important;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .card-deck {
    display: block;
  }
  
  .btn-group {
    display: flex;
    flex-wrap: wrap;
  }
  
  .btn-group .btn {
    margin-bottom: 0.5rem;
  }
}
