/**
 * @author Christian Scherm
 * @copyright Copyright (c) 2019, ownCloud GmbH
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */
#app {
  background-color: #F6F6F6;
}

#app-navigation {
  background-color: #F6F6F6;
}

/* header color */
/* this is the main brand color */
#body-user #header,
#body-settings #header,
#body-public #header {
  height: 50px;
  border-bottom: 4px solid #CCCCCC;
  background: rgb(255, 204, 0);
}

/* log in screen background color */
#body-login {
  background-image: url(../img/background-3.png), url(../img/background-2.png), url(../img/background.jpg);
  background-position: bottom right, top right, bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
  background-color: rgb(74, 136, 193) ! important;
}

#body-login #header {
  padding-top: 15px;
}

#body-login footer, #body-login .push {
  height: 5px;
}

#alternative-logins .button {
  padding: 7px;
  padding-left: 50px;
  padding-right: 50px;
  background-color: #0070C0;
  font-weight: 600;
  font-size: initial;
  color: #ffffff;
}

/* primary action button, use sparingly */
/* header color as border, brighter shade again, here as background */
.primary, input[type="submit"].primary, input[type="button"].primary, button.primary, .button.primary, .primary:active, input[type="submit"].primary:active, input[type="button"].primary:active, button.primary:active, .button.primary:active {
  border-color: #cccccc;
  background-color: #ffcb00;
  color: #3e3e3e;
}

.primary:hover,
input[type="submit"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover,
.primary:focus,
input[type="submit"].primary:focus,
input[type="button"].primary:focus,
button.primary:focus,
.button.primary:focus {
  background-color: #cccccc;
}

#body-login .button {
  font-size: 15px;
  min-width: 60px;
  padding: 7px 60px;
  background-color: rgb(25 108 181);
  color: #fff;
  border: 1px solid rgba(221, 221, 221, .9);
}

#body-login input[type="text"], #body-login input[type="password"] {
  background: #f0f1f2;
  border: none;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  outline: none;
  font-size: 120%;
}

#body-login .update, #body-login .error {
  color: #000;
}

#body-login .warning {
  color: #984447 !important;
  margin: 5px 0px 0px 0px;
}

#body-login .warning, #body-login .update, #body-login .error {
  background-color: #fff !important;
}

#body-login .update a {
  color: #000;
  border-bottom: 1px solid #aaa;
}

/* >= ownCloud 10.8 - login button */

#alternative-logins li a.button, html #body-login input[type="submit"], html #body-login button[type="submit"] {
  background-color: #005A9F;
  color: #FFF;
  font-size: 1.3em;
}

#alternative-logins li a.button:hover, html #body-login input[type="submit"]:hover, html #body-login button[type="submit"]:hover {
  color: #FFF;
  background-color: #3A5368;
  font-size: 1.3em;
}

#submit {
  width: 275px;
  height: 35px;
  margin-top: 10px;
  margin-bottom: 10px;
}

html #body-login button[type="submit"] {
  width: 275px;
  height: 35px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* use images from theme */
#header .logo {
  background-image: url(../img/logo.png);
  background-size: 100%;
  height: 100px;
  width: 300px;
}

#header .logo-icon {
  background-image: url(../img/logo-icon.png);
  background-size: 100%;
  height: 50px;
  width: 100px;
  margin: -9px;
}

#header #owncloud {
  opacity: 1;
  padding-top: 0px;
}

/* design */
#expand {
  color: #333333;
}

#expand:after {
  border-color: #e6e6e6 transparent transparent transparent;
}

#body-login p.info a, #body-login #showAdvanced {
  color: #fff;
}

#body-login a {
  color: #005A9F;
}

#body-login p.info, #body-login #datadirContent label, #body-login form fieldset .warning-info, #body-login form input[type="checkbox"]+label {
  text-align: center;
  color: #333333;
  font-weight: 600;
  padding-top: 15px;
  padding-bottom: 15px;
}

#body-login form fieldset legend {
  padding-top: 0px;
  padding-bottom: 10px;
}

/* Add images in front of credential fields */
#body-login input[type="text"] {
  background: url(../img/actions/user.svg) no-repeat scroll -10px 1px !important;
  padding-left: 30px;
}

#body-login input[type="password"] {
  background: url(../img/actions/lock.svg) no-repeat scroll -9px 0px !important;
  padding-left: 30px;
}

#body-login a.warning {
  background: url(../img/actions/warning.svg) no-repeat scroll -8px 0px !important;
  padding-left: 25px;
}

#submit span {
  background: url(../img/actions/arrow.svg) no-repeat scroll 100% 0px !important;
  padding-right: 10%;
}

