/*
 * Development Django Admin - Simple Purple Theme
 * Copy this file to your dev server's static/admin/css/ folder
 */

/* Purple gradient header */
#header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: 3px solid #553c9a !important;
}

#branding h1, #branding h1 a:link, #branding h1 a:visited {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* DEV badge */
#branding h1::after {
    content: " [DEV]";
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 12px;
    font-weight: bold;
    text-shadow: none;
    vertical-align: middle;
}

/* User tools */
#user-tools {
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
}

#user-tools a {
    color: #ffffff !important;
    font-weight: 500 !important;
}

#user-tools a:hover {
    color: #ffd93d !important;
}

/* Module headers */
.module h2, .module caption, .inline-group h2 {
    background: linear-gradient(to right, #667eea, #764ba2) !important;
    color: #ffffff !important;
}

/* Dashboard module headers and captions */
.dashboard .module caption,
.dashboard .module h2,
.dashboard .module caption a {
    color: #ffffff !important;
}

/* App list headers */
.app-list h2 {
    background: linear-gradient(to right, #667eea, #764ba2) !important;
    color: #ffffff !important;
}

/* Module table captions */
table caption,
.module table caption {
    color: #ffffff !important;
}

/* Breadcrumbs */
div.breadcrumbs {
    background: #553c9a !important;
    color: #e0d4f7 !important;
}

div.breadcrumbs a {
    color: #ffd93d !important;
}

div.breadcrumbs a:hover {
    color: #ffffff !important;
}

/* Buttons */
.button, input[type="submit"], input[type="button"], .submit-row input, a.button {
    background: #667eea !important;
    border-color: #553c9a !important;
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.submit-row input:hover, a.button:hover {
    background: #764ba2 !important;
}

.button.default, input[type="submit"].default, .submit-row input.default {
    background: #ff6b6b !important;
    border-color: #ee5a52 !important;
}

.button.default:hover, input[type="submit"].default:hover, .submit-row input.default:hover {
    background: #ee5a52 !important;
}

/* Links */
a:link, a:visited {
    color: #667eea !important;
}

a:hover {
    color: #764ba2 !important;
}

/* Selected items */
.selected {
    background-color: #e8e3f7 !important;
}

/* Filter sidebar */
#changelist-filter h2 {
    background: #667eea !important;
    color: #ffffff !important;
}

#changelist-filter h3 {
    color: #553c9a !important;
}

#changelist-filter li.selected a {
    color: #667eea !important;
    font-weight: bold !important;
}

/* Calendar widget */
.calendarbox h2 {
    background: #667eea !important;
}

.calendar td a:hover, .timelist a:hover {
    background: #764ba2 !important;
}

.calendar td.selected a {
    background: #667eea !important;
}

/* Messages */
.messagelist .success {
    background-color: #d4edda !important;
    border-color: #8dd99d !important;
}

.messagelist .warning {
    background-color: #fff3cd !important;
    border-color: #ffd93d !important;
}

.messagelist .error {
    background-color: #f8d7da !important;
    border-color: #ff6b6b !important;
}

/* Object tools */
.object-tools a:link, .object-tools a:visited {
    background: #667eea !important;
    border-color: #553c9a !important;
}

.object-tools a:hover {
    background: #764ba2 !important;
}

/* Pagination */
.paginator a:link, .paginator a:visited {
    background: #667eea !important;
    color: white !important;
}

.paginator a:hover {
    background: #764ba2 !important;
}

/* Warning banner at top */
body::before {
    content: "🚧 DEVELOPMENT ENVIRONMENT 🚧";
    display: block;
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Selector widgets */
.selector-chosen h2 {
    background: #667eea !important;
    color: white !important;
}

.selector-available h2 {
    background: #9f7aea !important;
    color: white !important;
}

/* Action counter */
.action-counter {
    background: #667eea !important;
    color: white !important;
}

/* Recent actions */
#recent-actions-module h2 {
    background: linear-gradient(to right, #667eea, #764ba2) !important;
    color: #ffffff !important;
}

/* All module titles on homepage */
#content-main .module h2,
#content-main .module caption,
#content-main caption {
    color: #ffffff !important;
}

/* App labels and module titles */
.app-label,
.module-title,
th.module caption,
caption {
    color: #ffffff !important;
}

/* Inline forms */
.inline-related h3 {
    background: #e8e3f7 !important;
    color: #553c9a !important;
}

/* Links inside module headers should be white */
.module h2 a,
.module caption a,
caption a,
.app-list h2 a {
    color: #ffffff !important;
    text-decoration: none;
}

.module h2 a:hover,
.module caption a:hover,
caption a:hover,
.app-list h2 a:hover {
    color: #ffd93d !important;
    text-decoration: underline;
}

