@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-image: url("https://grupodelta.com.py/wp-content/uploads/2023/11/svg_lineas_Delta.svg");
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: var(--white-color);
    opacity: 0.95;
}

:root {
    --primary-color: #2fac66;
    --primary-color-dark: #227f48;
    --secondary-color: #36bffa;
    --secondary-color-dark: #0ba5ec;
    --accent-color: #f1c40f;
    --danger-color: #f97066;
    --danger-color-dark: #f04438;
    --off-white: #eaecf5;
    --off-white-dark: #c4cfcf;
    --white-color: #fcfcfd;
    --gray-color: #a5a5a5;
    --black-color: #232323;
}

h1 {
    text-transform: uppercase;
}

.link {
    color: var(--primary-color);
    font-weight: 600;
    transition: 0.6s;
}

.link:hover {
    color: var(--primary-color-dark);
}

.hidden {
    display: none!important;
}

.content {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.container.px {
    padding-left: 20px;
    padding-right: 20px;
}

.container.py {
    padding-top: 70px;
    padding-bottom: 70px;
}

.text-primary {
    color: var(--primary-color);
}

.semibold {
    font-weight: 600;
}

.tag {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
}

.btn {
    padding: 8px 20px;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--gray-color);
    transition: all 0.4s;
    font-size: 16px;
    font-weight: 600;
    line-height: 1em;
    font-family: "Montserrat", sans-serif;
}

.btn.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn.btn-primary:hover {
    background: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn.btn-secondary {
    background: var(--off-white);
    color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn.btn-secondary:hover {
    background: var(--off-white-dark);
}

.btn.btn-danger {
    background: var(--danger-color);
    color: var(--white-color);
    border-color: var(--danger-color);
}

.btn.btn-danger:hover {
    background: var(--danger-color-dark);
}

.btn.disabled {
    background: var(--off-white-dark) !important;
    border-color: var(--gray-color);
    cursor: not-allowed;
}

.error {
    background-color: var(--danger-color);
    color: var(--white-color);
    padding: 7px 25px;
}

.success {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 7px 25px;
}

.warning {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 7px 25px;
}

/* LOGIN PAGE */
#login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#login-page .app-logo {
    max-width: 100%;
    width: 250px;
    margin-bottom: 40px;
}

#login-page .form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-page #login-form {
    display: flex;
    flex-direction: column;
}

#login-page .custom-input {
    display: block;
    width: 300px;
    margin-bottom: 10px;
    padding: 9px 20px;
    border: none;
    background: var(--off-white);
}

/* ADMIN HEADER */
#admin-header {
    padding: 20px 0;
    background: var(--white-color);
    position: relative;
    z-index: 99;
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
}

#admin-header .container,
#admin-header .container nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#admin-header .app-logo {
    max-width: 100%;
    width: 120px;
    margin-top: -10px;
}

#admin-header .nav-link {
    margin-left: 15px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 16px;
    color: var(--black-color);
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s;
}

#admin-header .nav-link:hover {
    color: var(--primary-color);
}

/* USER ADMIN */

.users-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.user-card {
    border: 1px solid var(--primary-color);
    overflow: hidden;
    background: var(--white-color);
}

