/* Importing Google Fonts */
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif !important;
    background: #fafafa !important;
}

/* Paragraph Styles */
p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1em !important;
    font-weight: 300 !important;
    line-height: 1.7em;
    color: #999;
}

/* Link Styles */
a, a:hover, a:focus {
    color: inherit;
    text-decoration: none !important;
    transition: all 0.3s;
}

/* Navbar Styles */
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

/* Miscellaneous Styles */
.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* Sidebar Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(to right, #4543a0, #759dd2); /* Green gradient from medium to light green */
    color: #fff;
    transition: all 0.3s;
}


#sidebar.active {
    margin-left: -250px;
}

/* Sidebar header with a slightly darker gradient for depth */
#sidebar .sidebar-header {
    padding: 20px;
    background: linear-gradient(to right, #4543a0, #759dd2); /* Darker shades of green for the header */
}

/* Improved visibility and aesthetic of sidebar components */
#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #4c6baf; /* Solid green contrast for separation */
}


#sidebar ul p {
    color: #fff;
    padding: 10px;
}

/* Hover and active styles with improved contrast */
#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: #f0f0f0; /* Light grey text for better readability */
    transition: color 0.3s, background-color 0.3s;
}

#sidebar ul li a:hover,
#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #ffffff; /* White text for hover and active states */
    background: #2e3c7d; /* Darker green for contrast on hover/active */
}

/* Nested links with subtle background change */
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #8191c7; /* Lighter blue for nested items */
}


ul.CTAs {
    padding: 20px;
}

ul.errorlist:empty {
  display: none;
}

/* Call to action styles with updated colors for emphasis */
ul.CTAs a.download {
    background: #ffffff;
    color: #43a047; /* Link color similar to the sidebar gradient */
    border: 1px solid #43a047; /* Border to enhance button-like appearance */
}

a.article, a.article:hover {
    background: #66bb6a !important; /* Consistent with header gradient */
    color: #ffffff !important;
}

#sidebarCollapse {
    background: #0d6efd;
    color: #ffffff;
}

/* Content Style */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Media Queries for Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* Modal Styles */
.modal-xl {
    max-width: 90%;
}

#editInterfaceForm input[type="checkbox"] {
    top: 0.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    height: 1rem !important;
    width: 1rem !important;
    display: inline-block !important;
}
  
  .custom-control-input {
    position: absolute;
    z-index: 9999 !important;
    opacity: 0;
  }

.custom-textarea {
  height: calc(7rem + 2px) !important;
}

.form.group {
  align-content: center !important;
}

/*Button Styles*/

.mt-2 {
  margin-top: 0.5rem !important;
}

/*Table Styles*/

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    word-wrap: break-word;
    white-space: normal;
}

.table th {
    background-color: #f2f2f2;
    text-align: left;
}

/*Message Styles*/
.custom-alert {
    background-color: #d9edf7; /* Fondo azul claro */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success.custom-alert {
    color: #3c763d; /* Letras en verde para mensajes de éxito */
}

.alert-error.custom-alert {
    color: #a94442; /* Letras en rojo para mensajes de error */
}
