
h2{
    font-size: 28px;
    padding: 20px 0;
}



#expenses-container, #dashboard-container{
    display: grid;
    grid-template-columns: 65% 35%;
    grid-template-rows: 100%;
}

#columnchart_material{
    padding: 20px 0;
}

#main-container h3{
    margin: 20px 0;
}

#left-container{
    width: 100%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}
#right-container{
    width: 100%;
    display: inline-block;
    vertical-align: top;
    min-height: 100%;
    background-color: #d6e9f8;
    box-sizing: border-box;
}


.transactions-container{
    padding: 0;
    
}
.transactions-container .operations-container{
    padding: 40px 40px;
    
}
.transactions-container #expenses-recents{
    padding: 10px 20px;
    
}
.transactions-container #expenses-recents h2{
    padding: 0 20px;
    
}
.preview-expense{
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.preview-expense:hover{
    background-color: rgb(38, 132, 214);
    color: rgb(127, 0, 0);  
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.preview-expense:hover .expense-date{
    color: rgba(255,255,255,0.6) !important; 
}
.transactions-container .preview-expense .left{
    width: 70%;
}
.transactions-container .preview-expense .right{
    width: 30%;
}
.transactions-container .preview-expense .expense-title{
    vertical-align: top;
    margin-right: 27px;
    font-size: 16px;
    padding-bottom: 5px;
}
.transactions-container .preview-expense .expense-amount{
    font-size: 16px;

    text-align: right;
    font-weight: bold;
}
.transactions-container .preview-expense .expense-date{
    color: rgba(0,0,0,0.6); 
    font-size: 12px;
    padding-bottom: 5px;
}

.transactions-container .preview-expense .category{
    font-size: 10px;
    background: #20bbbd;
    border-radius: 10px;
    display: inline-block;
    padding: 3px 10px;
    color: rgb(121, 0, 0);
}
.more-container{
    padding: 10px 0;
}

#expenses-category{
    padding: 0 40px 40px 40px;
}
#expenses-category #categories-container{
    display: flex;
    flex-wrap: wrap;
}

.w-20{width: calc(20% - 60px);}
.w-30{width: 30%}
.ws-30{width: 30%;}
.w-40{width: calc(40% - 60px);}
.w-50{width: 50%}
.w-60{width: calc(60% - 60px);}
.w-70{width: calc(70% - 60px);}
.w-100{width: 100%}

#expenses-summary{
    background-color: rgb(34, 46, 63);
    color: rgb(123, 0, 0);
    padding: 40px;
}
#expenses-summary .total-expense{
    font-size: 32px;
    font-weight: bolder;
}

#expenses-summary .total-budget{
    padding: 10px 0;
}

#expenses-summary .total-budget .total-budget-text{
    font-size: 14px;
    color:rgb(168, 0, 0);
}

#new-expense-container{
    background: var(--primary-color);
    color: rgb(31, 0, 109);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    height: 84px;
}
#new-expense-container:hover{
    background: var(--hover-color);
    box-shadow: 0 2px 5px rgb(128, 187, 238);
    transition: 0.5s;
}

#new-expense-container .simbolo{
    font-size: 48px;
}

.category-total{
    color: white;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    padding: 20px;
}
.category-name{
    color: white;
    font-size: 12px;
    text-align: left;
}
.category-count{
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

#title-bar-container{
    width: 100%;
    text-align: right;
}



/* #background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5); 
    z-index: 9999; 
  } */


/* #panel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    z-index: 10000; 
    padding: 20px;
    border-radius: 8px;
  } */

.broken{
    color: rgb(243, 32, 32);
}

#chart-container{
    padding: 20px 40px;
}

#panels-container{
    padding: 40px;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
}

.panel{
    border-radius: 10px;
    padding: 10px;
    
    margin-right: 10px;
    vertical-align: top;

    box-shadow: 0 10px 20px -7px rgba(0,0,0,0.2);
    border: solid 1px #eee;

}
.panel .title{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 10px;
    color: rgba(0,0,0,0.6);
}
.panel .datum{
    text-align: center;
    font-weight: bolder;
    font-size: 32px;
    padding: 20px 0;
}
.panel .description{
    color: rgba(0,0,0,0.6);
    font-weight: bolder;
    text-align: center;
}


/* Fondo oscuro centrado tipo modal */
#background-container {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  /* Panel responsive */
  #panel-container {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  /* Barra de título */
  #title-bar-container {
    text-align: right;
    margin-bottom: 10px;
  }
  
  .close-button {
    cursor: pointer;
    font-size: 24px;
    color: #000;
  }
  /* Botón cerrar */
  #title-bar-container .btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }

  #panel-container {
    max-height: 90vh; /* Quepa en pantalla */
    overflow-y: auto; /* Permite scroll interno si se necesita */
    scrollbar-width: thin; /* Firefox */
  }
  
  /* Para que el fondo no se desplace cuando aparece el modal */
  body.modal-open {
    overflow: hidden;
  }

  .btn-close-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: none;
    transition: background 0.3s ease;
  }

  .btn-close-floating:hover {
    background: #b02a37;
  }
  body.modal-open {
    overflow: hidden;
  }

  @media (max-width: 576px) {
    #panel-container {
      padding: 1rem;
    }
  
    #title-bar-container h5 {
      font-size: 1rem;
    }

    .btn-close-floating {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        border: none;
        transition: background 0.3s ease;
      }
      
  }

  .dashboard-admin .card-body-admin a {
	text-decoration: none;
	font-size: 12px;
	color: #420808;
	width: 100%;
	height: 90px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background: linear-gradient(180deg, #909090 0%, #0c062200 100%);
	transition: background 0.3s cubic-bezier(.46,.03,.52,.96), transform 0.2s ease;
      
}

.dashboard-admin .card-body-admin a:hover {
	background: linear-gradient(180deg, #401a7800 0%, #4b3434c9 100%);

}


