/*===========================================================================*/
/*==============================keyframes====================================*/
/*===========================================================================*/

@keyframes slide-in-right {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/*=======================================================================*/
/*==============================global===============================*/
/*=======================================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    height: 100vh;
}

#main-content {
    position: absolute;
    top: 100px;
    left: 100px;
    right: 100px;
    bottom: 100px;
    width: calc(100% - 200px);
    height: calc(100% - 200px);
}

.title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

button {
    cursor: pointer;
    border: none;
    background-color: transparent;
}

a {
    color: black;
}

p {
    font-size: 15px;
}


/*===============================Loader===================================*/

@keyframes loader_5191 {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.square {
  background: #000000;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -5px;
}

#sq1 {
  margin-top: -25px;
  margin-left: -25px;
  animation: loader_5191 675ms ease-in-out 0s infinite alternate;
}

#sq2 {
  margin-top: -25px;
  animation: loader_5191 675ms ease-in-out 75ms infinite alternate;
}

#sq3 {
  margin-top: -25px;
  margin-left: 15px;
  animation: loader_5191 675ms ease-in-out 150ms infinite;
}

#sq4 {
  margin-left: -25px;
  animation: loader_5191 675ms ease-in-out 225ms infinite;
}

#sq5 {
  animation: loader_5191 675ms ease-in-out 300ms infinite;
}

#sq6 {
  margin-left: 15px;
  animation: loader_5191 675ms ease-in-out 375ms infinite;
}

#sq7 {
  margin-top: 15px;
  margin-left: -25px;
  animation: loader_5191 675ms ease-in-out 450ms infinite;
}

#sq8 {
  margin-top: 15px;
  animation: loader_5191 675ms ease-in-out 525ms infinite;
}

#sq9 {
  margin-top: 15px;
  margin-left: 15px;
  animation: loader_5191 675ms ease-in-out 600ms infinite;
}


/*=======================================================================*/
/*================================login==============================*/
/*=======================================================================*/
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #f5f5f5;
    position: fixed;
}


#login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    padding: 30px;
    width: 450px;
    border-radius: 20px;
    font-family: "Montserrat", sans-serif;
    position: relative;
}

.logo-form {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: black;
}

::placeholder {
    font-family: "Montserrat", sans-serif;
}

.form button {
    align-self: flex-end;
}

.flex-column>label {
    color: black;
    font-weight: 600;
}

.inputForm {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: 0.2s ease-in-out;
}

.input {
    margin-left: 10px;
    border-radius: 10px;
    border: none;
    width: 85%;
    height: 100%;
}

.input:focus {
    outline: none;
}

.inputForm:focus-within {
    border: 1.5px solid #2d79f3;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.flex-row>div>label {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.span {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
}

.error-message{
    color: red;
    font-size: 15px;
    margin-top: 5px;
    font-weight: 500;

}

.error-message::before {
    content: ". ";
    font-size: 15px;
    margin-top: 5px;
    color: transparent;
}

.button-submit {
    margin: 20px 0 10px 0;
    background-color: #151717;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
}

.button-submit:hover {
    background-color: #252727;
}

.p {
    text-align: center;
    color: black;
    font-size: 14px;
    margin: 5px 0;
}

/*=======================================================================*/
/*==============================header===============================*/
/*=======================================================================*/

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    height: 60px;
    border-bottom: 1px solid #cfcfcf;
    position: fixed;
    top: 0;
    background-color: white;
    z-index: 1000;
}

.logo-header {
    font-size: 24px;
    font-weight: 700;
}

.logo-header a {
    text-decoration: none;
}

.nav-header {
    display: flex;
    gap: 20px;
}

.header-btn {
    font-size: 15px;
    color: black;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s ease-in-out;
}

.header-btn:hover {
    border-bottom: 2px solid #000000;
    transition: border-bottom 0.2s ease-in-out;

}

/*=======================================================================*/
/*==============================aside===============================*/
/*=======================================================================*/

