/* Variables */
:root {
    --background-color:#f4f6f9;
    --primary-color:#2e86de;
    --main-div-color:#ffffff;
    --main-width: 1000px;
    --main-small-width: 400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
    
}

.background {
    flex: 1; 
}

.login-main {
    max-width: 450px;
    
}


main {
    max-width: 1000px;
    margin: 3rem auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1000px) {
    main {
        margin: 0rem auto;
        border-radius: 0rem;
        height: 100%;
    }   

    .login-main {
        margin: 3rem auto;
        border-radius: 1rem;
        height: auto;
    }
}

@media (max-width: 600px) {
    .login-main {
        margin: 0rem 0rem;
        border-radius: 0rem;
        height: 100%;
        min-width: 100%;
    }

    
}

main p {
    margin-top: auto;
    text-align: justify;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    main p {
        text-align: initial;
    }

    
}



.home-main {
    display: flex;
    max-width: 1000px;
    text-align:center;
    align-items: center;
    justify-content: flex-start;    
    flex-direction: column;
}

.home-main p {
    max-width: 800px;
}

.home-main ul {
    display: block;
    max-width: 800px;
    width: 100%;
    text-align:left;
    
}

.button-main {
    white-space: normal;
    word-wrap: break-word;
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    background-color:  #2e86de;
    color: white;
    border: none;
    cursor: pointer;
    align-self: center;
    font-weight: bold;
    margin: 1rem;
}

.button-main:hover {
    border-color: #888;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
  
.button-main:hover {
    background-color: #0056b3;
}

.button-main:active {
    transform: scale(0.95);
}

.buttons-main {
    margin-top: auto;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq li {
    margin-bottom: 8px;
}


.logo {
    width: 100px;
}

section {
    margin: 2rem;
}

/* Header */
header {
    background-color: #2e86de;
    color: white;
    padding: 1rem 2rem;
    gap: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: margin-left 0.3s;
}

.navbar-left {
    gap: 2rem;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .logo {
        width: 0px;
    }

    .navbar-left {
        gap: 0rem;
    }
}

@media (max-width: 450px) {
    header {
        justify-content: center;
    }
}

header h1 {
    font-size: 1.8rem;
    cursor: pointer;
    text-align: center;
    color: #FFFFFF;
    margin-bottom:initial;

}



.login-button {
    background-color: #ddd;
    color:  #2e86de;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.login-buttons-div {
    display: flex; 
    gap: 1rem;
}

@media (max-width: 700px) {
    .login-buttons-div {
        display: none;
    }
}

.login-button:hover {
    background-color: #f1f1f1;
}

/* Register */
.license-row {
    display: flex;
    align-items: center;
}

.license-delete-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 15px;
}

.license-delete-button:hover {
opacity: 0.7;
}

.license-add-button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.3s ease;
    background-color:  #2e86de;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    
}
 
.license-add-button:hover {
    border-color: #888;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Dropdown menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.profile-svg {
    width: 60px;
    height: 60px;
    display: block;
    padding: 0.5rem;
}
.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    text-decoration: none;
    color: #333;
}

.dropdown a:hover {
    background-color: #f0f0f0;
}

/* Footer */

footer {
    background-color: #2e86de;
    color: white;
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 4rem;
    align-items: center; 
}

.footer-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 2rem;
}

@media (max-width: 1350px) {
    footer {
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .footer-images {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
    }
}

footer img {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

footer a {
    color: white;  
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Main section */


h1 {
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000000;
}

h2 {
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

h3 {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
    color:  #2e86de;
}

label {
    /*display: block; */
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    line-height: 1.6;
}

/* The sidebar menu */
.sidebar {
    height: 100%;
    width: 0; /* Hidden by default */
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #1b4f72;
    overflow-x: hidden;
    transition: 0.3s; /* Animation */
    padding-top: 60px;
}

.navbar-left a {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
}
.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: white;
    display: block;
    transition: font-size 0.3s;
    margin-left: 10px;
}

.sidebar h1 {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 15px;
    color: white;
    display: block;
    transition: font-size 0.3s;
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 10px 15px;
    border: none;
  }
  

/* List style */
ul {
    list-style: disc inside;
    padding: 0.5rem;
}

/* Inline table selector */

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 2rem;
  }

.table-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

.table-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}

.table-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.2rem;
    flex-direction: column;
}  