/* Right menue */
#expanddiv {
  background-color: #333333;
  box-shadow: 0 1px 3px rgba(50, 50, 50, .7);
  border-radius: 4px;
  top: 45px;
}

#expanddiv a {
  display: block;
  height: 40px;
  color: #fff;
  padding: 4px 12px 0;
  border-radius: 5px;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
  opacity: .90;
  box-sizing: border-box;
}

#expanddiv a:hover {
  background: #5C6266;
  border-radius: 4px;
}

/* Left menue */
#navigation {
  background: #333333;
  box-shadow: 0 1px 3px rgba(50, 50, 50, .7);
  border-radius: 4px;
  top: 45px;
  left: 14px;
  width: auto;
  max-width: 258px;
  max-height: 85%;
  margin-top: 0;
  padding: 5px 5px;
}

#navigation a {
  padding: 12px 0px;
}

#navigation a:hover {
  background: #5C6266;
  border-radius: 4px;
}

/* Menu */
#expand * {
  color: #666666;
}

#expand:after {
  border-color: #333333 transparent transparent transparent;
}

#expand:hover:after {
  border-color: #bbb transparent transparent transparent;
}

.header-appname {
  color: #111;
  border-color: #FFCC00 transparent transparent transparent;
}

#header .burger {
  font-family: 'Trebuchet Regular', Arial, sans-serif;
  font-size: 1.125em;
  background: #333333;
  color: #fff;
  padding: 10px 40px 10px 20px;
  display: inline-block;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  border-radius: 4px;
  padding: 0;
  width: 32px;
  height: 28px;
  border: none;
  position: relative;
  vertical-align: top;
}

#header .burger:before {
  content: '';
  display: inline-block;
  height: 13px;
  line-height: 13px;
  width: 12px;
  background: transparent url(../img/img-icons-sprite-svg.svg) no-repeat -23px -101px;
  position: absolute;
  top: 8px;
  left: 10px;
}

.notifications-button.hasNotifications>img {
  display: none;
}

.notifications-button.hasNotifications:before {
  content: url('../img/notifications-new.svg')
}

/* Fixes for more space in header */
#content-wrapper {
  padding-top: 50px;
}

#header .header-appname-container {
  height: 50px;
}

#header #expand {
  top: 2px;
}

#controls {
  top: 50px;
}

#app-sidebar {
  top: 50px;
  z-index: 99;
}

/* important vaule for multiselct files view! */
table.multiselect thead {
  top: 94px;
}

/* highlighting */
#filestable tbody tr.searchresult {
  background-color: #e8e8e8;
}

/* Enhancements */
@media only screen and (max-width: 768px) {
  #app-navigation-toggle {
    top: 49px;
  }

  #body-login {
    background-image: url(../img/background.jpg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgb(74, 136, 193) ! important;
  }

  #body-login p.info {
    display: none;
  }
}

/* Show errors inside the wrapper */
.error-wide {
  width: auto;
  margin-left: 0px !important;
}

#body-login .update {
  width: auto;
  text-align: center;
  color: #000;
}

/* Notifications */
.notifications-button {
  top: 3px;
}

.notification-container {
  top: 50px;
  box-shadow: 0 1px 10px rgba(50, 50, 50, .1);
}

#notification {
  background-color: #ccc;
}

/* Searchbox */
.searchbox input[type="search"] {
  top: 4px;
  height: 20px;
  padding: 4px;
  padding-left: 25px;
  margin-top: 7px;
  background-color: #333333;
}

.searchbox input[type="search"]:focus,
.searchbox input[type="search"]:active,
.searchbox input[type="search"]:valid {
  background-color: #333333;
  color: #FFF;
  -webkit-box-shadow: 0 20px 25px -20px rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 25px -20px rgba(0, 0, 0, 0.2);
}

#body-login input[type="text"], #body-login input[type="password"] {
  background: #fff;
  min-width: 271px;
}

#body-login input {
  margin: 0px;
}

#body-login .v-align {
  width: 450px;
  margin-top: -60px;
  background: #fff;
  font-family: Open Sans, Arial, Helvetica, sans-serif;
  color: #333;
  border-radius: 55px;
}

#body-login form {
  margin: 5px auto;
}

#body-login .wrapper {
  /* Force constant vertical height for login box over all devices */
  height: 100vh;
  width: 450px;
  /* fix IE11 */
  display: -webkit-box !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-pack: center !important;
  -webkit-box-align: center !important;
  display: -webkit-flex !important;
  -webkit-flex-direction: row !important;
  -webkit-align-self: center !important;
  -webkit-align-items: center !important;
  display: -moz-box !important;
  -moz-box-orient: horizontal !important;
  -moz-box-pack: center !important;
  -moz-box-align: center !important;
  display: -ms-flexbox !important;
  -ms-flex-direction: row !important;
  -ms-flex-pack: center !important;
  -ms-flex-align: center !important;
  display: flex !important;
  flex-direction: row !important;
  align-self: center !important;
  align-items: center !important;
}

