﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
  font-family: "Roboto", sans-serif;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

/*-----------------------------------*/

ul, #tree {
    list-style-type: none;
    padding-left: 15px;
}

#tree {
    margin: 0;
    padding: 0;
}

#tree span {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s ease-in-out, color .15s ease-in-out, box-shadow .15s ease-in-out;
}


.tree .normal::before {
    content: "";
    display: block;
    background: url("/img/folder.png") no-repeat;
    width: 25px;
    height: 20px;
    float: left;
    margin: 0 6px 0 0;
}

.tree .caret::before {
    content: "";
    display: block;
    background: url("/img/folder2.png") no-repeat;
    width: 25px;
    height: 20px;
    float: left;
    margin: 0 6px 0 0;
}

.tree .caret-down::before {
    content: "";
    display: block;
    background: url("/img/folder-open.png") no-repeat;
    width: 25px;
    height: 20px;
    float: left;
    margin: 0 6px 0 0;
    background-color: grey;
}

.nested {
    display: none;
}

.active {
    display: block;
}

/*.selected{
    background-color: lightskyblue;
}*/


/* Hover */
.tree span:hover {
    background-color: #e3f0ff;
}

/* Selected */
.tree span.selected {
    background: linear-gradient(90deg, #5fa8f5, #4a90d9);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Selected + hover (per no perdre el blau) */
.tree span.selected:hover {
    background: linear-gradient(90deg, #6bb4ff, #5aa0e6);
}

/* 🌙 Dark mode */
/*@media (prefers-color-scheme: dark) {
    .tree span:hover {
        background-color: #2a2f36;
    }

    .tree span.selected {
        background: linear-gradient(90deg, #3b82f6, #2563eb);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}*/


.boto {
    margin: 0;
    padding: 0;
    border: none;
    color: #0366d6;
    background-color: transparent;
    text-decoration: underline;
    text-align: center;
}

.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}

    .gutter.gutter-horizontal {
        /*background-image: url('grips/vertical.png');*/
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
        cursor: col-resize;
    }

    .gutter.gutter-vertical {
        /*background-image: url('grips/horizontal.png');*/
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
        cursor: row-resize;
    }


.bell {
    display: inline-block;
    position: relative;
    /*width: 48px;
    height: 42px;
    text-align: center;
    padding-top: 6px;*/
}

    .bell img {
        width: 24px;
        height: 24px;
        padding-top: 10px;
    }

    .bellnumbers {
        font-size: 10px;
        font-weight: bold;
        background-color: red;
        /*width: 16px;
        line-height: 16px;*/
        text-align: center;
        color: #fff;
        z-index: 2;
        border-radius: 3px;
        position: absolute;
        left: 8px;
        top: -5px;
        padding: 0 2px;
    }

    input:invalid {
        border: red solid 3px;
    }

.hide {display:none !important;}

.receiveEmail {
    color: blue;
}

.info-icon {
    cursor: pointer;
    margin-left: 10px;
}

.title-container {
    display: flex;
    align-items: center;
}

.title-container h5 {
    margin: 0;
}

/* Animació icon */
.spin {
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/*---------*/

img.circular {
    border-radius: 50%; /* Fa que sigui perfecte cercle */
    object-fit: cover; /* Important: retalla la imatge per omplir el cercle sense deformar-la */
    width: 200px; /* Mida que vulguis */
    height: 200px; /* Ha de ser igual que l'amplada per fer cercle perfecte */
}