:root {
   /* --primary: #2d3b55;*/
    --primary: #2F5D84;
    --old-primary: #1A344E;
    --secondary: #2F5D84;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;


    --online-green: #28a745;
    --offline-gray: #6c757d;
    --primary-blue: #2F5D84;
}

body {
    background-color: #f5f7fb;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 600;
}

button {
    font-family: var(--font-body);
    font-weight: 500;
}

/* Riattivare e sospendere quella di sotto per bloccare le statistiche a findo pagina */
/*.sidebar {
    background-color: white;
    width: 280px;

    position: fixed;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}*/

.sidebar {
    background-color: white;
    width: 280px;
    position: sticky;  /* ← Cambiato da fixed a sticky */
    top: 0;  /* Necessario per sticky */
    left: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.sidebar-logo {

    padding: 0 1rem;
/*    border-bottom: 1px solid var(--border-color);*/
}

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

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.company-name {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
}

.company-title {
    color: var(--old-primary);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.sidebar-menu {
    padding-top: 1rem;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.3rem;
    margin: 0.25rem 0.5rem;
    transition: all 0.2s;
}

.menu-item:hover, .menu-item.active {
    background-color: #e9f0ff;
    color: var(--secondary);
}

.menu-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.menu-item.active {
    background-color: #e9f0ff;
    color: var(--secondary);
    font-weight: 500;
}

.separator {
    height: 1px;
    background: var(--border-color);
    margin: 15px 20px;
}

.sidebar-footer {
    padding: 1rem;
    /*border-top: 1px solid var(--border-color);*/
    background-color: white;
}

.quota-container {
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quota-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--old-primary);
}

.quota-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.progress {
    height: 8px;
    margin-bottom: 0.75rem;
}

.seats-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    align-items: center;
}

.seats-count {
    font-weight: 600;
}

.btn-upgrade {
    width: 100%;
    background-color: var(--secondary);
    border: none;
    font-size: 0.9rem;
    padding: 0.4rem;
    transition: all 0.2s;
}

.btn-upgrade:hover {
    background-color: #2d6bc7;
}



/*.main-content {
    margin-left: 250px;
    padding: 2rem;
}*/

.main-content {
    /*margin-left: 280px;*/
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}
.workgroup-section {
   /* height: 20vh;
    overflow-y: auto;*/
}

.header {
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;

   /* background-color: #272a60;*/
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.75rem;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.action-buttons .btn {
    margin-left: 0.5rem;
}

.folder-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    position: relative;
    margin-bottom: 1rem;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.file-table {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.file-table .table {
    margin-bottom: 0;
}

.file-table .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-actions button {
    border: none;
    background: none;
    color: #6c757d;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.file-actions button:hover {
    background-color: #f1f3f5;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 5rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.quota-usage {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
}

.progress {
    height: 8px;
    margin-top: 0.5rem;
}

.stats-small {
    font-size: 0.8rem;
    color: #6c757d;
}

.drag-area {
    border: 2px dashed #adb5bd;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

.drag-area:hover {
    border-color: var(--secondary);
    background-color: #e9f0ff;
}

.favorite {
    color: gold;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    cursor: pointer;
}

.modal-title {
    font-weight: 600;
}

.folder-row {
    background-color: #f0f7ff;
}

/*.btn:hover {
    color: #FFFFFF;
    background-color: #636674;
    border-color: #636674;
}*/
.btn-link:hover {
    color: #FFFFFF;
    background-color: #f1f3f5;
    border-color: #f1f3f5;
}
.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    color: #FFFFFF;
    background-color: #f1f3f5;
    border-color: #f1f3f5;
    box-shadow: var(--bs-btn-active-shadow);
}


.file-table table th, .file-table table td {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.file-table thead tr, .file-table tbody tr {
    padding: .5rem .5rem;
    background-color: #ffffff;
    border-bottom-width: 1px !important;
    border-bottom-color: #dee2e6 !important;
}

.file-table .table:not(.table-bordered) > :not(:first-child) {
    border-style: solid;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
}

.page-item.active .page-link {
    color: #fff !important;
}

.form-control.form-control-solid::-moz-placeholder {
    color: var(--bs-secondary-color);
    opacity: 1;
}

.form-control.form-control-solid::placeholder {
    color: var(--bs-secondary-color);
    opacity: 1;
}

.file-actions i {
    color: #272a60;
}
.multiselect__tags {
    position: relative;
    padding-left: 32px !important; /* Spazio per l'icona */
}

.multiselect__tags::before {
    /*content: url("http://[::1]:5175/resources/css/icons/SearchIcon.svg");*/
    content: url("/build/assets/SearchIcon-f9713f71.svg");

    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.3;
}

.text-dark {
    color: #272a60 !important;
}
.text-gray-800 {
    color: #272a60 !important;
}

.security-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}
.security-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.security-card-body {
    padding: 1.5rem;
}

.security-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.security-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.security-item:last-child {
    border-bottom: none;
}

.security-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9f0ff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.security-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.security-status.enabled {
    background-color: #d1e7dd;
    color: #0f5132;
}

.security-status.disabled {
    background-color: #f8d7da;
    color: #842029;
}

.security-status.partial {
    background-color: #fff3cd;
    color: #664d03;
}

.last-activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.last-activity-item:last-child {
    border-bottom: none;
}

.last-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9f0ff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

/*.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}*/

.security-card .btn:not(.btn-outline):not(.btn-dashed):not(.btn-bordered):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon):not(.btn-hover-outline) {
    border: 1px solid #dfe2e6 !important;

}

.security-card .btn-outline-secondary {
    --bs-btn-color: #6c757d !important;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108,117,125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none;
}


.fw-bold-more {
    font-weight: 1000;

}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
    margin-right: 0.5rem;
}

