
html, body {
    height: 100%;
}

.logo {
    display: inline-block;
    width: 180px;
    height: 48px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/img/logo.png');
}

h1 .logo {
    /* Fix main toolbar */
    margin-bottom: -10px;
}

.logo.logo-center {
    margin: -10px auto;
}

.release {
    position: fixed;
    left: 0;
    bottom: 0;
    opacity: 0.5;
}

[panel="users"] .left {
    float: left;
    width: 300px;
    padding: 8px;
}

[panel="users"] .right {
    margin-left: 300px;
    padding: 16px;
}

[panel="blocks"] .left {
    float: left;
    width: 300px;
    padding: 8px;
}

[panel="blocks"] .right {
    margin-left: 300px;
    padding: 16px;
}

.wrap-center {
    max-width: 600px;
    margin: 16px auto;
}









/******************************************************************************/

[component="audits"] {
    position: absolute;
    top: 180px;
    left: 0;
    right: 0;
    bottom: 0;
}

[component="audits"] .filter-error {
    color: red;
}

[component="audits"] .audit-filter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    margin: 4px;

    background-color: greenyellow;
}

[component="audits"] .audit-toolbar {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: 32px;
    margin: 4px;

    text-align: center;
}

[component="audits"] .audit-toolbar a {
    display: inline-block;
    padding: 4px;
    margin: 0 2px;
    border-radius: 4px;
    color: black;
    text-decoration: none;
}

[component="audits"] .audit-toolbar a:hover {
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

[component="audits"] .audit-filter textarea {
    display: block;
    width: 100%;
    border: none;
    height: 100%;
}

[component="audits"] .audit-list {
    position: absolute;
    top: 104px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 4px;
    overflow-y: auto;
}

[component="audits"] .audit-line {
    font-family: monospace;
    white-space: pre-wrap;
}

[component="audits"] .audit-line .log {
    /*background-color: #e7f6ec;*/
}

[component="audits"] .audit-line .log[level="DEBUG"] {color: darkblue;}
[component="audits"] .audit-line .log[level="INFO"] {color: limegreen;}
[component="audits"] .audit-line .log[level="WARNING"] {color: darkorange;}
[component="audits"] .audit-line .log[level="ERROR"] {color: purple;}
[component="audits"] .audit-line .log[level="FATAL"] {color: red;}

[component="audits"] .audit-line .wrap {
    width: 100px;
    min-width: 100px;

    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
}

[component="audits"] .audit-line .wrap-150 {
    width:150px;
    min-width: 150px;
}

[component="audits"] .audit-line .wrap-200 {
    width:200px;
    min-width: 200px;
}

[component="audits"] .audit-line .wrap:hover {
    width: auto !important;
}

[component="audits"] .audit-line:hover {
    background-color: #F0FFFF;
}


[component="audits"] .audit-line .filter {
    cursor: pointer;
}

[component="audits"] .audit-line .filter:hover {
    color: dodgerblue;
    text-decoration: underline;
}


/******************************************************************************/

[component="BlockQuestions"] .question .button-delete-question,
[component="BlockImport"] .question .button-delete-question {
    visibility: hidden;
}

[component="BlockQuestions"] .question:hover .button-delete-question,
[component="BlockImport"] .question:hover .button-delete-question {
    visibility: visible;
}

/******************************************************************************/

[component="folders"] .folder-icon {
    height: 56px;
    width: 56px;
    margin-right: 16px;
    background: center center no-repeat url('img/folder-blue.svg');
    background-size: contain;
}

[component="folders"] [folder-type="test"] .folder-icon {
    background-image: url('img/exam-blue.svg');
}



/******************************************************************************/


[component="test"] .question {
    overflow: hidden;
}

[component="test"] .results {
    text-align: left;
    max-width: 250px;
    margin: auto;
}

[component="test"] .result {
    display: inline-block;
    padding: 8px;
    /*border-radius: 3px;*/
    background-color: silver;
    width: 40px;
    height: 40px;
    text-align: center;
    margin: 2px;
    font-weight: bold;
    color: white;
}

[component="test"] .result[result="ok"] {
    background-color: #28a745 !important;
}

[component="test"] .result[result="fail"] {
    background-color: #dc3545 !important;
}

[component="test"] .result[result="blank"] {
    background-color: silver !important;
}

[component="test"] .result[result="challenge"] {
    background-color: #343a40 !important;
}

[component="test"] .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    background-color: white;
}

/******************************************************************************/
.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active {
    transition-duration: 0.2s;
    transition-property: height, opacity, transform;
    transition-timing-function: ease-out;
    overflow: hidden;
}

.slide-left-enter,
.slide-right-leave-active {
    opacity: 0;
    transform: translate(10em, 0);
}

.slide-left-leave-active,
.slide-right-enter {
    opacity: 0;
    transform: translate(-10em, 0);
}

/* dark theme *****************************************************************/
#app[theme="dark"] .logo {
    background-image: url('/img/logo-dark.png');
}

#app[theme="dark"] {
    color: silver;
    background-color: #1F1F2F;
    min-height: 100%;
}

#app[theme="dark"] a {
    color: #407dbf;
}

#app[theme="dark"] .nav-pills .nav-link.active,
#app[theme="dark"] .nav-pills .show>.nav-link {
    color: white;
    background-color: #407dbf;
}

#app[theme="dark"] .list-group-item {
    background-color: rgba(0,0,0,0.1);
}

#app[theme="dark"] .btn {
    color: silver;
    background-color: transparent;
}

#app[theme="dark"] .btn.btn-warning {
    background-color: transparent;
}

#app[theme="dark"] pre {
    color: #dedad6;
}

#app[theme="dark"] .nav-tabs .nav-item.show .nav-link,
#app[theme="dark"] .nav-tabs .nav-link.active {
    color: white;
    background-color: transparent;
    border-bottom-color: #1F1F2F;
}

#app[theme="dark"] [component="BlockQuestions"] input {
    color: silver;
    background-color: transparent;
}

#app[theme="dark"] [component="BlockQuestions"] form.new-question input {
    color: silver !important;
    background-color: rgba(255,255,255,0.1) !important;
}

#app[theme="dark"] [component="test"] .bottom-bar {
    background-color: #1F1F2F;
}

#app[theme="dark"] [component="test"] .result  {

}

#app[theme="dark"] [component="test"] .result[result] {
    color: white;
}

#app[theme="dark"] [component="folders"] .folder-icon {
    opacity: 0.6;
}

.divisa {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 2px 2px 3px rgba(0,0,0, 0.5);
}

/* btn google */

.btn-google {
    background-image: url('img/google-sign-in.png');
    background-size: contain;
    background-repeat: no-repeat;
    font-weight: bold;
}