
/* web/static/css/global.css */

body {
    font-family: sans-serif; /* Basic default font */
    line-height: 1.6;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

header, main, footer {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #555;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav a, nav span {
    margin-right: 10px;
}

button, input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Basic form styling */
.form-stack .form-group {
    margin-bottom: 15px;
}

.form-stack label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-stack input[type="text"],
.form-stack input[type="email"],
.form-stack input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width/height */
}

/* Basic error message styling */
.error-message p {
    color: #dc3545; /* Red color for errors */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 0; /* Remove default top margin if needed */
}

/* HTMX indicator example (optional, can be styled better) */
.htmx-indicator {
    display: none; /* Hidden by default */
    color: #007bff;
    font-style: italic;
}

/* Style for when HTMX is making a request (applied to element triggering request) */
.htmx-request .htmx-indicator {
    display: inline; /* Show indicator during request */
}
.htmx-request.htmx-indicator {
     display: inline; /* Show indicator during request if indicator IS the element */
}

/* Tag Badge Styles */
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f3f4f6; /* Light gray (default user tag) */
    color: #1f2937;
    border: 1px solid #e5e7eb;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* System Tag specific styling (User ID 0) */
.tag-badge.system-tag {
    background-color: #e0e7ff; /* Light Indigo */
    color: #3730a3;            /* Dark Indigo text */
    border-color: #c7d2fe;
}

/* The small 'x' delete button */
.tag-badge .delete-tag {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.tag-badge .delete-tag:hover {
    opacity: 1;
    color: #ef4444; /* Red on hover */
}
