/**
 * Body
 */
body {
    color: #444;
}
b, strong {
    font-weight: bold;
}
.h1, .h2, .h3, .h4, body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}
.big-text {
    font-size: 2.2em;
    line-height: 2.2em;
    font-weight: 800;
}


/**
 * Animations
 */
body {
    background-color: #f3f7f9;
}


/**
 * Header
 */
.login .card-profile .card-avatar {
    max-width: 350px;
    max-height: 180px;
    height: 180px;
    width: 100%;
    box-shadow: none;
    margin: -37px auto 0px;
    border-radius: 0;
    background: url('../img/logo.svg') no-repeat center;
    background-size: contain;
}


/**
 * Sidebar
 */
.sidebar .nav li .dropdown-menu a,
.sidebar .nav li a {
    text-transform: none;
    color: #fff;
}
.sidebar {
    box-shadow: none;
    border-right: 1px solid rgba(0,0,0,.15);
    font-weight: 700;
}
.sidebar .nav p {
    font-size: 15px;
}
.sidebar .nav li:hover>a .material-icons {
    color: #fff;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: .15s ease all;
    transition: .15s ease all;
}
.sidebar .logo {
    padding: 9px 0 8px;
}
.sidebar .logo .simple-text {
    padding: 3px 0;
    color: #fff;
    line-height: 1.5em;
    font-size: 1em;
}
.sidebar .logo .simple-text strong {
    display: block;
    font-size: 1.2em;
}
.sidebar[data-color=primary] li.active>a .material-icons {
    color: #fff;
}
.sidebar[data-background-color=primary] .sidebar-background:after {
    opacity: .8;
}
.sidebar[data-background-color=primary] .nav .nav-item .nav-link,
.sidebar[data-background-color=primary] .nav i,
.sidebar[data-background-color=primary] .nav li:hover>a .material-icons {
    color: #fff;
}
.sidebar .logo:after {
    background-color: rgba(255, 255, 255, 0.15);
}
.sidebar select,
.sidebar select:focus {
    background-color: #fff;
    background-image: none !important;
    border-radius: 3px;
    padding: 7px 0 7px 40px;
}
.sidebar .select-arrow {
    color: #495057 !important;
    position: absolute;
    right: 3px;
    margin-top: 6px;
    font-size: .7em;
    pointer-events: none;
}
.sidebar .material-icons.above {
    position: absolute;
    color: #495057 !important;
    margin-top: 5px;
    left: 20px;
}


/**
 * Container
 */
 .main-panel>.content {
    min-height: calc(100vh - 160px);
}
@media (min-width: 1200px) {
    .container {
        max-width: 90%;
    }
    .login .container {
        max-width: 1100px !important;
    }
}
@media (min-width: 1920px) {
    .container {
        max-width: 1460px;
    }
}


/**
 * Icons
 */
h4.card-title .material-icons,
.dropdown-menu .material-icons {
    margin-right: 6px;
    vertical-align: text-bottom;
}

.card-avatar .card-icon {
    width: 100px;
    height: 100px;
    color: #fff;
}

.card-avatar .card-icon.default {
    background-color: #999;
}

.card-avatar .material-icons {
    font-size: 56px;
    line-height: 1.8em;
}

.list-icon div {
    margin-bottom: 16px;
}

.list-icon .material-icons {
    font-size: 30px;
    float: left;
    margin-top: -3px;
    margin-right: 15px;
    line-height: 30px;
    width: 30px;
    text-align: center;
    color: #a9afbb;
}

.list-icon.icon-success .material-icons {
    color: #4caf50;
}

.list-icon p {
    display: flex;
}

.list-group-item:hover,
.card-body .list-group-item:hover {
    text-decoration: none;
}

.inline-icon {
    font-size: 1em !important;
    line-height: 1em !important;
    height: 1.2em !important;
}

.btn-sm .material-icons {
    top: 0 !important;
    margin-left: 0 !important;
}

.btn .material-icons {
    margin-right: 3px;
}

.btn-group>.btn {
    margin-right: 1px;
}

.material-icons.big {
    font-size: 62px;
}

.icon-center .material-icons {
    vertical-align: middle;
}


/**
 * Modal
 */
.modal-content {    
    border-radius: 1em;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .3);
}


/**
 * Page content
 */
.card-body a:hover {
    text-decoration: underline;
}


/**
 * Login page
 */
