/*
 * Jebra Wallpaper Pro panel: colours and small additions on top of AdminBSB (MIT).
 * Change the green here (--main-color) to recolour the whole panel.
 */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Material Icons'; font-style: normal; font-weight: 400; font-display: block; src: url(../fonts/material-icons.woff2) format('woff2'); }

:root {
    --main-color: #4bae4f;
    --second-color: #4bae4f;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.poppins { font-family: 'Poppins', sans-serif; }

/* The old panel's paragraphs keep the browser's normal spacing (1em above and below). */
p { margin: 1em 0; }
.btn:not(.btn-link):not(.btn-circle) span { position: static; top: auto; margin-left: 0; }

/* Theme colour (AdminBSB "blue" theme, drawn in our green) */
.theme-blue .navbar { background-color: var(--main-color); }
.theme-blue .sidebar .menu .list li.active > :first-child i,
.theme-blue .sidebar .menu .list li.active > :first-child span { color: var(--main-color); }
.theme-blue .sidebar .legal .copyright a { color: var(--main-color) !important; }
.bg-blue { background-color: var(--main-color) !important; color: #fff; }
.col-blue { color: var(--main-color) !important; }
.alert-info { background-color: var(--main-color); }
.label-info { background-color: var(--main-color); }
.label-primary { background-color: var(--second-color); }
.form-group .form-line:after, .input-group .form-line:after { border-bottom: 2px solid var(--second-color); }
[type="checkbox"].filled-in:checked.chk-col-blue + label:after { border: 2px solid var(--main-color); background-color: var(--main-color); }
[type="checkbox"]:checked.chk-col-blue + label:before { border-right: 2px solid var(--main-color); border-bottom: 2px solid var(--main-color); }
.pagination li.active a { background-color: var(--main-color); }
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus { background-color: var(--second-color) !important; }

/* Layout */
.table tbody tr td, .table tbody tr th { border-top: 0 solid #eee; border-bottom: 0 solid #eee; }
.demo-checkbox label, .demo-radio-button label { min-width: 80px; }
.breadcrumb { margin-top: -12px; }
.pager li a:hover { background-color: transparent; }

.sidebar { font-family: 'Poppins', sans-serif; }
.sidebar .user-info { padding: 10px 15px 0 0; height: 80px; background: none; }
.sidebar .user-info .info-container { top: 10px; }
.sidebar .user-info .info-container .name { color: #333; }
.sidebar .user-info .info-container .email { font-size: 14px; color: #333; }
.sidebar .user-info .info-container .user-helper-dropdown { right: 0; bottom: 0; color: #333; }
.sidebar .menu .list a span { color: #555; font-weight: 600; }

/* Login */
.login-page { background-color: var(--main-color); max-width: 320px; margin: 8% auto; }

/* Small helpers (same names the old panel used) */
.custom-padding1 { padding: 30px 10px 20px 10px; }
.custom-padding2 { padding: 0 0 10px 0; }
.table-offset { margin-top: -30px; }
.btn-offset { margin-top: -10px; margin-right: 18px; }
.bottom-offset { margin-bottom: 0; }
.corner-radius { border-radius: 14px; }
.img-rounded { border-radius: 6px; }
.img-grayscale { filter: grayscale(1); -webkit-filter: grayscale(1); }
.button {
    background-color: var(--main-color);
    border: none;
    color: #fff;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
}
.button:hover, .button:focus { color: #fff; text-decoration: none; }
.button-rounded { border-radius: 50px; }
.label-rounded { border-radius: 50px; padding: 3px 6px; }
div.uppercase { text-transform: uppercase; }
div.ex1 { margin-bottom: 8px; }
div.ex2 { margin-top: 8px; margin-bottom: 8px; }
.ext2 { margin-top: 6px; }
.pointer-view { cursor: pointer; }
.link-black { color: #555; }
.img-corner-radius { border-radius: 6px; }
.alert-offset { margin-top: 20px; margin-bottom: -40px; }
.padding-pagination { margin-top: 8px; padding: 10px; font-size: 14px; }

/* Our additions */
/* Wallpaper Tools: the action bar shows only when something is picked. */
.tool-bar { display: none; margin: 0 0 10px 8px; }
.tool-bar.on { display: block; }
.tool-bar .button { margin: 0 6px 10px 0; }
.tool-count { display: inline-block; margin-right: 10px; }
.tool-filters { margin-bottom: 5px; }
.tool-except { margin: 0 0 20px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.default-pass-link { color: #fff; font-weight: 600; text-decoration: underline; }
.default-pass-link:hover, .default-pass-link:focus { color: #fff; }
.tool-flash { margin-bottom: 15px !important; }
.tool-except input[type=number] { width: 80px; height: 32px; border: 0; border-bottom: 1px solid #ddd; outline: none; text-align: center; }
.tool-except input[type=number]:focus { border-bottom: 2px solid var(--main-color); }
.tool-except-note { color: #337ab7; }
.tool-undo { display: inline; margin-left: 6px; }
.tool-undo-link { background: none; border: 0; padding: 0; color: #fff; font-weight: 600; text-decoration: underline; }
.tool-keep-btn { margin-top: 14px; }
.trash-help { display: block; margin: 0 0 15px; }
.trash-pics img { margin: 0 4px 4px 0; object-fit: cover; }
.trash-empty { margin-top: 15px; }
/* Buttons above a wallpaper list: when they go under each other on a phone, keep a gap between them. */
.list-actions .button { margin-bottom: 10px; }
.dash-link, .dash-link:hover, .dash-link:focus { color: #fff; text-decoration: none; }
.panel-alert { border-radius: 14px; }
.preview-grid:empty { display: none; }
.preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-grid img { width: 60px; height: 96px; object-fit: cover; border-radius: 6px; background: #f2f2f2; }
.form-help { font-size: 12px; color: #999; margin-top: 6px; }
.button, button, input, select, textarea { font-family: inherit; }
.poppins .button { font-family: 'Poppins', sans-serif; }

/* Privacy policy editor */
.rte { border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.rte-bar { border-bottom: 1px solid #ddd; background: #f7f7f7; padding: 4px; display: flex; flex-wrap: wrap; gap: 2px; }
.rte-btn { background: none; border: 0; padding: 4px 6px; color: #555; border-radius: 3px; cursor: pointer; }
.rte-btn:hover { background: #e8e8e8; }
.rte-btn .material-icons { font-size: 20px; vertical-align: middle; }
.rte-area { height: 400px; overflow-y: auto; padding: 12px 14px; outline: none; font-size: 13px; }
.rte-source { width: 100%; min-height: 380px; border: 0; padding: 12px 14px; font-family: monospace !important; font-size: 13px; outline: none; resize: vertical; }

/* Licence */
.licence-blocked { padding: 0 0 18px 0; font-size: 14px; line-height: 1.5; }
.licence-blocked .button { margin-top: 14px; }
.button-whatsapp { background-color: #25d366; }
.login-page a.button-whatsapp, .login-page a.button-whatsapp:hover, .login-page a.button-whatsapp:focus { color: #fff; }
.licence-intro { font-size: 14px; color: #555; line-height: 1.5; padding: 0 4px 10px 4px; }
.login-page a.licence-logout { font-size: 14px; color: #555; }
.licence-hint { margin-top: 12px; font-size: 14px; color: #555; }
.licence-table td { padding: 10px 8px !important; vertical-align: middle !important; }
