@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

html {
    font-size: 14px;
}

@media (min-width: 768px) {

    html {
        font-size: 16px;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #f8fafc;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =========================================
   FOCUS
========================================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =========================================
   MODALES GENERALES
========================================= */

.modal-custom {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.modal-main-title {
    color: #0056b3;
    font-weight: 800;
    margin: 0;
    font-size: 1.5rem;
}

.modal-subtitle {
    color: #8c98a4;
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   FORMULARIOS
========================================= */

.form-group-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.form-label-custom {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.custom-input {
    display: block;
    width: 100%;
    height: 52px;
    background-color: #f0f7f7;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s;
}

    .custom-input:focus {
        border-color: #4db6ac;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(77,182,172,0.15);
        outline: none;
    }

/* =========================================
   BOTONES
========================================= */

.btn-login {
    background-color: #4db6ac;
    border: none;
    color: white;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-login:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }

    .btn-login:disabled {
        opacity: 0.85;
        cursor: not-allowed;
        transform: none;
    }

/* =========================================
   PASOS / ICONOS
========================================= */

.step-circle {
    width: 48px;
    height: 48px;
    background-color: #4db6ac;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(77,182,172,0.25);
}

.step-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.step-description {
    color: #8c98a4;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.success-circle {
    width: 80px;
    height: 80px;
    background-color: #4db6ac;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(77,182,172,0.30);
}

.success-title {
    font-weight: 800;
    color: #0056b3;
    margin-bottom: 10px;
}

.success-description {
    color: #8c98a4;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   TOPBAR
========================================= */
/* =========================================
   USER DROPDOWN
========================================= */

.user-dropdown {
    position: relative;
}

.dropdown-toggle-custom {
    border: none;
    background: transparent;
    padding: 0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: 0.2s;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 40px rgba(15,23,42,0.10);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s;
    z-index: 3000;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.2s;
}

    .dropdown-item-custom i {
        width: 16px;
        text-align: center;
    }

    .dropdown-item-custom:hover {
        background: #f8fafc;
        color: #0056b3;
    }

    .dropdown-item-custom.logout {
        color: #dc3545;
    }

        .dropdown-item-custom.logout:hover {
            background: #fff1f0;
            color: #dc3545;
        }

.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background-color: #f0f7f7;
    color: #0056b3;
    font-size: 1rem;
    transition: 0.2s;
    flex-shrink: 0;
}

    .menu-toggle:hover {
        background-color: #4db6ac;
        color: white;
    }

.web-title {
    color: #0056b3;
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0;
    line-height: 1;
}

    .web-title span {
        color: #4db6ac;
    }

.dropdown-item-custom.profile {
    color: #0056b3;
}

    .dropdown-item-custom.profile:hover {
        background: #eef5ff;
        color: #0056b3;
    }

.dropdown-item-custom.users {
    color: #00796b;
}

    .dropdown-item-custom.users:hover {
        background: #e8f7f5;
        color: #00796b;
    }

/* =========================================
   TOPBAR USER
========================================= */

.topbar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f7f6;
    border-radius: 14px;
    padding: 4px 30px;
    min-height: 46px;
}

.topbar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4db6ac, #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.topbar-user-info {
    line-height: 1.1;
}

.topbar-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
}

.user-cuit {
    font-size: 0.72rem;
    color: #8c98a4;
    padding-top: 3px;
}

/* =========================================
   LAYOUT
========================================= */

.app-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    width: 82px;
    background: white;
    border-right: 1px solid #edf2f7;
    padding: 18px 10px;
    transition: width 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    flex-shrink: 0;
}

    .sidebar:hover,
    .sidebar.pinned {
        width: 250px;
    }

.sidebar-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.2s;
}

