        body {
            font-family: Arial, sans-serif;
            max-width: 900px;
            margin: 0 auto;
            padding: 2px;
            line-height: 1.2;
            background-color: #f8f9fa;
        }
        h3 {
            margin: 6px 0;
            color: #2c3e50;
        }

/* Enhanced quote styling */
.quote {
    padding: 1px 10px;
    margin: 0px;

    margin-bottom: 8px;
    border-left: 2px solid #3498db;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.quote:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border-left-color: #2980b9;
}

.quote-content {
    flex: 1;
    display: flex;
    align-items: baseline;
    min-width: 0;
    margin: 0px;
    padding: 0px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.quote-text {
    margin: 0px;
    font-size: 28px;
    color: #34495e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    flex-grow: 1;
    padding: 2px;
    white-space: pre-line; /* Respect newlines and wrap text */
}

.quote-author {
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.9em;
    cursor: pointer;
    color: #7f8c8d;
    margin-left: auto;
    padding: 0px 10px;
    flex-shrink: 0;
}

.quote-source {
cursor: pointer;
	    }

.edit-btn {
    background-color: #ff9eb1;
    color: #333;
    border: none;
    padding: 0px;
    font-size: 0.75em;
    cursor: pointer;
    margin-bottom: 0px;
    border-radius: 3px;
    height: fit-content;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity 0.2s;
}

.edit-btn:hover {
    opacity: 1;
}

/* Tag improvements */
.quote-tags {
    order: -1; /* Display tags before everything else */
    width: 98%;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 2px;
    margin: 0px;
    opacity: 0.6;
    margin-top: 3px;    /* Add spacing after quote text */
    align-items: center;
    justify-content: flex-end;
}

.quote-tag {
    display: inline-block;
    background-color: #ededed;
    padding: 3px;
    opacity: 0.6;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    color: black;
    transition: background-color 0.2s;
    line-height: 1.3;
}

.quote-tag:hover {
    background-color: #e6eaf8;
}

/* For long quotes */
@media (max-width: 640px) {
    .quote-content {
        flex-wrap: wrap;
    }
    
    .quote-text {
        width: 100%;
        white-space: normal;
    }
    
    .quote-author {
        margin-left: 0;
        margin-top: 2px;
    }
}

/* Status messages */
.status {
    margin: 2px 0;
    padding: 2px 6px;
    background-color: #e8f5e9;
    border-left: 3px solid #4CAF50;
    font-size: 0.9em;
}

	.controls {
            margin: 2px 0;
            display: flex;
            gap: 2px;

            align-items: center;
            flex-wrap: wrap;
        }
        button {
            padding: 5px 8px;
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 3px;
            font-size: 0.9em;
            transition: background-color 0.2s;
        }
        button:hover:not(:disabled) {
            background-color: #45a049;
        }
        button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        input, select, textarea {
            padding: 1px;
            margin-right: 3px;
            border: 1px solid #ddd;
            border-radius: 3px;
            font-size: 0.9em;
        }
        #filter-input {
            flex-grow: 1;
            min-width: 150px;
        }
        #add-quote-form {
            margin-top: 3px;
            padding: 4px;
            border: 1px solid #ddd;
            background-color: #fff;
            display: none;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        #add-quote-form textarea {
            width: 100%;
            height: 80px;
            margin: 2px 0;
            padding: 5px;
            resize: vertical;
        }
        #add-quote-form input {
            width: 100%;
            margin: 2px 0;
            padding: 5px;
        }
        .pagination {
            margin-top: 3px;
            text-align: center;
        }
        .pagination button {
            margin: 0 3px;
        }
        .status {
            margin: 3px 0;
            padding: 3px 6px;
            background-color: #e8f5e9;
            border-left: 3px solid #4CAF50;
            font-size: 0.9em;
        }
        #statistics {
            margin-top: 3px;
            padding: 3px 6px;
            background-color: #f5f5f5;
            border-radius: 3px;
            font-size: 0.8em;
            color: #555;
            display: flex;
            justify-content: space-between;
        }
        #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            display: none;
        }
        .spinner {
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
	    padding: .5px;

            width: 30px;
            height: 20px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .tags-container {
            margin: 2px 0;
        }
        .tag {
            display: inline-block;
            background-color: #ecf0f1;
            padding: 2px 5px;
            margin-right: 3px;
            margin-bottom: 3px;
            border-radius: 3px;
            font-size: 0.8em;
        }
        .tag button {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 12px;
            padding: 0 3px;
            margin-left: 3px;
        }
        .tag button:hover {
            color: #e74c3c;
        }
        #edit-tags-form {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 2px;
            border-radius: 4px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            width: 350px;
            max-width: 90%;
        }
        .backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: none;
        }
        .compact-fieldset {
            margin: 2px 0;
        }
        .section-header {
            font-size: 0.9em;
            font-weight: bold;
            background-color: #f8f9fa;
            padding: 2px 4px;
            margin: 2px 0;
            border-bottom: 1px solid #eee;
        }
.favorite-btn, #favorite-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #ccc;
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.2s;
    margin-left: 4px;
}

.favorite-btn:hover, #favorite-toggle:hover {
    color: #ffcc00;
}

.favorite-btn.active, #favorite-toggle.active {
    color: #ffcc00;
}

#favorite-toggle {
    font-size: 1.8em;
    display: block;
    margin: 2px 0;
    text-align: left;
    width: 100%;
}

.active-filters-container {
    margin: 5px 0;
    min-height: 30px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.active-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #1976d2;
}

.active-tag .remove-tag {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    font-size: 14px;
    padding: 0 0 0 5px;
    margin: 0;
}

.active-tag .remove-tag:hover {
    color: #d32f2f;
}

.tags-hidden .quote-tags,
.tags-hidden .active-tag {
    display: none !important;
}


/* Add these styles to your existing style.css file */

/* Style for address display in quotes */
.quote-author span[data-type="address"] {
    font-size: 0.9em;
    color: #666;
    margin-left: 4px;
}

/* Style for weblink in quotes */
.quote-author a {
    color: #2196F3;
    text-decoration: none;
    margin-left: 4px;
}

.quote-author a:hover {
    text-decoration: underline;
}

/* Adjust spacing for new input fields in add quote form */
#quote-address, #quote-weblink {
    width: 100%;
    margin: 3px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Tighten dropdown containers */
select, .dropdown-container {
  padding: 1px 2px;
  line-height: 1.1;
}

/* Tighten dropdown options */
select option, .dropdown-item {
  padding: 1px;
  margin: 0;
  line-height: .5;
  font-size: 0.9em;
}

/* If using custom dropdowns */
.dropdown-menu {
  padding: 1px 0;
}

.dropdown-item {
  padding: 1px;
  margin: 0;
}