.user-card .role-tag {
    display: inline-block;
    padding: 6px 10px;
    background: var(--off-white-dark);
    color: var(--black-color);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.user-card .role-tag.super {
    background: var(--accent-color);
}

.user-card .role-tag.admin {
    background: var(--primary-color);
    color: var(--white-color);
}

.user-card .role-tag.analyst {
    background: var(--off-white);
}

.user-card.inactive {
    border: 4px solid var(--gray-color);
    filter: grayscale(100%) opacity(70%);
}

.user-card .profile-picture {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.user-card .role {
    padding: 3px 9px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    top: 10px;
    left: 10px;
}

.user-card .actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.action {
    background: var(--white-color);
    width: 25px;
    height: 25px;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--white-color);
    cursor: pointer;
    border: none;
}

.action.view {
    background: var(--secondary-color);
}
.action.view:hover {
    background: var(--secondary-color-dark);
}
.action.edit {
    background: var(--primary-color);
}
.action.edit:hover {
    background: var(--primary-color-dark);
}
.action.delete {
    background: var(--danger-color);
}
.action.delete:hover {
    background: var(--danger-color-dark);
}

.user-card.inactive .action.view {
    display: none;
}

.user-card .user-data {
    padding: 10px;
}

.user-card .full-name {
    margin: 5px 0;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.user-card .username {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
}

.user-card .last-login {
    font-size: 14px;
}

/* CUSTOM FORM */

.custom-form {
    margin-top: 40px;
    display: flex;
}

.custom-form.filter {
    margin-top: 0;
    align-items: center;
}

.custom-form.filter .btn {
    margin-left: 10px;
}

.custom-form hr {
    border: 1px solid var(--off-white);
    margin-top: 40px;
    margin-bottom: 20px;
}

.custom-form .required {
    color: var(--danger-color);
}

.custom-form .data-section {
    width: 70%;
    padding-right: 60px;
}

.custom-form .manage-section {
    width: 30%;
    background: var(--off-white);
    padding: 20px;
}

.custom-form .input-wrapper {
    margin-bottom: 15px;
}

.custom-form .input-wrapper label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.custom-form .text-input label,
.custom-form .file-input label,
.custom-form .select-input label {
    display: block;
}

.custom-form .date-input input,
.custom-form .text-input input,
.custom-form textarea,
.custom-form .file-input input,
.custom-form .select-input select {
    display: block;
    width: 100%;
    padding: 7px 20px;
    font-size: 16px;
    border: 1px solid var(--gray-color);
}

.custom-form #profile-picture-container,
.custom-form #logo-container {
    margin: 10px 0;
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.custom-form #profile-picture-container .action,
.custom-form #logo-container .action {
    position: absolute;
    top: 10px;
    right: 10px;
}

.custom-form .file-input #profile-picture-container,
.custom-form .file-input #logo-container,
.custom-form .file-input input {
    display: none;
}

.custom-form .file-input #profile-picture-container.show,
.custom-form .file-input #logo-container.show,
.custom-form .file-input input.show {
    display: block;
}

.custom-form .change-password {
    display: block;
    text-decoration: underline;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.custom-form .change-password:hover {
    color: var(--primary-color-dark);
}

.custom-form .date-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-form .date-field input {
    width: 80%;
}

.custom-form .date-field button {
    width: 18%;
    padding: 9px 0;
    text-align: center;
    font-size: 16px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    transition: all 0.4s;
}

.custom-form .date-field button:hover {
    background: var(--primary-color-dark);
}

.table-actions {
    display: flex;
    align-items: center;
}

.action {
    background: var(--white-color);
    width: 25px;
    height: 25px;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--white-color);
    cursor: pointer;
    border: none;
}

.action.delete {
    background: var(--danger-color);
}

.action.delete:hover {
    background: var(--danger-color-dark);
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-actions {
    margin-top: 60px;
}

.remove-actions form {
    display: inline;
}

@media screen and (max-width: 768px) {
    .custom-form {
        display: flex;
        flex-direction: column;
    }

    .custom-form .data-section {
        width: 100%;
        padding-right: 0;
    }

    .custom-form .manage-section {
        width: 100%;
        padding: 20px;
        margin-top: 3%;
    }
}

/* FORM UTILITIES */

.grid {
    display: grid;
    gap: 20px;
}

.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.images-input {
    width: 100%;
    padding: 6px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #c0c0c0;
    margin-bottom: 50px;
}

.images-input label {
    min-width: max-content;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 20px;
}

.images-input input {
    display: block;
    width: 100%;
    padding: 7px 20px;
    font-size: 16px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.images-grid .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e2efff;
    position: relative;
}

.images-grid .image-container img {
    max-width: 100%;
}

.images-grid .image-container .delete {
    position: absolute;
    top: 10px;
    right: 10px;
}

.image-to-remove {
    display: block;
    width: 100%;
    max-width: 500px;
}

@media screen and (max-width: 768px) {
    #manage-media .admin-bar {
        flex-direction: column-reverse;
        align-items: start;
    }

    .images-input label {
        margin-top: 10px;
        margin-right: 0;
    }

    .images-input {
        flex-direction: column;
    }

    .images-input input {
        margin: 10px 0;
    }

    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* BUSINESS TABLE */

.business-table {
    width: 100%;
}

.business-table thead {
    background: var(--black-color);
    color: var(--white-color);
}

.business-table th,
.business-table td {
    text-align: left;
    padding: 5px 10px;
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center center;
}

.business-table tbody tr {
    cursor: pointer;
}

.business-table tbody tr:nth-child(odd) {
    background-color: var(--white-color);
}

.business-table tbody tr:nth-child(even) {
    background-color: var(--off-white);
}

.business-table tbody tr:hover {
    background: var(--off-white-dark);
}

.business-table .logo-column {
    width: 50px;
}

.business-table .id-column {
    width: 40px;
}

.business-table .name-column {
    width: 400px;
}

.business-table .status-column {
    width: 100px;
}

.business-table .actions-column {
    width: 100px;
}

.status {
    padding: 4px 10px;
    color: var(--white-color);
}

.status.active {
    background: var(--primary-color);
}

.status.inactive {
    background: var(--danger-color);
}

/* REMOVE USER */

.remove-actions {
    margin-top: 60px;
}

.remove-actions form {
    display: inline;
}

/* ADMIN LIST */

.admin-card {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.admin-picture {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-size: cover;
    background-position: center center;
}
.admin-picture,
.admin-name,
.admin-role {
    margin-right: 10px;
}
.admin-actions {
    display: flex;
    align-items: center;
}

/* MY PROFILE DROPDOWN */

.profile-btn {
    height: 40px;
    width: 40px;
    position: relative;
    border-radius: 50%;
    background-size: cover;
    background-position: center center;
    cursor: pointer;
    margin-left: 20px;
    z-index: 99;
}

.profile-nav {
    display: none;
    position: absolute;
    bottom: -100px;
    right: 0;
    width: 200px;
    padding: 0 15px;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    z-index: 99;
}

.profile-nav.open {
    display: block;
}

.profile-link {
    display: block;
    font-size: 16px;
    border: none;
    background: transparent;
    margin: 15px 0;
    padding: 0;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-link:hover {
    color: var(--danger-color-dark);
}

/* MI PERFIL */

.my-business-card {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--off-white);
    padding: 10px;
}

.my-business-card H2 {
    margin: 8px;
}

.my-business-content {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.my-business-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.my-business-role {
    margin: 0;
    margin-top: 5px;
    font-size: 14px;
    color: var(--gray-color);
}

/* CONTENIDO */

.add-more {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item {
    margin: 20px 0;
    border: 1px solid var(--off-white-dark);
    overflow: hidden;
    background: var(--white-color);
}

.category-item .category-header {
    background: var(--off-white);
    padding: 20px;
    position: relative;
}

.category-item .category-header .actions {
    top: 20px;
    right: 20px;
    position: absolute;
    display: flex;
}

.category-item .category-header h2 {
    margin-top: 0;
}

.category-item .category-header p {
    margin-bottom: 0;
}

.category-item .category-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.category-actions {
    position: relative;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-actions .profile-nav {
    bottom: unset;
    top: 80%;
}

/* gestión de imágenes */
.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.images-grid .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e2efff;
    position: relative;
}

.images-grid .image-container img {
    max-width: 100%;
}

.images-grid .image-container .delete {
    position: absolute;
    top: 10px;
    right: 10px;
}

.image-to-remove {
    display: block;
    width: 100%;
    max-width: 500px;
}

/* vista de imágenes y galería */
.photo-grid {
    margin-top: 80px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.photo-grid .document-photo {
    max-width: 100%;
    cursor: pointer;
}

.document-title {
    display: flex;
    align-items: center;
}

.document-title a {
    margin-left: 20px;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}
.document-title a:hover {
    color: var(--primary-color-dark);
}

.add-image {
    background: var(--off-white);
    height: 100%;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
    transition: all 0.4s;
}

.add-image:hover {
    background: var(--off-white-dark);
    color: var(--primary-color-dark);
}

/* pagina de archivos file */

.file-preview {
    background: var(--off-white);
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-preview .file-actions {
    display: flex;
    align-items: center;
}

.file-preview .file-actions a {
    margin-left: 20px;
    font-size: 25px;
    color: var(--primary-color);
    transition: all 0.4s;
}

.file-preview .file-actions a:hover {
    color: var(--primary-color-dark);
}

/* página de la empresa */

.users-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    gap: 10px;
}

.users-list .user-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.users-list .user-item h3 {
    margin: 7px 0;
    text-align: center;
}

.users-list .user-item p {
    margin: 0;
    color: var(--primary-color);
    text-align: center;
}

.edit-business {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--primary-color);
    font-size: 20px;
}

.edit-business:hover {
    color: var(--primary-color-dark);
}

/* USER MINI FORM */

.user-mini-form {
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--off-white);
}

.user-mini-form h4 {
    margin: 0 0 6px;
}

.user-mini-form span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

.user-mini-form .user-info {
    display: flex;
    align-items: center;
}

.user-mini-form .user-info .logo {
    margin-right: 10px;
}

/*  DASHBOARD STYLES */

.panel {
    padding: 20px;
    border: 1px solid var(--off-white-dark);
    background: var(--white-color);
}