﻿/* Navbar Elements Visibility */
#kt_drawer_alerts_toggle {
    display: none !important;
}

.app-navbar-item-app-alert {
    display: none !important;
}

#kt_header_search_toggle {
    display: none !important;
}

.app-navbar-item-app-search {
    display: none !important;
}

#kt_drawer_news_toggle {
    display: none !important;
}

.app-navbar-item-app-news {
    display: none !important;
}

/* Workflow Icons Colors */
.icon-qualification {
    color: #50cd89 !important
}

.icon-contrattualizzazione {
    color: var(--bs-info) !important
}

.icon-subcrequest {
    color: var(--bs-danger) !important
}

.icon-document {
    color: var(--bs-primary) !important
}


/* Landing Page Styles */
.lp-loading-container {
    text-align: center;
    padding: 40px;
}

.lp-loading-text {
    margin-top: 20px;
    font-size: 16px;
}

.lp-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.lp-client-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    width: calc(50% - 10px);
    min-width: 400px;
}

[data-bs-theme="dark"] .lp-client-card {
    background: #1e1e2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.lp-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e4e6ef;
    padding-bottom: 15px;
}

[data-bs-theme="dark"] .lp-card-header {
    border-bottom-color: #2b2b40;
}

.lp-card-header-icon {
    font-size: 24px;
    margin-right: 12px;
    color: #3f4254;
}

[data-bs-theme="dark"] .lp-card-header-icon {
    color: #92929f;
}

.lp-card-header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #181c32;
}

[data-bs-theme="dark"] .lp-card-header-title {
    color: #f5f8fa;
}

.lp-portal-button {
    display: block;
    background: #4A90E2;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.lp-portal-button:hover {
    background: #3a7bc8;
    color: white;
}

.lp-workflow-item .card {
    background: white;
}

[data-bs-theme="dark"] .lp-workflow-item .card {
    background: #15171c;
    border-color: #2b2b40;
}

.lp-workflow-item .card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    background: transparent;
    border-bottom-color: #e4e6ef;
}

[data-bs-theme="dark"] .lp-workflow-item .card-header {
    border-bottom-color: #2b2b40;
}

.lp-workflow-item .card-header .fs-4 {
    color: #181c32;
}

[data-bs-theme="dark"] .lp-workflow-item .card-header .fs-4 {
    color: #f5f8fa;
}

.lp-workflow-item .card-body {
    background: transparent;
}

.lp-workflow-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.lp-workflow-icon {
    font-size: 18px;
    margin-right: 10px;
    color: #7e8299;
    display: flex;
    align-items: center;
    line-height: 1;
}

[data-bs-theme="dark"] .lp-workflow-icon {
    color: #92929f;
}

.lp-workflow-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #181c32;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .lp-workflow-title {
    color: #f5f8fa;
}

.lp-workflow-activities {
    margin-bottom: 8px;
}

.lp-activities-count {
    min-width: var(--activities-min-width, 2rem);
    display: inline-block;
}

.lp-activities-label {
    margin-left: 8px;
    color: #5e6278;
    font-size: 14px;
}

[data-bs-theme="dark"] .lp-activities-label {
    color: #92929f;
}

.lp-no-activities {
    text-align: center;
    padding: 20px;
    color: #a1a5b7;
    font-style: italic;
}

.lp-no-workflows-container {
    text-align: center;
    padding: 40px;
    color: #a1a5b7;
}

.lp-no-workflows-icon {
    margin-bottom: 20px;
}

.lp-no-workflows-text {
    font-size: 16px;
}

/* Redirect Page Styles */
.lp-redirect-page #kt_app_header,
.lp-redirect-page .app-navbar,
.lp-redirect-page header,
.lp-redirect-page nav {
    display: none !important;
}

.lp-redirect-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lp-redirect-card {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

[data-bs-theme="dark"] .lp-redirect-card {
    background: #1e1e2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.lp-redirect-spinner {
    margin-bottom: 20px;
}

.lp-redirect-title {
    color: #181c32;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--bs-font-sans-serif);
}

[data-bs-theme="dark"] .lp-redirect-title {
    color: #f5f8fa;
}

.lp-redirect-text {
    color: #5e6278;
    margin-bottom: 15px;
    line-height: 1.6;
    font-family: var(--bs-font-sans-serif);
}

[data-bs-theme="dark"] .lp-redirect-text {
    color: #92929f;
}

/* Error Page Styles */
.lp-error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.lp-error-card {
    text-align: center;
    background: #f5f5f5;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.lp-error-icon {
    color: #f1416c;
    margin-bottom: 20px;
}

.lp-error-title {
    color: #181c32;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    font-family: sans-serif;
}

.lp-error-message {
    color: #5e6278;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    font-family: sans-serif;
}

.lp-error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-error-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    font-family: sans-serif;
}

.lp-error-button i {
    font-size: 14px;
}

.lp-error-button-primary {
    background: #4A90E2;
    color: white;
}

.lp-error-button-primary:hover {
    background: #3a7bc8;
    color: white;
}

.lp-error-button-secondary {
    background: #f5f8fa;
    color: #5e6278;
    border: 1px solid #e4e6ef;
}

.lp-error-button-secondary:hover {
    background: #e4e6ef;
    color: #3f4254;
}

/* logo Esselunga */
.app-header .app-logo {
    background-image: url(img/Logo_esselunga-bianco.png) !important;
    height: 50px !important;
}

.app-login-root .app-logo {
    background-image: url(img/Logo_esselunga.png) !important;
    width: 115vh !important;
    height: 25vh !important;
}

.app-logout-root .app-logo {
    background-image: url(img/Logo_esselunga.png) !important;
}