/**
 * Edinote main css
 *
 * Ben Haeringer
 * ben.haeringer@gmail.com
 *
 */

/* Some rules are based on SB Admin 2 Theme (startbootstrap.com) */


body {
    background-color: #ECF0F1;
    /* ultimate navbar height */
    padding-top: 53px;
}

#wrapper {
    width: 100%;
}

.en-hide {
    display: none;
}

#page-wrapper {
    padding: 10px;
    min-height: 568px;
    background-color: #fff;
}

@media(min-width:768px) {
    #page-wrapper {
        position: inherit;
        margin: 18px 15px 15px 255px;
        min-height: 0px !important;
        border-left: 1px solid #e7e7e7;
        box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    }
}

/* ace editor container */
#editor-container {
    top:  0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    height: 10px;
}

#md-container {
    word-wrap: break-word;
    padding: 20px;
    overflow: auto;
    height: 10px;
}

.plain {
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -pre-wrap; /* ancient Opera */
    white-space: -o-pre-wrap; /* newer Opera */
    white-space: pre-wrap; /* Chrome; W3C standard */
    word-wrap: break-word; /* IE */
    font-family: "Lucida Console", "Ubuntu Mono", "Lucida Sans Typewriter", monospace;
    font-size: 14px;
}

/* override flatUI/bootstrap with values for markdown*/
p {
    font-size: 16px;
    line-height: 1.6;
}

/* Top navigation - hide default border to remove 1px line */
.navbar-fixed-top {
    border: 0;
}

.navbar-top-links {
    margin-right: 0;
}

.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-right: 15px;
}

.navbar-top-links li a {
    padding-top: 15px;
    min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
    display: block;
}

.navbar-top-links .dropdown-menu li:last-child {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

.sidebar .sidebar-nav.navbar-collapse {
    padding-right: 0;
    padding-left: 0;
    position: relative;
}

.sidebar .sidebar-search {
    padding: 5px 8px 5px 0px;
}

.sidebar ul li a.active {
    background-color: #eee;
}

@media(min-width:768px) {
    .sidebar {
        z-index: 1;
        position: absolute;
        width: 250px;
        margin-top: 71px;
    }

    .navbar-top-links .dropdown-messages,
    .navbar-top-links .dropdown-tasks,
    .navbar-top-links .dropdown-alerts {
        margin-left: auto;
    }
}

@media screen and (min-width: 768px) {
  .modal:before {
    display: inline-block;
    vertical-align: middle;
    height: 100%;
  }
}

.dropdown-menu {
    min-width: 150px;
    padding: 10px 0px;
    margin: 8px -8px;
    background-color: #ECF0F1;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176);
}


/*.brand {
    display: none;
}*/

#loading-spinner {
    display: none;
    position: absolute;
    /*top: 80px;*/
    /*right: 25px;*/
    top: 5px;
    right: 80px;
}

/*
 @media(min-width:768px) {
     .brand {
        position: absolute;
        right: 80px;
        bottom: 5px;
        display: block;
     }
     #loading-spinner {
        right: 290px;
    }
}*/

* {
  -webkit-border-radius: 0 !important;
     -moz-border-radius: 0 !important;
          border-radius: 0 !important;
}

#file-list {
    /* hide native scrollbar */
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
}

.list-shadow {
    background-color: #ECF0F1;
    z-index: 2;
    position: absolute;
    height: 10px;
    margin-left: 10px;
}

.list-shadow-top {
    box-shadow: 0px 5px 5px 0px rgba(236,240,241,1);
}

.list-shadow-bottom {
    box-shadow: 0px -5px 5px 0px rgba(236,240,241,1);
}

#side-menu {
    padding-left: 15px;
}

.navbar {
    box-shadow: 0px 2px 5px 0px rgba(160,160,160,1);
}

/* max-height of file list on mobile, 340px is default in bootstrap */
.navbar-fixed-top .navbar-collapse {
    max-height: none;
    background-color: #ECF0F1;
}

.navbar .navbar-toggle {
    float: left;
    /* override navbar-toggle margin from flat-ui */
    margin: 0px 0px 0px 0px;
}

.navbar-btn.disabled {
    background-color: #AEBCC1;
}

.confirm-btn:hover,
.btn.active:hover {
    background-color: #62B1E6;
}

.confirm-btn:focus,
.btn.active {
    background-color: #3498DB;
}

.btn-toolbar {
    padding-left: 15px;
}

.btn-toolbar-right {
    padding-right: 15px;
}

.btn-bottom {
    background-color: #ECF0F1;
    color: #95A5A6;
    margin-bottom: 15px;
}

.btn-bottom:hover {
    color: #AAB7B8;
}

.bottom-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.bottom-disabled:hover {
    color: #ccc;
}

.sidebar ul {
    padding-right: 10px;
}

.sidebar .list {
    padding: 0px 19px 0px 11px;
}

.sidebar .list-group-item {
    margin: 8px 0px 8px 5px;
    padding: 0px;
    border-style: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.2s ease-in-out;
    overflow: auto;
    z-index: 1;
    position: relative;
    max-height: 48px;
    overflow: hidden !important;
}

.sidebar .list-group-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.19), 0 2px 3px rgba(0,0,0,0.23);
    z-index: 1;
    cursor: default;
}

.sidebar .list-group-item.active {
    background-color: #3498DB;
}

a.list-group-item, li.list-group-item {
    color: #555;
}

.lgi-name {
    padding: 0px 13px 0px 13px;
    line-height: 3;
    width: auto;
    display: inline-block;
    word-break: break-all;
}

.tags {
    float: right;
    line-height: 14px;
    position: absolute;
    top: 34px;
    right: 0px;
}

.tag {
    font-size: 0.7em;
    color: #444;
    background-color: #eee;
    opacity: 0.5;
    float: right;
    margin-right: 3px;
    padding: 0px 1px 0px 1px;
}

.tag:hover {
    background-color: #95A5A6;
    color: #fff;
    cursor: default;
}

.tag.active {
    background-color: red;
    color: #fff;
}


/* set color for placeholder text in input forms */
.form-control::-webkit-input-placeholder { color: #95A5A6; }
.form-control:-moz-placeholder { color: #95A5A6; }
.form-control::-moz-placeholder { color: #95A5A6; }
.form-control:-ms-input-placeholder { color: #95A5A6; }

/* override form focus color from flat ui */
.form-group.focus .form-control, .form-control:focus, .form-group.focus .select2-search input[type=text], .select2-search input[type=text]:focus {
    border-color: #3498DB;
}

/* override bootstrap's :after {clear: both} to keep nav one-rowed on mobile */
.btn-group:after,
.btn-toolbar:after,
.navbar-header:after,
.navbar:after {
    content: none;
}

#submit-login:hover {
    background-color: #62B1E6;
    transition: none !important;
}

#submit-login.disabled {
    background-color: #8BC4E9;
}

.en-radio.active,
.en-radio.active:hover,
.en-radio.active.focus,
.en-radio.focus {
    background-color: #8BC4E9;
}

.en-radio:hover {
    background-color: #62B1E6;
}

#useradd,
#userdel {
    margin-top: 5px;
}

.checkbox {
    height: 0px;
}

.en-label {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
    padding-left: 0px !important;
    /*float: right;*/
    /*margin-right: 20px;*/
}

.form-group {
    margin-bottom: 0px;
}

.alert {
    /*padding: 25px 0px 25px 15px;*/
    margin-top: 5px;
    /*line-height: 0px;*/
}

pre {
    border-style: none;
    border-radius: 3px !important;
}

code {
    color: #444;
    border-radius: 3px !important;
    background-color: #F7F7F7 !important;
}