
* {
    box-sizing: border-box;
  }
  
  body {
    font-family: helvetica, arial, sans-serif;
    margin: 25px;
    height: calc(100vh - 50px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
  }

  .main-content {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
  }

  .left-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 60%;
    min-width: 0;
  }

  .pet-manager {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
  }

  .pet-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pet-tab-button {
    border: 1px solid #1e2835;
    background: #f2f5f8;
    color: #1e2835;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
  }

  .pet-tab-button.active {
    background: #1e2835;
    color: #fafafa;
  }

  .add-pet-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #1e2835;
    background: #fff;
    color: #1e2835;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }
  
  header {
    border-bottom: 1px solid black;
  }
  
  h1 {
    font-weight: bold;
    color: #000;
  }
  
  .bold {
    font-weight: bold;
  }
  
  p {
    max-width: 600px;
  }
  
  
  li {
    margin-bottom: 5px;
  }
  
  footer {
    padding-top: 25px;
    border-top: 1px solid black;
  }
  
  footer a {
    float:left;
    margin:5px;
  }
  
  .pet-image {
    height:250px;
  }

  .pet-image.spin {
    animation: spin 0.5s linear;
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .dashboard div {
    display:block;
  }
  
  .pet-image-container {
    padding: 10px;
  }

  .dashboard {
    padding: 20px;
  }
  
  .button-container {
    margin-top:20px;
  }

  .reset {
    width: 100px;
      margin-right: 10px;
      text-align: center;
      display: inline-block;
      float: left;
    font-size:15px;
    background-color: red;
    
    border-color: #404853;
    cursor:pointer;
    background-image: linear-gradient(to bottom,rgba(246,246,246,.1)0%,rgba(30,40,53,0)66%);
    color: black;
    font-style: bold;

  }
  
  .button-container button {
    width: 100px;
      margin-right: 10px;
      text-align: center;
      display: inline-block;
      float: left;
    font-size:15px;
    background-color: #1e2835;
    border-color: #404853;
    cursor:pointer;
    background-image: linear-gradient(to bottom,rgba(246,246,246,.1)0%,rgba(30,40,53,0)66%);
    color: #fafafa;
  }

  .activity-log {
    border: 2px solid #1e2835;
    border-radius: 8px;
    flex: 0 0 40%;
    min-width: 0;
    padding: 15px;
    text-align: center;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    background: #f9fafb;
  } 

  .activity-log h2 {
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #1e2835;
    font-size: 18px;
    color: #1e2835;
    /* fixed to top */
    position: sticky;
    top: 0;
    background: #f9fafb;
    /* background not transparent */
    background-clip: padding-box;
    
  }

  .activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .activity-list li {
    list-style-type: none;
    text-align: left;
    padding: 12px;
    margin: 0 0 10px 0;
    font-size: 13px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    transition: all 0.2s ease;
  }

  .activity-list li:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #1e2835;
  }

  .activity-list li:last-child {
    margin-bottom: 0;
  }

  timestamp {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  happiness {
    color: #10b981;
    font-weight: 600;
  }

  weight {
    color: #ef4444;
    font-weight: 600;
  }

  happiness-decreased {
    color: #ef4444;
    font-weight: 600;
  }

  weight-decreased {
    color: #10b981;
    font-weight: 600;
  }

  error {
    color: #dc2626;
    font-weight: 600;
  }

  changedName {
    color: #3b82f6;
    font-weight: 600;
  }

  header {
    display: flex;
    align-items: center;
    padding: auto;
  }

  .edit-name-button {
    margin-left: 10px;
    font-size: 15px;
    background-color: #1e2835;
    border-color: #404853;
    cursor: pointer;
    background-image: linear-gradient(to bottom, rgba(246, 246, 246, .1) 0%, rgba(30, 40, 53, 0) 66%);
    color: #fafafa;
    width: 80px;
    height: 30px;
  }

  header button {
    margin-left: auto;
    font-size: 15px;
    background-color: #1e2835;
    border-color: #404853;
    cursor: pointer;
    background-image: linear-gradient(to bottom, rgba(246, 246, 246, .1) 0%, rgba(30, 40, 53, 0) 66%);
    color: #fafafa;
    width: 100px;
    height: 30px;
  }

  .edit-name-input {
    margin-left: 10px;
    font-size: 15px;
    padding: 5px;
    width: 150px;
  }

  .cancel-edit-name-button {
    margin-left: 10px;
    font-size: 15px;
    background-color: #1e2835;
    border-color: #404853;
    cursor: pointer;
    background-image: linear-gradient(to bottom, rgba(246, 246, 246, .1) 0%, rgba(30, 40, 53, 0) 66%);
    color: #fafafa;
    width: 80px;
    height: 30px;
  }

  /* ========== CONSOLE VIEWER STYLES ========== */
  .console-viewer {
    border: 2px solid #1e2835;
    border-radius: 8px;
    padding: 15px;
    background: #f9fafb;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
  }

  .console-viewer h2 {
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #1e2835;
    font-size: 18px;
    color: #1e2835;
  }

  .logging-buttons, .error-buttons, .filter-controls {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
  }

  .logging-buttons h3, .error-buttons h3, .filter-controls h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1e2835;
    font-weight: 600;
  }

  .logging-buttons button, .error-buttons button {
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 13px;
    background-color: #3b82f6;
    border: 1px solid #1e40af;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .logging-buttons button:hover {
    background-color: #2563eb;
  }

  .error-buttons button {
    background-color: #ef4444;
    border-color: #b91c1c;
  }

  .error-buttons button:hover {
    background-color: #dc2626;
  }

  .filter-controls label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #374151;
  }

  .filter-controls input, .filter-controls select {
    padding: 5px 8px;
    margin-left: 5px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
  }

  .console-messages {
    background: #1e2835;
    color: #fafafa;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 250px;
    overflow-y: auto;
    line-height: 1.6;
  }

  .console-entry {
    padding: 8px;
    margin-bottom: 6px;
    border-left: 3px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
  }

  .console-entry.level-info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
  }

  .console-entry.level-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
  }

  .console-entry.level-error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
  }

  .console-entry.level-custom {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
  }

  .console-entry.level-table {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
  }

  .console-entry.level-group {
    border-left-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
  }

  .console-entry .timestamp {
    color: #9ca3af;
    font-size: 11px;
    margin-right: 8px;
  }

  .console-entry .level {
    color: #fbbf24;
    font-weight: 600;
    margin-right: 8px;
  }

  .console-entry .message {
    color: #fafafa;
  }

  .no-messages {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
  }
  /* ========== END CONSOLE VIEWER STYLES ========== */

