/* RDF SelfService - Dark Theme */

html,
body {
    background: #000 !important;
    color: #e5e7eb !important;
    min-height: 100%;
}

body {
    padding-top: 40px;
}

/* Main content width */
.container {
    max-width: 760px;
}

/* Main panel */
.card {
    background: #111214 !important;
    color: #e5e7eb !important;
    border: 1px solid #292c30 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.55) !important;
}

.card-body {
    padding: 32px !important;
}

/* Main title */
.title,
.alert-success.title {
    background: transparent !important;
    border: 0 !important;
    color: #f5f5f5 !important;
    box-shadow: none !important;
}

.title h1 {
    color: #f5f5f5 !important;
    font-weight: 600;
}

/* General text */
h1, h2, h3, h4, h5, h6,
label,
p,
.form-text,
.card-text {
    color: #e5e7eb;
}

/* Inputs */
.form-control,
.form-select,
input,
select,
textarea {
    background-color: #181a1d !important;
    color: #f5f5f5 !important;
    border: 1px solid #3a3f45 !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    background-color: #181a1d !important;
    color: #fff !important;
    border-color: #2684ff !important;
    box-shadow: 0 0 0 .2rem rgba(38,132,255,.18) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #858b94 !important;
}

/* Primary actions */
.btn-primary,
.btn-success {
    background: #2684ff !important;
    border-color: #2684ff !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover {
    background: #1473e6 !important;
    border-color: #1473e6 !important;
}

/* Links */
a {
    color: #4b9cff;
}

a:hover {
    color: #78b5ff;
}

/* Navigation/menu */
.nav-tabs {
    border-bottom-color: #30343a !important;
}

.nav-tabs .nav-link {
    color: #b8bdc7 !important;
    border-color: transparent !important;
}

.nav-tabs .nav-link:hover {
    color: #fff !important;
}

.nav-tabs .nav-link.active {
    background: transparent !important;
    color: #2684ff !important;
    border-color: transparent transparent #2684ff !important;
}

/* Tables */
.table,
.table td,
.table th {
    color: #e5e7eb !important;
    border-color: #34383e !important;
}

/* Messages */
.alert-danger {
    background: #2a1114 !important;
    color: #ffb4ba !important;
    border-color: #652127 !important;
}

.alert-warning {
    background: #29230f !important;
    color: #ffe08a !important;
    border-color: #66551d !important;
}

.alert-info {
    background: #102334 !important;
    color: #a9d7ff !important;
    border-color: #20527a !important;
}

.alert-success {
    background: #10281b !important;
    color: #a7e8bd !important;
    border-color: #235d38 !important;
}

/* Footer */
div#footer {
    background: #000 !important;
    color: #858b94 !important;
    border: 0 !important;
}

/* Dropdowns */
.dropdown-menu {
    background: #17191c !important;
    border-color: #34383e !important;
}

.dropdown-item {
    color: #e5e7eb !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #24272b !important;
    color: #fff !important;
}

/* Horizontal rules */
hr {
    border-color: #30343a !important;
}

/* Mobile spacing */
@media (max-width: 768px) {
    body {
        padding-top: 15px;
    }

    .card-body {
        padding: 20px !important;
    }
}
/* RDF dark-mode finishing overrides */

/* Top menu */
.navbar,
.navbar-light,
.bg-light,
.menu {
    background: #111214 !important;
    color: #e5e7eb !important;
    border-color: #292c30 !important;
}

.navbar a,
.navbar-light .navbar-nav .nav-link,
.menu a {
    color: #e5e7eb !important;
}

.navbar a:hover,
.menu a:hover {
    color: #4b9cff !important;
}

/* Bootstrap input-group icons */
.input-group-text {
    background: #202328 !important;
    color: #d7dbe2 !important;
    border-color: #3a3f45 !important;
}

/* Force all form fields dark */
input.form-control,
select.form-control,
textarea.form-control {
    background: #181a1d !important;
    color: #f5f5f5 !important;
    border-color: #3a3f45 !important;
}

input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f5f5 !important;
    -webkit-box-shadow: 0 0 0 1000px #181a1d inset !important;
}

/* Form/card sections */
.alert-primary {
    background: #111b25 !important;
    color: #e5e7eb !important;
    border-color: #24445f !important;
}

/* Remove Bootstrap's bright surfaces */
.bg-white,
.list-group-item {
    background: #111214 !important;
    color: #e5e7eb !important;
    border-color: #292c30 !important;
}

/* Main menu/card spacing */
.card {
    overflow: hidden;
}

.shadow {
    box-shadow: 0 12px 40px rgba(0,0,0,.55) !important;
}

/* Buttons */
.btn {
    border-radius: 6px !important;
}

.btn-primary,
.btn-success {
    background: #2684ff !important;
    border-color: #2684ff !important;
}

/* Footer */
#footer {
    background: #000 !important;
    color: #737982 !important;
}

/* Selection */
::selection {
    background: #2684ff;
    color: #fff;
}
/* RDF logo */
.logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
    max-height: 180px !important;
    object-fit: contain;
    filter: none;
}