.main-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60px;
    height: 100%;
    background-color: white;
    position: fixed;
    padding-top: 60px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.aside-btn {
    margin: none;
    border: none;
    width: 100%;
    height: 60px;
    background-color: white;
    transition: background-color 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aside-btn:hover {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease-in-out;
}

.aside-btn.active {
    background-color: #f5f5f5;
}

.aside-btn img {
    width: 20px;
    height: 20px;
}

/*=================dropup===========*/

.dropup {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropup-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 60px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
}

.dropup-menu a {
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.2s ease;
    color: black;
    font-size: 15px;
}

.dropup-menu a:hover {
    background-color: #f5f5f5;
}

.dropup-menu button {
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.2s ease;
    color: black;
    background-color: white;
    border: none;
    font-size: 15px;
    width: 100%;
    text-align: left;
}

.dropup-menu button:hover {
    background-color: #f5f5f5;
}

/*====================aside 2nd=================*/

#aside-2nd {
    flex-direction: column;
    width: 150px;
    height: 100%;
    background-color: #fff;
    border-right: 1px solid #cfcfcf;
    position: fixed;
    left: 60px;
    padding-top: 60px;
    z-index: 998;
    animation: slide-in-right 0.2s ease-in-out;
}

#aside-2nd.hidden {
    display: none;
}

#aside-2nd.show {
    display: flex;
}

.aside-btn.sec {
    margin: none;
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
    height: 40px;
    background-color: #fff;
    transition: background-color 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aside-btn.sec:hover {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease-in-out;
}

/*===================================================*/
/*========================home====================*/
/*===================================================*/

#home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.home-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    height: 600px;
}

#typewriter {
    margin-top: 40px;
    width: 50%;
    font-size: 84px;
    font-weight: 700;
    color: black;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%     { opacity: 0; }
}

.home-img-container {
    width: 50%;
    height: auto;
    max-width: 600px;
}

.home-img-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/*=======================================================*/
/*========================smartview====================*/
/*=======================================================*/

.smartview-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smartview-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.add-object-btn {
    background-color: black;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    transition: 0.2s;
    font-weight: 500;
}

.add-object-btn:hover {
    background-color: #252727;
    transition: 0.2s;
}

.info-boxs-smartview {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background-color: #f5f5f5;
    padding: 40px;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 20px;
}

.info-box {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
}

.info-title-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.info-title {
    font-size: 24px;
}

.info-text {
    margin-bottom: 7px;
}

.copy-btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.copy-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/*=========================perso==================*/

.info-boxs-smartview.perso {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colonnes max */
    gap: 20px;
}

/*===================================================*/
/*========================add objects forms====================*/
/*===================================================*/

/* add brick */

#overlayBrick {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#add-brick-box {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

#add-brickPerso-box {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.select {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1.5px solid #ecedec;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 400;
}

/* add network */

#overlayNetwork {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#add-network-box {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/*===================================================*/
/*========================Schémas====================*/
/*===================================================*/

.info-boxs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colonnes max */
    gap: 20px;
    background-color: #f5f5f5;
    padding: 40px;
}

.info-box.schemas {
    flex: 0 1 calc(33.333% - 20px);
    /* 3 par ligne */
}

.info-box.schemas img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
}

.delete-object.schemas {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.delete-object.schemas img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#add-schema-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

/*===================================================*/
/*========================Fichiers====================*/
/*===================================================*/

.explorer {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    padding: 20px;
}

.file-bg {
    padding: 5px;
}

.file-bg.light {
    background-color: white;
}

.file-bg.dark {
    background-color: #e0e0e0;
}

/*===================================================*/
/*========================admin====================*/
/*===================================================*/

#admin-content {
    position: absolute;
    top: 100px;
    left: 100px;
    right: 100px;
    bottom: 100px;
    width: calc(100% - 200px);
    height: calc(100% - 200px);
}

.admin {
    background-color: #f5f5f5;
    padding: 40px;
}

.back-btn {
    background-color: black;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 7px 20px;
    transition: 0.2s;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.back-btn:hover {
    background-color: #252727;
    transition: 0.2s;
}

#admin {
    margin-top: 40px;
}

.admin table {
    width: 100%;
    border-collapse: collapse;
}

.admin th {
    text-align: left;
}

.admin tr {
    border-bottom: 1px solid #ddd;
    height: 40px;
}

.admin tr:hover {
    background-color: #f1f1f1;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.dropdown-toggle img {
    width: 15px;
    height: 15px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu button:hover {
    background-color: #f0f0f0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#add-user-form {
    background-color: transparent;
}

#update-user-form {
    background-color: transparent;
}

/*====================================================*/
/*========================Erreur404====================*/
/*====================================================*/

.erreur404 {
    display: flex;
    height: 100%;
    width: 100%;
    
}

.erreur404 section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 70px;
    width: 100%;
    height: 100%;
    padding: 60px;
}

.erreur404 h1 {
    font-size: 150px;
    font-weight: 900;
}

.erreur404 p {
    font-size: 100px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.erreur404 a {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}