.sidebar:hover .sidebar-title,
.sidebar.pinned .sidebar-title {
    opacity: 1;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    color: black !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

    .sidebar-link i {
        width: 18px;
        text-align: center;
        color: #4db6ac;
    }

    .sidebar-link:hover {
        background-color: #f0f7f7;
        color: #0056b3;
    }

    .sidebar-link.active {
        background: linear-gradient(135deg, #0056b3, #4db6ac);
        color: white !important;
    }

        .sidebar-link.active i {
            color: white;
        }

    .sidebar-link span {
        opacity: 0;
    }

.sidebar:hover .sidebar-link span,
.sidebar.pinned .sidebar-link span {
    opacity: 1;
}

/* =========================================
   CONTENT
========================================= */

.main-content {
    flex: 1;
    padding: 20px;
    min-width: 0;
}

.content-wrapper {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    min-height: calc(100vh - 120px);
    border: 1px solid #eef2f7;
}

/* =========================================
   USERS PAGE
========================================= */

.users-page {
    width: 100%;
}

.users-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-create-user {
    border: none;
    background: linear-gradient(135deg, #4db6ac, #009688);
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(77,182,172,0.18);
}

    .btn-create-user:hover {
        transform: translateY(-2px);
        color: white;
        background: linear-gradient(135deg, #0056b3, #4db6ac);
    }

.users-title-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.users-title-section p {
    margin: 6px 0 0;
    color: #8c98a4;
    font-size: 0.95rem;
}


.users-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.user-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 22px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .user-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 35px rgba(0,0,0,0.06);
    }

.user-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-user-action {
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-avatar {
    min-width: 56px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0056b3, #4db6ac);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,86,179,0.15);
}

.user-main-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.user-email {
    font-size: 0.88rem;
    color: #8c98a4;
    word-break: break-word;
}

.user-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-custom {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-admin {
    background: #e8f0ff;
    color: #0056b3;
}

.badge-active {
    background: #e8f7f5;
    color: #00796b;
}

.badge-inactive {
    background: #fff0f0;
    color: #dc3545;
}

.btn-edit {
    background: #eef7ff;
    color: #0056b3;
}

    .btn-edit:hover {
        background: #0056b3;
        color: white;
    }

.btn-reset {
    background: #fff8e8;
    color: #d68910;
}

    .btn-reset:hover {
        background: #d68910;
        color: white;
    }

.btn-delete {
    background: #fff1f0;
    color: #dc3545;
}

    .btn-delete:hover {
        background: #dc3545;
        color: white;
    }

@media (max-width: 991px) {

    .user-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .users-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-create-user {
        width: 100%;
    }
}

/* =========================================
   ACTIONS
========================================= */

.user-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-user-action {
    flex: 1;
    min-width: 140px;
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-reset {
    background: #eef7ff;
    color: #0056b3;
}

    .btn-reset:hover {
        background: #0056b3;
        color: white;
    }

.btn-delete {
    background: #fff1f0;
    color: #dc3545;
}

    .btn-delete:hover {
        background: #dc3545;
        color: white;
    }

/* =========================================
   EMPTY STATE
========================================= */

.empty-users {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #edf2f7;
}

    .empty-users i {
        font-size: 3rem;
        color: #d0d7de;
        margin-bottom: 18px;
    }

    .empty-users h4 {
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }

    .empty-users p {
        color: #8c98a4;
        margin: 0;
    }

.danger-circle {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* =========================================
   FOOTER
========================================= */

.footer-custom {
    margin-top: 20px;
    text-align: center;
}

.footer-text {
    font-size: 0.72rem;
    color: #adb5bd;
    margin: 0;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 991px) {

    .sidebar {
        position: fixed;
        left: -270px;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 2000;
        width: 250px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    }

        .sidebar.show {
            left: 0;
        }

    .main-content {
        width: 100%;
        padding: 16px;
    }

    .content-wrapper {
        padding: 18px;
    }

    .btn-topbar span {
        display: none;
    }

    .btn-topbar {
        width: 40px;
        height: 40px;
        justify-content: center;
        padding: 0;
    }

    .web-title {
        font-size: 1.3rem;
    }

    .users-header {
        flex-direction: column;
    }

    .btn-create-user {
        width: 100%;
    }

    
}