.table-controls select, 
.table-controls input[type=number] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}


/* Side bar */

.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 3rem auto;
    align-items: flex-start;
}

.side-content {
    flex: 1;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 4;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Table style */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

thead {
    background-color: #2e86de;
    color: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

caption {
    caption-side: top;
    text-align: center;
    font-size: 1.5em;
    padding: 10px;
}

.ok-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.3s ease;
    background-color:  #2e86de;
    color: white;
    border: none;
    cursor: pointer;
    height: 42px;
    align-self: center;
}
 
.ok-btn:hover {
    border-color: #888;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
  
.ok-btn:hover {
    background-color: #0056b3;
}

.ok-btn:active {
    transform: scale(0.98);
}

/* Form section */
.submit-btn {
    background-color: #2e86de;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
}

.submit-btn:hover {
    background-color: #1b4f72;
}

   
.form-row {
    display: flex;
    column-gap: 2rem;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}
  
.form-group {
    flex: 1;
    display: flex;
    min-width: 350px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.2rem;
    flex-direction: column;
}

.triple-form-groups .form-group {
    min-width: 200px;
}

@media (max-width: 450px) {
    .form-group {
        min-width: 200px; 
    }
}

form input[type="number"],
form select,
form textarea,
form input[type="text"],
form input[type="email"],
.license-row input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}


/* Toggle password visibility */

.password-field {
    position: relative;
}

/* Botón para mostrar/ocultar */
.toggle-pwd-visibility {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-pwd-visibility:focus {
    outline: 2px solid #005fcc;
    border-radius: 4px;
}

/* Icono: tamaño */
.toggle-pwd-visibility svg {
    width: 20px;
    height: 20px;
    pointer-events: none; /* evitar que svg interfiera con el botón */
}

/* Chrome, Safari, Edge, Opera */
.form-row input[type=number]::-webkit-outer-spin-button,
.form-row input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.yes-no-group {
    display: flex;
    gap: 1rem;
}
  
.yes-no-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    border: 2px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.2s ease;
}
  
.yes-no-btn.selected {
    border-color: #2e86de;
    background-color: #eaf3ff;
    color: #2e86de;
}

.yes-no-btn.invalid {
    border-color: #dc3545;
    background-color: #fdc3c9;
    color: #dc3545;
}

.yes-no-btn:hover {
    background-color: #f0f8ff;
}

.checkbox-group {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.checkbox-group label {
    font-weight: normal;
}



/* Form step */

.form-steps {
    padding-bottom: 18px;
    margin-bottom: 35px;
    border-bottom: 1px solid #DDE3EC;
    
}
.form-steps ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 40px;
    cursor: pointer;
}
.form-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #536387;
    
}

@media (max-width: 1000px) {
    .form-steps li {
        font-size: 0;
    }

    .form-steps li > * {
        font-size: 16px;
    }

    .form-steps ul {
        justify-content: space-between;
        gap: 0;
    }
}

.form-steps li span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DDE3EC;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #536387;
}
.form-steps li.active {
    color: #07074D;;
}
.form-steps li.active span {
    background: #6A64F1;
    color: #FFFFFF;
}

.form-steps li.completed span {
    background: #28a745;
    color: #FFFFFF;
}

.form-steps li.invalid span {
    background: #dc3545;
    color: #FFFFFF;
}

.form-page {
    display: none;
    margin-bottom: 20px;
}

.next-prev-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}