/* Modern Admin Theme */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f9fafb;
    --dark: #1f2937;
    --border: #e5e7eb;
}

/* Base Styles */
#header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#branding h1 {
    font-weight: 600;
    color: white !important;
}

/* Navigation */
#user-tools {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Buttons */
.button, input[type="submit"], input[type="button"], .submit-row input, a.button {
    background: var(--primary) !important;
    border: none !important;
    border-radius: 4px;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover, .submit-row input:hover, a.button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Forms */
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"],
input[type="tel"], textarea, select, .vTextField {
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="url"]:focus, input[type="number"]:focus, input[type="tel"]:focus,
textarea:focus, select:focus, .vTextField:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* Tables */
#changelist table thead th {
    background: #f3f4f6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #4b5563;
}

#changelist table tbody tr:hover {
    background-color: #f9fafb;
}

/* Cards */
.module {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.module h2, .module caption, .inline-group h2 {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard #content {
        padding: 15px;
    }
    
    .module {
        margin-bottom: 15px;
    }
}

/* Custom Utilities */
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