/* Footer menue for contact, impressum, ... */
.off-screen {
  position: absolute;
  left: -999px;
  top: -999px;
}

.reset-list,
.reset-list li,
.reset-list ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#footerbavaria {
  z-index: 10;
}

#services {
  font-size: 100%;
  font-weight: normal;
  position: absolute;
  left: 0;
  top: 2px;
  right: 0;
  z-index: -1;
  padding: 1px 5px 1px 0px;
  text-align: right;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.05em;
}

#services p {
  color: #FFF;
  margin: 0;
  padding: 0px 10px 10px 15px;
  border: 0;
  font-weight: normal;
  display: inline;
  position: absolute;
  right: 10px;
}

#services li {
  display: inline;
  padding: 3px 0;
}

#services li.first {
  display: inline;
  padding: 3px 0;
  border-left: none;
}

#services a,
#services a:visited {
  color: #FFF;
  text-decoration: none;
  margin: 0;
  padding: 12px 14px 5px 17px;
  border: 0;
  font-weight: normal;
  display: inline-block;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.0em;
}

#services a:active,
#services a:focus,
#services a:hover {
  color: #fbcc00;
  text-decoration: none;
  border: 0;
  font-weight: normal;
  display: inline-block;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.0em;
}

#services a.space {
  border: 0;
  padding: 12px 0px 5px 5px;
  background-image: none;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.0em;
}

/* Footer */
footer p.info {
  /* Don't diplay original info footer on login */
  display: none;
}

#login-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: 47px;
  background-color: rgb(0, 0, 0);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  filter: alpha(opacity=90);
  -moz-opacity: 0.9;
  -khtml-opacity: 0.9;
  opacity: 0.9;
}

#login-footer p.info {
  width: 22em;
  margin: 0 auto;
  padding-top: 5px;
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1.1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#login-footer ul li {
  border-left: 2px solid #2b4343;
}

#login-footer .first ul li {
  border-left: none;
}

/* 47px minus to button of wrapper to prevent hiding content */
#app-content {
  height: -moz-calc(100% - 47px);
  /* Firefox */
  height: -webkit-calc(100% - 47px);
  /* WebKit */
  height: -o-calc(100% - 47px);
  /* Opera */
  height: calc(100% - 47px);
  /* Standard */
}

/* Footer login end */
/* Fixes for footer */
#app-settings {
  bottom: 55px;
}

.nav-trashbin {
  bottom: 95px;
}

/* Fix: Marketplace notifications are hidden by footer */
.uk-notification-bottom-center, .uk-notification-bottom-left, .uk-notification-bottom-right {
  top: auto;
  bottom: 40px;
}

.uk-grid>*>:last-child {
  margin-bottom: 40px;
}

/* Fixes for footer end */
/* OTHER */
/* Fix for uploadprogressbarwrapper - can be deleted with 10.5 */
#uploadprogresswrapper>input[type='button'] {
  margin: 0 0 0 3px;
}

/* Hide entries in the users menu */
.with-icon>li>a[href*="personal?sectionid=storage"] {
  display: none !important
}

.with-icon>li>a[href*="personal?sectionid=encryption"] {
  display: none !important
}

.with-icon>li>a[href*="personal?sectionid=additional"] {
  display: none !important
}

.with-icon>li>a[href*="personal?sectionid=sharing"] {
  display: none !important
}

.with-icon>li>a[href*="personal?sectionid=security"] {
  display: none !important
}

/* Hide the install clients section */
#OC\\Settings\\Panels\\Personal\\Clients {
  display: none !important;
}

@media only screen and (max-width: 768px) {
  #body-login .wrapper {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    display: -webkit-flex;
    -webkit-flex-direction: row;
    -webkit-align-self: center;
    -webkit-align-items: center;
    display: -moz-box;
    -moz-box-orient: horizontal;
    -moz-box-pack: center;
    -moz-box-align: center;
    display: -ms-flexbox;
    -ms-flex-direction: row;
    -ms-flex-pack: center;
    -ms-flex-align: center;
    display: flex;
    flex-direction: row;
    align-self: center;
    align-items: center;
  }
}

@media only screen and (max-width: 1020px) {
  #services p {
    /* Hide copyright information in footer on smaller resolutions */
    display: none;
  }
}

@media only screen and (max-height: 768px) {
  #body-login p.info {
    display: none;
  }
}
}
