
:root {
  --primary: #2563eb;
  --primary-100: #0f172a;
  --primary-200: #dbeafe;
  --primary-300: #16a34a;
  --primary-400: #dc2626;
  --background: #f8fafc;
  --background-100: #334155;
  --background-200: #475569;
  --font-xs: 10px;
  --font-sm: 12px;
  --font-base: 14px;
  --font-lg: 16px;
  --font-xl: 18px;
  --font-2xl: 20px;
  --font-3xl: 22px;
}

* {
  font-family: 'Calibri', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  max-width: 100vw;
  background-color: var(--background);
  padding: 0;
}


.login-container {
  display: flex;
  /* flex-wrap: nowrap; */
  border: solid 1px rgb(140, 145, 133);
  padding: 10px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* General Styles */

a{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

h2 {
  font-size: var(--font-3xl)
}

h3 {
  font-size: var(--font-2xl)
}

h4 {
  font-size: var(--font-xl)
}

h5 {
  font-size: var(--font-lg)
}

.tittle{
  font-size:var(--font-lg);
  font-weight: bold;
}

b{
  color: var(--primary) !important;
  font-weight: bold;
}

button {
  margin: 0;
  padding: 8px 12px;
  cursor: pointer;
  height: 40px;
  font-size: var(--font-base);
  background-color: var(--primary);
  color: white;
  border-radius: 10px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  column-gap: 5px;
}

button:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.paid-button:hover {
  background-color: var(--primary-300);
}

.unpaid-button:hover {
  background-color: var(--primary-400);
}


/* Sidebar styles */

#sidebar {
  background-color: var(--primary);
  padding: 25px;
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

#company-logo {
    height: auto;
}

#nav-buttons {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

#nav-buttons li {
  list-style-type: none;
  padding: 15px;
  border-radius: 10px;
  font-size: var(--font-xl);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  column-gap: 10px;
}

#nav-buttons li:hover {
  background-color: var(--primary);
}

/* Content styles */

header {
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects-list{
  display: grid;
  grid-template-columns:   repeat(auto-fill, minmax(25%, 1fr));
  /* esto es un valor de prueba por si saless */
  grid-gap: 20px;
  padding: 20px;
}

.line{

  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: space-around
}


.project-card{
  background-color: var(--background-100);
  border-radius: 8px;
  cursor: pointer;
}

.project-card:hover{
  outline: 2px solid var(--primary);
}

.card-header{
  display: flex;
  column-gap: 20px;
  padding: 15px 20px;
  align-items: center;
  justify-content: start;
  border-bottom: 2px solid #3b3c3f;
}
.card-content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  align-items: start;
}
.circle {
  width: 15px; /* Ajusta este tamaño si es necesario */
  height: 15px; /* Ajusta este tamaño si es necesario */
  background-color: red;
  border-radius: 50%;
  display: inline-block;
}

.card-property-spec{
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.card-property {
  display: flex;
  flex-direction: row;
  align-items: center;
  row-gap: 30px;
  justify-content: space-between;
  width: 100%;
}

.create-ids{
  background-color: var(--primary);
}

.create-ids:hover{
  background-color: var(--background);
  border: 2px solid var(--primary);
  border-radius: 10px;
  animation: animacion-borde 3s infinite;
}

@keyframes animacion-borde {
    0%   { border-image: linear-gradient(to right, #5c068c, #ff4800) 1; }
    50%  { border-image: linear-gradient(to right, #ff4800, #5c068c) 1; }
    100% { border-image: linear-gradient(to right, #5c068c, #ff4800) 1; }
}
/* Form Styles */

dialog {
  background-color: transparent; 
  border: none;
	margin: auto;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

form {
  width: 100%; 
  border-radius: 10px; 
  background-color: white;
  color: var(--primary-100);
}

form h2 {
  padding: 20px; 
  border-bottom: 2px solid var(--background-200);
}

form .input-list {
  display: flex; 
  flex-direction: column; 
  padding: 20px; 
  row-gap: 25px;
}

form .form-field-container {

  display: flex;
  flex-direction: row;
  /* align-items: center; */
  justify-content: space-between;
}

.properties-list{
  min-width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns:   repeat(auto-fill, minmax(30%, 1fr));
  /* esto es un valor de prueba por si saless */
  grid-gap: 20px;
  padding: 20px;
}

.properties-list .card-property-spec input {
  width: 90%;
}

.specification-card-content {
  padding: 30px 20px;
  display: none;
  flex-direction: column;
  row-gap: 20px;
  align-items: start;
}



label {
  font-size: var(--font-base);
  margin-bottom: 10px;
  font-weight: 500;
  color: rgba(150,150,150,1);
  display: flex;
  align-items: center;
  column-gap: 5px;
}

input, textarea, select {
  color: white; 
	background-color: var(--background-200);
  padding: 15px; 
  border-radius: 8px; 
  border: none;
  font-size: var(--font-base);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary);
}
/* Project details page */

.page{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dashboard-card {
  background-color: var(--background-100);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

#project-details > .main-page-content {
  display: grid;
  padding: 20px 40px;
  gap: 30px;
  grid-template-columns: 475px 1fr;
  height: 100%;
}



.btn-secondary {
  background-color: transparent; 
  outline: 2px solid #969696; 
  width: 100px; 
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--primary); 
  outline: none;
}

table {
  width: 100%; /* Ajusta esto según necesites */
  border-collapse: separate;
  border-spacing: 0;/* Ajusta el radio del borde según necesites */
  overflow: hidden; /* Esto es necesario para aplicar bordes redondeados */
}

table, th, td {
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Línea fina gris arriba de cada celda */
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 8px; /* Opcional, para mejor legibilidad *//* Cambia el color del borde según necesites */
}


#showDialogBtn {
  background-color: var(--primary);
  color: white;
}

.container {
  display: flex;
  align-content: center;
  height: 100vh;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.container label , .container input {
  justify-content: center;
}

#filterForm label{
  margin: 10px;
  padding: 10px;
  font-weight: bold;
  color: var(--primary-100);
}

#filterForm select  {
  margin: 10px;
  padding: 10px;
}


.item {
  margin: 10px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

/* Media queries */

@media (max-width : 800px){
  
  .projects-list{
    grid-template-columns: repeat(auto-fill, minmax(75%, 1fr))
  }
  
}


@media (min-width : 1500px){
  
  .projects-list{
    grid-template-columns: repeat(auto-fill, minmax(16%, 1fr))
  }
  
}


.table-header:hover{
  cursor: pointer;
}

#clearFiltersBtn:hover {
  background-color: red;
} 

.flash-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 32px 0;
}

.flash-message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: var(--font-sm);
  background: #eef2f7;
  color: var(--primary-100);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.flash-message.success {
  background: #e8f8f4;
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.3);
}

.flash-message.warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.3);
}

.flash-message.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.3);
}