.login {
    min-height: 100vh;
}
.row-login {
    min-height: 80vh;
    background-color: #fff;
    padding: 1em;
    border-radius: 3em;
}
.bg-login-image {
    background-image: url('../img/login-bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.login .logo {
    max-height: 100px;
}


/**
 * Homepage
 */
.tile {
    height: 200px; 
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    box-sizing: border-box;
    padding: 15px;
}
.tile:hover {
    transform: scale(1.02);
    text-decoration: none;
}
.tile h2 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.tile h2 strong {
    display: block;
    font-weight: 700;
    font-size: 1.2em;
    margin-top: 5px;
}
@media (max-width: 576px) {
    .tile {
        height: 150px;
    }
    .tile h2 {
        font-size: 1rem;
    }
}
.top-right {
    position: absolute;
    top: 10px;
    right: 30px;
}
.bottom-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.partners a {
    transition: all .2s ease;
}
.partners a:hover {
    opacity: .8;
}


/**
 * Albums
 */
.album-thumb-img {
    transition: transform 0.3s ease-in-out;
    backface-visibility: hidden;
    object-fit: cover;
}

.album-item-link:hover .album-thumb-img {
    transform: scale(1.1); /* Constrained zoom effect */
}

.album-cover-container {
    overflow: hidden !important;
}

a.d-block:hover {
    text-decoration: none;
}

/* Empty album placeholder styles */
.empty-album {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

.empty-album i {
    font-size: 48px;
    color: #9e9e9e;
}

kbd {
    color: #6c757d;
    background-color: #ffffff;
    border-radius: .4rem;
    box-shadow: 0 .15rem 0 rgba(0, 0, 0, .2);
    border: 1px solid #ddd;
}

/* Album profile card styles */
.card-profile .card-avatar {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto;
}

.card-profile .card-avatar img,
.card-profile .card-avatar .empty-album {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-profile .card-avatar .empty-album {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

/* Photo thumbnail delete button overlay */
.photo-thumbnail-container {
    position: relative;    
    margin: 16px 0;
}

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
}

.photo-thumbnail-container:hover .photo-delete-btn {
    opacity: 1;
    transform: scale(1);
}

.photo-delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.photo-delete-btn .material-icons {
    color: #f44336;
    font-size: 18px;
    line-height: 1;
}

.photo-delete-btn:hover .material-icons {
    color: #d32f2f;
}

/* Ensure photo link doesn't interfere with delete button */
.photo-thumbnail-link {
    display: block;
    position: relative;
    z-index: 1;
}


/**
 * Table
 */
.table-responsive {
    min-height: 500px;
    min-height: calc( 100vh - 387px );
    overflow-y: hidden;
}
.table-responsive .folder>td {
    padding: 0;
}
.folder td:first-child {
    text-align: center;
    padding: 12px;
}
.folder td>a {
    display: block;
    padding: 12px 8px;
    font-weight: bold;
}


.deleteTooltip {
    background: #f44336;
    position: absolute;
    right: 0;
    margin-top: -46px;
    padding: 16px 15px 16px 10px;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 0 1px 0px white inset, 0 0 1px 0px white; /* Antialiasing */
    z-index: -100;
    -webkit-transition: width 2s;
    transition: all .3s;
}
.table > tbody > tr.hovered {
    position: static;
}
tr.hovered .deleteTooltip {
    right: -76px;
    z-index: 0;
}
.deleteTooltip a {
    color: #fff;
}
.deleteTooltip a:hover {
    opacity: .8;
}
@media only screen and (max-width: 767px) {
    .xs-hide {
        display: none;
    }
}
@media only screen and (min-width: 992px) {
    .table-responsive {
        overflow-x: hidden;
    }
}


/**
 * Forms
 */
 .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    top: 12px;
}
.bootstrap-select .dropdown-toggle:focus {
    outline: 0 !important;
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff;
}
.xs-height .dropdown-item {
    padding: .325rem 1.25rem;
}
.dropdown-menu {
    top: 0 !important;
}
.xs-height .dropdown-menu[x-placement=top-start] {
    transform-origin: top left !important;
}
.users .meta_1 {
    text-transform: uppercase;
}
.users .meta_2,
.users .meta_3 {
    text-transform: capitalize;
}
label.checked {
    color: #495057;
}


/**
 * Footer
 */
.copyright {
    font-size: 0.85em;
}

.half-opacity {
    opacity: .5;
}

.quarter-opacity {
    opacity: .25;
}

.half-opacity:hover {
    opacity: 1;
}


/**
 * Modules
 */
 .modules {
    max-width: 1140px;
    margin: 0 auto;
 }
.modules .card {
    text-align: center;
}
.modules .card h4 {
    min-height: 50px;
}
.modules .card .description {
    display: block;
}
.modules .card-header i {
    font-size: 3em;
}
.modules .card .card-body {
    padding-top: 0;
}
.modules img {
    max-height: 90px;
    transition: all 300ms cubic-bezier(.76,1.95,.6,.37);
}
.modules a:hover .card {
    transform: scale(1.2);
    box-shadow: 0 9px 24px 0 rgba(0,0,0,.1);
}
.modules a:hover img {
    transform: scale(1.2) translateY(-10px);
}
.modules a:active .card {
    transform: scale(.9);
}
.modules a .card {
    -webkit-transition: all 300ms cubic-bezier(.76,1.95,.6,.37);
    transition: all 300ms cubic-bezier(.76,1.95,.6,.37);
}
.modules a.na .card {
    opacity: .6;
}
.modules a.na img {
    opacity: .6;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}
.modules a.na:hover .card,
.modules a.na:hover img {
    transform: none;
    box-shadow: inherit;
}
.disabled {
    pointer-events: none;
    cursor: default;
}
@media only screen and (min-width: 1200px) and (max-width: 1500px) {
    .modules .card-title {
        font-size: 1.2em;
        font-weight: 400;
    }
}



/* Rules for sizing the icon. */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }



.color0 {
    background: linear-gradient(60deg, #5C618A, #464B74) !important;
}

.color1 {
    background: linear-gradient(60deg, #FFC044, #E8AF3E) !important;
}

.color2 {
    background: linear-gradient(60deg, #FF8585, #FF6B6B) !important;
}

.color3 {
    background: linear-gradient(60deg, #9393A7, #868698) !important;
}

.color4 {
    background: linear-gradient(60deg, #737465, #636554) !important;
}

.color5 {
    background: linear-gradient(60deg, #80A1D2, #5D86A9) !important;
}

.color6 {
    background: linear-gradient(60deg, #D7E8A0, #C2D191) !important;
}

.color7 {
    background: linear-gradient(60deg, #5B8C5A, #538052) !important;
}

.color8 {
    background: linear-gradient(60deg, #A9B3CE, #9AA3BC) !important;
}

.color9 {
    background: linear-gradient(60deg, #FF6B6B, #E86262) !important;
}

.color10 {
    background: linear-gradient(60deg, #635F76, #524D67) !important;
}

.color11 {
    background: linear-gradient(60deg, #F5D547, #DFC241) !important;
}

.color12 {
    background: linear-gradient(60deg, #1446A0, #134092) !important;
}

.color13 {
    background: linear-gradient(60deg, #F3C969, #DDB760) !important;
}

.color14 {
    background: linear-gradient(60deg, #71636C, #61525C) !important;
}

.color15 {
    background: linear-gradient(60deg, #BBB6DF, #AAA6CB) !important;
}

.color16 {
    background: linear-gradient(60deg, #AB2149, #A30B37) !important;
}

.color17 {
    background: linear-gradient(60deg, #5DB7DE, #55A7CA) !important;
}

.color18 {
    background: linear-gradient(60deg, #CBB13C, #B79F36) !important;
}

.color19 {
    background: linear-gradient(60deg, #958D7F, #867F72) !important;
}

/**
 * Drop zone (fichiers.php)
 */
.drop-capable {
    position: relative;
}
#drop-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(100, 100, 100, 0.75);
    border-radius: inherit;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#drop-overlay.active {
    display: flex;
}
#drop-overlay .drop-inner {
    border: 3px dashed rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 40px 60px;
    text-align: center;
    color: #fff;
    pointer-events: none;
}
#drop-overlay .drop-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 12px;
}
#drop-overlay .drop-message {
    font-size: 1.3em;
    font-weight: 500;
    display: block;
}
@keyframes drop-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
#drop-overlay .drop-icon.spinning {
    animation: drop-spin 1s linear infinite;
}

/* ── Poster (NH-specific) ─────────────────────────────────────────── */
.poster-wrapper {
    position: relative;
    display: inline-block;
}
.poster-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
    border-radius: 0 0 0.25rem 0.25rem;
    pointer-events: none;
}
.poster-wrapper.poster-hidden {
    opacity: 0.65;
}
.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}
.poster-empty {
    height: 394px;
    border: 2px dashed #ccc;
    background: #f9f9f9;
    color: #aaa;
}
.poster-actions {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}
