:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --transition-speed: 0.3s;
  }
  
  body {
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  /* Dark mode styles */
  [data-bs-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #34495e;
    --light-color: #2c3e50;
    --dark-color: #ecf0f1;
  }
  
  /* Container styles */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  /* Header styles */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bs-light);
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-primary);
  }
  
  /* Form styles */
  .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: all var(--transition-speed) ease;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
  }
  
  /* Button styles */
  .btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-1px);
  }
  
  /* Tree view styles */
  .group-tree {
    margin-left: 1.5rem;
    padding: 0.5rem;
    border-left: 2px solid var(--bs-border-color);
    position: relative;
    transition: all 0.3s ease;
  }
  
  .group-tree:hover {
    transform: translateX(5px);
  }
  
  .group-tree .group-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bs-light);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
  }
  
  .group-tree .group-label:hover {
    background: var(--bs-gray-100);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  }
  
  .group-tree .group-label:before {
    content: '📁';
    margin-right: 0.5rem;
    font-size: 1.2rem;
  }
  
  .bookmarks-container {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px dashed var(--bs-border-color);
    transition: all 0.3s ease;
  }
  
  .children-container {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px dashed var(--bs-border-color);
    transition: all 0.3s ease;
  }
  
  .group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--light);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
  }
  
  .group-name {
    font-weight: 500;
    color: var(--dark);
  }
  
  .group-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .bookmark-item {
    background-color: var(--light);
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
  }
  
  .bookmark-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .bookmark-name {
    font-weight: 500;
    color: var(--dark);
  }
  
  .bookmark-detail {
    color: var(--secondary);
    word-break: break-all;
  }
  
  .bookmark-detail a {
    color: var(--primary);
    text-decoration: none;
  }
  
  .bookmark-detail a:hover {
    text-decoration: underline;
  }
  
  .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
  }
  
  .btn-action:hover {
    transform: translateY(-2px);
  }
  
  /* Modo oscuro */
  [data-bs-theme="dark"] .group-header,
  [data-bs-theme="dark"] .bookmark-item {
    background-color: var(--dark);
  }
  
  [data-bs-theme="dark"] .group-name,
  [data-bs-theme="dark"] .bookmark-name {
    color: var(--light);
  }
  
  [data-bs-theme="dark"] .bookmark-detail {
    color: var(--secondary);
  }
  
  [data-bs-theme="dark"] .bookmark-detail a {
    color: var(--primary);
  }
  
  /* Table improvements */
  .bookmark-item table {
    width: 100%;
    table-layout: fixed;
    margin: 0;
  }
  
  .bookmark-item table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.5rem;
    vertical-align: middle;
  }
  
  .bookmark-item table td:first-child {
    width: 20%;
  }
  
  .bookmark-item table td:nth-child(2) {
    width: 50%;
  }
  
  .bookmark-item table td:nth-child(3) {
    width: 20%;
  }
  
  .bookmark-item table td:last-child {
    width: 10%;
    text-align: right;
  }
  
  /* Tooltip para contenido largo */
  .bookmark-item [data-bs-toggle="tooltip"] {
    cursor: help;
  }
  
  /* Mejoras en el modo oscuro */
  [data-bs-theme="dark"] .bookmark-item .btn-action {
    background-color: var(--bs-gray-700);
    border-color: var(--bs-gray-600);
    color: var(--bs-light);
  }
  
  [data-bs-theme="dark"] .bookmark-item .btn-action:hover {
    background-color: var(--bs-gray-600);
  }
  
  [data-bs-theme="dark"] .group-tree {
    border-left-color: var(--bs-gray-700);
  }
  
  [data-bs-theme="dark"] .group-tree .group-label {
    background: var(--bs-gray-800);
  }
  
  [data-bs-theme="dark"] .group-tree .group-label:hover {
    background: var(--bs-gray-700);
  }
  
  [data-bs-theme="dark"] .bookmark-item {
    background: var(--bs-gray-800);
  }
  
  [data-bs-theme="dark"] .bookmark-item:hover {
    background: var(--bs-gray-700);
  }
  
  /* Toast notification */
  .toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    min-width: 250px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
  }
  
  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Search input */
  .search-container {
    position: relative;
    margin-bottom: 2rem;
  }
  
  .search-container .form-control {
    padding-left: 3rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    height: 3.5rem;
    font-size: 1.1rem;
  }
  
  .search-container .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  }
  
  .search-container:before {
    content: '🔍';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 1.2rem;
  }
  
  .search-container .form-floating label {
    padding-left: 3rem;
    font-size: 1.1rem;
  }
  
  /* Dark mode toggle */
  .dark-mode-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
    background: var(--light-color);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
  }
  
  .dark-mode-toggle:hover {
    transform: scale(1.1);
  }
  
  /* Modal styles */
  .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
  }
  
  .modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
  }
  
  /* Dark mode para modales */
  [data-bs-theme="dark"] .modal-content {
    background-color: var(--dark);
    color: var(--light);
  }
  
  [data-bs-theme="dark"] .modal-header {
    border-bottom-color: var(--bs-gray-700);
  }
  
  [data-bs-theme="dark"] .modal-footer {
    border-top-color: var(--bs-gray-700);
  }
  
  [data-bs-theme="dark"] .modal-title {
    color: var(--light);
  }
  
  [data-bs-theme="dark"] .form-control {
    background-color: var(--bs-gray-800);
    border-color: var(--bs-gray-700);
    color: var(--light);
  }
  
  [data-bs-theme="dark"] .form-control:focus {
    background-color: var(--bs-gray-800);
    border-color: var(--primary);
    color: var(--light);
  }
  
  [data-bs-theme="dark"] .form-floating > label {
    color: var(--bs-gray-400);
  }
  
  [data-bs-theme="dark"] .form-floating > .form-control:focus ~ label,
  [data-bs-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
  }
  
  /* Floating Action Buttons */
  .floating-actions {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
  }
  
  .floating-actions .btn {
    width: auto;
    min-width: 8rem;
    height: auto;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
  }
  
  .floating-actions .btn i {
    font-size: 0.9rem;
  }
  
  .floating-actions .btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  
  /* Form improvements */
  #bookmarkForm {
    background: var(--bs-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
  }
  
  #bookmarkForm .form-floating {
    margin-bottom: 1.25rem;
  }
  
  #bookmarkForm .form-control {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 3.5rem;
    font-size: 1.1rem;
  }
  
  #bookmarkForm .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  }
  
  #bookmarkForm .form-floating label {
    font-size: 1.1rem;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
    
    .header {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
      padding: 1rem;
    }
    
    .header h1 {
      font-size: 1.5rem;
    }
    
    .floating-actions {
      bottom: 1rem;
      left: 1rem;
    }
    
    .floating-actions .btn {
      min-width: 8rem;
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
    }
    
    #bookmarkForm {
      padding: 1.25rem;
    }
    
    .search-container .form-control,
    #bookmarkForm .form-control {
      height: 3rem;
      font-size: 1rem;
    }
    
    .bookmark-item {
      padding: 0.75rem 1rem;
    }
    
    .bookmark-item .btn-action {
      padding: 0.2rem 0.4rem;
      font-size: 0.8rem;
    }
  } 