/* Stili per dashboard */

:root {
/*    --primary: #2d3b55;*/
    --primary: #2F5D84 !important;
    --secondary: #2F5D84;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --folder-color: #6c757d;
    --file-color: #6c757d;
    --hover-bg: #f0f4ff;

    --font-title: "Markazi Text", serif;
    --font-body: "Inter", sans-serif;
}
.file-table-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.file-table {
    margin-bottom: 0;
}

.file-table th {
    font-weight: 600;
    color: #212529;
    border-top: none;
    padding: 1rem;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.file-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.file-table tr {
    transition: background-color 0.2s ease;
}

.file-table tbody tr:hover {
    background-color: #f2f2f2;
}

.file-row {
    border-bottom: 1px solid var(--border-color);
}

.file-row:last-child {
    border-bottom: none;
}

/* Improved Checkbox */
.custom-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1.5px solid #adb5bd;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox:hover {
    border-color: var(--secondary);
}

.custom-checkbox.checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.custom-checkbox.checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    /*
    background-color: white;
    border-radius: 0.15rem;

     */
}

/* File Type Icons */
.file-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.folder-icon {
    /*color: var(--folder-color);*/
    /*color: #ffc107;*/
    color: var(--primary);
    font-size: 1.5rem;
}

.file-type-icon {
    color: var(--file-color);
    font-size: 1.5rem;
}

/* File Name */
.file-name {
 /*   font-weight: 500;*/
    color: #333;
    word-break: keep-all;
    white-space: nowrap;
}

/* Permissions */
.permission-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e9f0ff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

td.permission-cell {
    text-align: center;
}

/* Actions */
.action-btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background-color: transparent;
    border: none;
    margin-left: 0.25rem;
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #e9f0ff;
    color: var(--secondary);
}

.action-btn i {
    font-size: 1.25rem;
}

.edit-btn:hover {
    color: #2d6bc7;
}

.share-btn:hover {
    color: #0f5132 !important;
    background-color: #badbcc !important;
}

.download-btn:hover {
    color: #2d6bc7;
}

.delete-btn:hover {
    color: #dc3545;
}
/* Fine stili per dashboard */


body .mx-context-menu-item:hover {
    background-color: var(--hover-bg);
}

.btn-send, .btn-save, .primary-button, .submit-button, .btn-upgrade, .btn-close-modal {
    background-color: var(--primary);
}
.btn-next, .btn-copy {
    background-color: var(--primary);
}
.btn-primary:hover, .btn-close-modal:hover {
    background-color: var(--old-primary);
}
.btn-next:hover, .btn-copy:hover {
    background-color: var(--old-primary);
}
.active > .page-link:hover {
    background-color: var(--old-primary);
}


.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-icon {
    margin-right: 10px;
    font-size: 24px;
    color: var(--primary);
}

.file-name {
    flex-grow: 1;
    font-size: 0.9rem;
}

.file-size {
    margin-right: 15px;
    color: #777;
    font-size: 13px;
}

.file-remove {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 18px;
}
.small {
    font-size: 0.700em !important;
}
.highlight {
    background: rgba(255, 235, 59, 0.3);
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}
.text-primary {
    color: var(--primary) !important;
}
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.active > .page-link, .page-link.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.page-link {
    color: var(--primary) !important;
}


@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }

    .logo-text, .company-title {
        display: none;
    }

    .logo-img {
        margin-right: 0;
    }

    .logo-container {
        justify-content: center;
    }

    .menu-item span {
        display: none;
    }

    .menu-item i {
        margin-right: 0;
        font-size: 1.3rem;
    }

    .sidebar-footer {
        display: none;
    }
}


.workgroups-section {
    padding: 15px 10px;
}

.workgroups-header {
    padding: 10px 10px;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workgroup-item {
    margin-bottom: 10px;
}

.workgroup-header {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.workgroup-header:hover {
    background-color: var(--hover-bg);
}

.workgroup-header i {
    transition: transform 0.3s;
    font-size: 12px;
}

.workgroup-header.collapsed i {
    transform: rotate(-90deg);
}

.workgroup-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.workgroup-count {
    background: var(--hover-bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #6c757d;
}

.users-list {
    padding-left: 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.users-list.show {
    max-height: 500px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    gap: 10px;
    cursor: default;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: var(--hover-bg);
}

.presence-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.presence-indicator.online {
    background-color: var(--online-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    color: #212529;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.user-item:hover .call-actions {
    opacity: 1;
}

.call-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.call-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.call-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.presence-indicator.offline {
    background-color: var(--offline-gray);
}

/* Call and Video Call Twilio */

.call-header {
    background: var(--primary);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    cursor: default;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.call-controls {
    background: var(--primary);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--old-primary);
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.call-interface {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.call-interface.draggable {
    cursor: move;
}

.call-interface.expanded {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}
 body {
    font-size: 0.9rem;
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
}
