/* Doc_Map_Agent Styles */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --text-color: #333;
  --border-radius: 4px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

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

.header-actions {
  display: flex;
  align-items: center;
}

.search-bar {
  margin-right: 15px;
  position: relative;
}

.search-bar input {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  width: 200px;
  font-size: 0.9rem;
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.settings-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Navigation */
.breadcrumb {
  padding: 1rem 0;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
}

.breadcrumb li {
  margin-right: 10px;
}

.breadcrumb li:after {
  content: ">";
  margin-left: 10px;
  color: #999;
}

.breadcrumb li:last-child:after {
  content: "";
}

.breadcrumb a {
  text-decoration: none;
  color: var(--secondary-color);
}

.breadcrumb li:last-child a {
  color: var(--text-color);
  font-weight: 500;
}

/* Main Content */
main {
  padding: 2rem 0;
}

.page-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* Card Styles */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem;
  background-color: var(--light-color);
  border-bottom: 1px solid #ddd;
  font-weight: 500;
}

.card-body {
  padding: 1rem;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Dashboard Cards */
.dashboard-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

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

.dashboard-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.dashboard-card p {
  color: #777;
  font-size: 0.9rem;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
}

.sidebar-title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  font-size: 1.2rem;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
}

.filter-option {
  margin-bottom: 0.5rem;
}

.filter-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter-option input {
  margin-right: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #2980b9;
}

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

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

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

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

.btn-block {
  display: block;
  width: 100%;
}

/* Document Cards */
.document-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

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

.document-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.document-card-meta {
  display: flex;
  margin-bottom: 0.5rem;
}

.document-card-meta span {
  margin-right: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.document-card-actions {
  margin-top: 1rem;
  text-align: right;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Dependency Visualization */
.visualization-container {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  height: 500px;
  position: relative;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  margin-top: 2rem;
}

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

.footer-links a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-actions {
    margin-top: 1rem;
    width: 100%;
  }
  
  .search-bar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .search-bar input {
    width: 100%;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mt-3 {
  margin-top: 1.5rem;
}

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

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

.mb-3 {
  margin-bottom: 1.5rem;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}
