/* Techish/Cyberpunk Theme for Django Admin */
:root {
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.5);
    --secondary: #6366f1;
    --accent: #f43f5e;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #1e5be1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-darker) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#header {
    background: var(--bg-dark) !important;
    border-bottom: 1px solid var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
}

#header a:link, #header a:visited {
    color: var(--primary) !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#branding h1 {
    color: var(--primary) !important;
    font-family: 'Courier New', Courier, monospace;
}

.module {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.module h2, .module caption {
    background: rgba(14, 165, 233, 0.1) !important;
    color: var(--primary) !important;
    border-bottom: 1px solid var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem !important;
}

div.breadcrumbs {
    background: var(--bg-darker) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

div.breadcrumbs a {
    color: var(--primary) !important;
}

#content-main {
    padding: 20px;
}

/* TECHISH BUTTONS */
.button, input[type=submit], input[type=button], .submit-row input, a.addlink, a.changelink {
    background: transparent !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Courier New', Courier, monospace !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.2) !important;
}

.button:hover, input[type=submit]:hover, input[type=button]:hover, .submit-row input:hover {
    background: var(--primary) !important;
    color: var(--bg-darker) !important;
    box-shadow: 0 0 20px var(--primary-glow) !important;
    transform: translateY(-1px);
}

.button.default, input[type=submit].default {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
}

.button.default:hover, input[type=submit].default:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
}

.button.danger, .deletelink {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.button.danger:hover, .deletelink:hover {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5) !important;
}

/* TABLE STYLES */
table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
}

thead th {
    background: var(--bg-darker) !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    border: none !important;
    padding: 12px !important;
}

tbody tr {
    background: rgba(255,255,255,0.02) !important;
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(14, 165, 233, 0.05) !important;
}

tbody td, tbody th {
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 12px !important;
}

tbody tr td:first-child {
    border-left: 1px solid var(--border-color) !important;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

tbody tr td:last-child {
    border-right: 1px solid var(--border-color) !important;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* FORM ELEMENTS */
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    color: var(--text-main) !important;
    padding: 8px !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 5px var(--primary-glow) !important;
}

/* SIDEBAR */
#content-related {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-muted) !important;
}

#content-related h2 {
    color: var(--primary) !important;
    border-bottom: 1px solid var(--primary) !important;
}

/* LOGIN PAGE STYLES */
.login {
    background-color: var(--bg-darker) !important;
}

.login #content {
    background: var(--bg-dark) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 30px var(--primary-glow) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-top: 50px !important;
}

.login #header {
    display: none !important;
}

.login .form-row {
    border: none !important;
    padding: 10px 0 !important;
}

.login label {
    color: var(--primary) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: monospace;
}

.login .submit-row {
    padding: 20px 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
}

.login .submit-row input {
    width: 100% !important;
    padding: 12px !important;
    font-size: 1rem !important;
}

/* CUSTOM TECH BUTTON EFFECTS */
.button::after, input[type=submit]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.button:hover::after, input[type=submit]:hover::after {
    left: 100%;
}
