/**
 * Custom CSS for AgencyType Admin Interface
 * 
 * Enhances the Django admin interface for better usability
 * and visual appeal when managing agency types.
 */

/* Color picker enhancements */
.color-picker {
    width: 60px !important;
    height: 35px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.color-picker:hover {
    border-color: #007cba !important;
}

/* Agency type list enhancements */
.admin-object-tools {
    margin-bottom: 20px;
}

/* Enhanced color indicators in list view */
.agency-type-color-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ccc;
    margin-right: 8px;
    vertical-align: middle;
}

/* Premium type styling */
.premium-type {
    color: #ff6b35;
    font-weight: bold;
}

.standard-type {
    color: #6c757d;
}

/* Usage statistics styling */
.usage-high {
    color: #28a745;
    font-weight: bold;
}

.usage-medium {
    color: #ffc107;
    font-weight: bold;
}

.usage-low {
    color: #6c757d;
}

.usage-none {
    color: #dc3545;
}

/* Status indicators */
.status-indicators span {
    margin-right: 5px;
    font-size: 16px;
}

/* Fieldset styling improvements */
.module .form-row .help {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Enhanced readonly fields */
.readonly {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 4px;
}

/* Color preview styling */
.color-preview-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Better spacing for custom admin fields */
.agency-stats-display {
    font-size: 12px;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Action buttons styling */
.actions .button {
    margin-right: 10px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .agency-type-color-indicator {
        width: 16px;
        height: 16px;
    }
    
    .status-indicators span {
        font-size: 14px;
    }
}

/* Enhanced tooltips */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}
