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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
}


/* UL styles */
.link-list {
  font-size: 0.875rem; /* font-sm */
  display: flex;
  flex-direction: row; 
  gap: 0.5rem; /* space-y-2 */
  justify-content: center;

  color: rgb(82, 82, 82); /* text-neutral-600 */
}

/* A tag styles */
.link-item {
  display: flex;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

/* P tag styles */
.link-label {
  margin-left: 0.5rem; /* ml-2 */
  height: 1.75rem; /* h-7 */
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

h1 {
    background: #ffffff;
    color: #1a1a1a;
    padding: 40px 30px 0;
    margin: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    background: #ffffff;
    color: #666666;
    text-align: center;
    padding: 10px 30px 30px;
    margin: 0;
    font-size: 1rem;
}

.section {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
}

input[type="text"],
input[type="number"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

input[type="number"] {
    width: 120px;
    margin-right: 15px;
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Monaco', 'Consolas', monospace;
}

button {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

button:hover {
    background: #333333;
    border-color: #333333;
}

button:active {
    background: #000000;
    border-color: #000000;
}

.db-info {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
    margin-top: 15px;
}

.db-info h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.db-info p {
    margin-bottom: 8px;
    color: #666666;
}

.db-info code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.results {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
    min-height: 60px;
    max-height: 400px;
    overflow-y: auto;
}

.results h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.result-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 8px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.result-item pre {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    padding: 8px;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    color: #1a1a1a;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 12px;
    margin: 20px 30px;
    display: none;
}

.loading {
    text-align: center;
    padding: 16px;
    color: #666666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border: none;
        border-radius: 0;
    }

    h1 {
        font-size: 1.8rem;
        padding: 30px 20px 0;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 10px 20px 25px;
    }

    .section {
        padding: 16px;
    }

    input[type="number"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
        margin-right: 0;
    }
}

/* Animation for smooth transitions */
.section {
    transition: opacity 0.3s ease;
}

.section[style*="display: none"] {
    opacity: 0;
}

.section:not([style*="display: none"]) {
    opacity: 1;
}
