File "menu.css"
Full Path: C:/wamp64/www/Asistencia_Capacitacion/css/menu.css
File size: 7.93 KB
MIME-type: text/plain
Charset: utf-8
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-image: linear-gradient(to right, #e2e2e2, #ffe5c9);
overflow-x: hidden;
position: relative;
min-height: 100vh;
display: flex;
}
.logo-sidebar {
text-align: center;
padding: 0 15px 20px 15px;
border-bottom: 2px solid rgba(255, 255, 255, 0.3);
margin-bottom: 20px;
}
.logo-sidebar img {
max-width: 180px;
height: auto;
}
.menu-buttons {
display: flex;
flex-direction: column;
gap: 10px;
padding: 0 15px;
}
.menu-button {
display: flex;
align-items: center;
padding: 12px 15px;
background: rgba(255, 255, 255, 0.1);
color: white;
text-decoration: none;
border-radius: 8px;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.menu-button:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateX(5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.button-icon {
width: 30px;
height: 30px;
margin-right: 10px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.button-text {
font-weight: bold;
font-size: 13px;
}
.user-section {
margin-top: auto;
padding: 1px;
position: absolute;
bottom: 0;
width: 100%;
}
.user-info {
color: white;
text-align: center;
margin-bottom: 15px;
}
.logout-btn {
width: 100%;
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 10px;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s;
}
.logout-btn:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Contenido principal */
.main-content {
margin-left: 220px;
padding: 20px;
width: calc(100% - 220px);
}
.dashboard-header {
background: white;
padding: 25px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.dashboard-title {
color: #333;
font-size: 24px;
margin-bottom: 15px;
}
.date-selector {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.date-selector label {
font-weight: bold;
color: #555;
}
.error-message {
background: #ffebee;
color: #c62828;
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
border-left: 4px solid #c62828;
}
.debug-info {
background: #e3f2fd;
color: #1565c0;
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
border-left: 4px solid #1565c0;
font-size: 12px;
}
/* Grid de indicadores */
.indicators-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.indicator-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.indicator-value {
font-size: 32px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.indicator-label {
color: #666;
font-size: 14px;
font-weight: bold;
}
.indicator-trend {
margin-top: 10px;
font-size: 12px;
padding: 3px 8px;
border-radius: 12px;
display: inline-block;
}
.trend-positive {
background: #e8f5e8;
color: #2e7d32;
}
.trend-negative {
background: #ffebee;
color: #c62828;
}
.trend-neutral {
background: #e3f2fd;
color: #1565c0;
}
/* Sección de resumen general */
.general-stats {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.stat-value {
font-size: 24px;
font-weight: bold;
color: #333;
}
.stat-label {
color: #666;
font-size: 12px;
}
/* Footer */
.footer {
margin-top: 40px;
text-align: center;
padding: 20px;
}
.copyright {
display: inline-block;
padding: 10px 25px;
background-color: white;
border: 1px solid #000;
border-radius: 8px;
font-size: 14px;
font-family: Arial, sans-serif;
font-weight: 900;
font-style: italic;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Responsive */
@media (max-width: 768px) {
.sidebar {
width: 70px;
}
.sidebar .button-text {
display: none;
}
.main-content {
margin-left: 70px;
width: calc(100% - 70px);
}
.logo-sidebar img {
max-width: 40px;
}
.user-info {
font-size: 12px;
}
.date-selector {
flex-direction: column;
align-items: flex-start;
}
}
@media (max-width: 480px) {
.indicators-grid {
grid-template-columns: 1fr;
}
.sidebar {
width: 60px;
}
.main-content {
margin-left: 60px;
width: calc(100% - 60px);
padding: 10px;
}
.stats-grid {
grid-template-columns: 1fr;
}
}
/* Animaciones */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.indicator-card {
animation: fadeInUp 0.6s ease forwards;
}
.indicator-card:nth-child(1) { animation-delay: 0.1s; }
.indicator-card:nth-child(2) { animation-delay: 0.2s; }
.indicator-card:nth-child(3) { animation-delay: 0.3s; }
.indicator-card:nth-child(4) { animation-delay: 0.4s; }
.indicator-card:nth-child(5) { animation-delay: 0.5s; }