﻿#form1 {
    font-family: sans-serif;
    font-size: x-small;
}

/* DROPDOWNLIST */
.modern-dropdown {
    padding: 2px; /* Relleno interno */
    border: 1px solid #ccc; /* Borde */
    border-radius: 5px; /* Bordes redondeados */
    background: linear-gradient(135deg, FFFAF 0%, #FFFFFF 100%); /* Color de fondo */
    font-size: 9px; /* Tamaño de fuente */
    color: whitesmoke; /* Color del texto */
    -webkit-appearance: none; /* Elimina estilos por defecto de Chrome/Safari */
    -moz-appearance: none; /* Elimina estilos por defecto de Firefox */
    appearance: none; /* Elimina estilos por defecto de otros navegadores */
    color:black;
}

/* Estilo para las opciones del desplegable (en navegadores que lo soportan) */
    .modern-dropdown option {
        background-color: #FFFAFA;
        color: black;
    }

    /* Estilo para las opciones cuando están seleccionadas */
        .modern-dropdown option:checked {
            background-color: #D9D9D9;
            color: black;
        }

/* Estilo para el ícono de flecha (usando un pseudo-elemento) */
.modern-dropdown::after {
    content: '\25BC'; /* Código de la flecha hacia abajo */
    position: absolute;
    top: 10px;
    right: 10px;
    pointer-events: none;
    color: black;
}

    .modern-dropdown:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: #cccccc;
        color: #666666;
        border: 1px solid #aaaaaa;
    }


/* ---- DROPDOWNLIST ---- */


/* TEXTBOX */
.modern-input {
    font-family: sans-serif;
    border: 1px solid #e1e5ee;
    border-radius: 5px;
    background: linear-gradient(135deg, FFFAF 0%, #FFFFFF 100%); /* Color de fondo */
    font-size: 10px; /* Tamaño de fuente */
    color: whitesmoke; /* Color del texto */
    -webkit-appearance: none; /* Elimina estilos por defecto de Chrome/Safari */
    -moz-appearance: none; /* Elimina estilos por defecto de Firefox */
    appearance: none; /* Elimina estilos por defecto de otros navegadores */
    color:black;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modern-input:focus {
    border-color: #3a86ff;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #a0a4b8;
}

.modern-input:hover {
    border-color: #b0b3c2;
}

.modern-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #aaaaaa;
}

/* ---- TEXTBOX --------- */

/* ---- TABLA --------- */


.modern-table-title {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
    font-family: sans-serif;
    min-width: 100px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
	font-weight: bold;
	text-align:center;
	background: linear-gradient(145deg, #B5C7D6, #e4effa);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2px 0;
    font-size: 9px;
    font-family: sans-serif;
    min-width: 100px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    border-bottom-style: none !important;
}

.modern-table thead tr {
    background-color: #EDCD9D;
    color: #ffffff;
    text-align: left;
    
}

.modern-table th{
	padding: 2px 5px;
	background:  #B5C7D6;
	font-weight: bold;
}
.modern-table td {
    padding: 2px 5px;
	background: #e4effa;
}
/*
.modern-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.modern-table tbody tr:last-of-type {
    border-bottom: 2px solid #3a86ff;
}

.modern-table tbody tr:hover {
    background-color: #f1f1f1;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

*/

/* ---- TABLA --------- */

/*  CHECKBOX  */

.modern-check {
  appearance: none;
  font-family: sans-serif;
  border-radius: 10px 10px 0 0;
  font-size: 9px;
}
.modern-check:checked {
  background-position: 0 0;
} 



/* ---- CHECKBOX --------- */

/* ---- Boton --------- */
.modern-buttonForm {
    background: linear-gradient(145deg, #B5C7D6, #e4effa);
    border: none;
    border-radius: 30px;
    color: black;
    padding: 2px 3px;
    text-align: center;
    text-decoration: none;
    font-family: sans-serif;
    display: inline-block;
    font-size: 10px;
    margin: 4px 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(0,0,0,0.2);
}

.modern-buttonForm:hover {
    background: linear-gradient(145deg, #B5C7D6, #e4effa);
    box-shadow: 0 6px 20px 0 rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.modern-buttonForm:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px 0 rgba(0,0,0,0.2);
}

.modern-buttonForm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #aaaaaa;
}

/* ---- boton --------- */

/*   HIPPERLINK */



.modern-link {
  display: inline-block;
  color: #2563eb; /* Azul moderno */
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.modern-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

.modern-link:hover {
  color: #1e40af; /* Azul más oscuro */
}

.modern-link:hover::after {
  width: 100%;
}


/*  ------  HIPPERLINK ---- */


/*  ------  GRIDVIEW ---- */


.grid-actions {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none !important;
}

    .grid-actions th {
        padding: 5px 5px;
        background: #B5C7D6;
        font-weight: bold;
        font-size: 9px;
        border: none;
        text-align: center;
        text-decoration: none !important;
    }
    .grid-actions th a {
        text-decoration: none;
        color: black;
    }

    .grid-actions th a:hover {
        text-decoration: underline;
        color: blue;
    }

.grid-actions td {
    padding: 5px 5px;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    border:none;
}

.grid-actions tr:nth-child(even) {
    background-color: #e4effa;
}

    .grid-actions tr:hover td {
        background-color: #B5C7D6;
    }

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-edit, .btn-delete, .btn-view {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 9px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-edit {
    background: #ffc107;
    color: white;
}

.btn-edit:hover {
background: #e0a800;
transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: translateY(-2px);
}



/*  ------  GRIDVIEW ---- */