/*========= Importando hojas de estilo =========*/
/* Bootstrap 3.3.7 */
@import url('./bootstrap.min.css');
/* Material desing for Bootstrap */
@import url('./bootstrap-material-design.min.css');
@import url('./ripples.min.css');
/* Sweet Alert 2 */
@import url('./sweetalert2.css');
/* Material Design Iconic Font 2.2.0 */
@import url('./material-design-iconic-font.min.css');
/* trumbowyg */
@import url('./trumbowyg.min.css');
/*============ Fonts */
@font-face {
    font-family: 'RobotoCondensedLight';
    src: url('../fonts/robotocondensed-light.eot');
    src: url('../fonts/robotocondensed-light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/robotocondensed-light.woff2') format('woff2'),
         url('../fonts/robotocondensed-light.woff') format('woff'),
         url('../fonts/robotocondensed-light.ttf') format('truetype'),
         url('../fonts/robotocondensed-light.svg#roboto_condensedlight') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/robotocondensed-regular.eot');
    src: url('../fonts/robotocondensed-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/robotocondensed-regular.woff2') format('woff2'),
         url('../fonts/robotocondensed-regular.woff') format('woff'),
         url('../fonts/robotocondensed-regular.ttf') format('truetype'),
         url('../fonts/robotocondensed-regular.svg#roboto_condensedregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
/*============ Estilos generales*/
body, html{
	background-color: #fff;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	font-size: 16px;
	font-family: 'RobotoCondensed';
	overflow: hidden;
}
.full-box{
	margin: 0;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}
.cover{
	background: 50% 50% no-repeat;
	background-size: cover;
}
.text-titles{
	font-family: 'RobotoCondensedLight'
}
/*============ LogIn*/
.logInForm{
	position: absolute;
	color: #fff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 300px;
	padding: 15px;
	border-radius: 5px;
	background-color: rgba(3,169,244,.8);
}
.containerLogin{
	height: 100%;
	background-image: url(../assets/img/login-font.jpg);
}
.logInForm p,
.logInForm label{
	color: #FFF;
}
/*============ Partes del dashboard*/
.dashboard-sideBar,
.dashboard-contentPage{
	position: absolute;
	top: 0;
	height: 100%;
	transition: all .3s ease-in-out;
}
/*sideBar*/
.dashboard-sideBar,
.dashboard-sideBar-ct{
	width: 270px;
}
.dashboard-sideBar{
	left: 0;
	z-index: 2;
	border-right: 1px solid rgba(255, 255, 255, .4);
	overflow: hidden;
}
.dashboard-sideBar-ct{
	position: relative;
	height: 100%;
	background-color: #0288d1;
	padding: 0 10px;
	padding-bottom: 30px;
	overflow-y: scroll;
	scrollbar-color: rgba(0,0,0,.2) #0288d1;
	scrollbar-width: thin;
}
.dashboard-sideBar-title,
.dashboard-sideBar-title > i{
	height: 50px;
	line-height: 50px;
	color: #fff;
	font-size: 20px;
}
.dashboard-sideBar-title{
	position: relative;
}
.dashboard-sideBar-title > i{
	position: absolute;
	top: 0;
	left: 0;
	cursor: pointer;
	width: 40px;
}
.dashboard-sideBar-UserInfo{
	border-top: 1px solid rgba(255, 255, 255, .3);
	border-bottom: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	font-size: 14px;
	padding: 20px 0;
}
.dashboard-sideBar-UserInfo figure img{
	width: 200px;
	height: 200px;
	border-radius: 100%;
	display: block;
	margin: 0 auto;
}
.dashboard-sideBar-UserInfo ul{
	margin-top: 15px;
}
.dashboard-sideBar-UserInfo ul > li,
.dashboard-sideBar-UserInfo ul > li > a{
	display: inline-block;
	color: #fff;
}
.dashboard-sideBar-UserInfo ul > li > a{
	outline: none;
	font-size: 20px;
	padding: 7px;
	transition: all .3s ease-in-out;
}
.dashboard-sideBar-UserInfo ul > li > a:hover{
	color: #FFF22A;
}
.dashboard-sideBar-Menu{
	padding-top: 15px;
}
.dashboard-sideBar-Menu > li,
.dashboard-sideBar-Menu > li > a,
.dashboard-sideBar-Menu > li > ul > li,
.dashboard-sideBar-Menu > li > ul > li > a{
	line-height: 50px;
	font-family: "RobotoCondensedLight";
	display: block;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: all .3s ease-in-out;
	position: relative;
}
.dashboard-sideBar-Menu > li > a > i.zmdi-caret-down{
	line-height: 50px;
	transition: all .3s ease-in-out; 
}
.dashboard-sideBar-Menu > li > a{
	padding: 0 15px;
	box-sizing: border-box;
	height: 50px;
	outline: none;
}
.dashboard-sideBar-Menu > li > a:hover{
	background-color: rgba(255, 255, 255, .1);
}
.dashboard-sideBar-Menu > li > ul{
	position: relative;
	padding-top: 7px;
	height: 0;
	overflow: hidden;
}
.show-sideBar-SubMenu{
	height: auto !important;
	overflow: auto !important;
}
.dashboard-sideBar-Menu > li > ul > li,
.dashboard-sideBar-Menu > li > ul > li > a{
	height: 40px;
	line-height: 40px;
	border-radius: 0;
}
.dashboard-sideBar-Menu > li > ul > li{
	padding-left: 27px;
}
.dashboard-sideBar-Menu > li > ul > li > a{
	border-left: 3px solid transparent;
	outline: none;
}
.dashboard-sideBar-Menu > li > ul > li > a:hover{
	border-left: 3px solid #fff;
}
/*contentPage*/
.dashboard-contentPage{
	right: 0;
	z-index: 1;
	padding-left: 270px;
	overflow-y: scroll;
	scrollbar-color: rgba(0,0,0,.2) #FFF;
	scrollbar-width: thin;
}
.dashboard-Navbar,
.dashboard-Navbar > ul,
.dashboard-Navbar > ul >li,
.dashboard-Navbar > ul > li > a{
	height: 50px;
	line-height: 50px;
}
.dashboard-Navbar > ul > li > a{
	outline: none;
}
.dashboard-Navbar{
	background-color: #0288d1;
	overflow: hidden;
	padding-right: 7px;
}
.dashboard-Navbar > ul >li,
.dashboard-Navbar > ul > li > a{
	display: inline-block;
	width: 50px;
	text-align: center;
	color: #fff;
	margin: 0;
	padding: 0;
	font-size: 20px;
	transition: all .3s ease-in-out;
	position: relative;
}
.dashboard-Navbar > ul > li > a:hover{
	background-color: rgba(255, 255, 255, .1);
}
/*============ Estilos home*/
.tile{
	max-width: 300px;
	height: 180px;
	background-color: #fff;
	color: rgba(43, 174, 168, 1);
	position: relative;
	display: inline-block;
	box-shadow: 0 1px 7px rgba(0, 0, 0, .2);
	overflow: hidden;
	cursor: pointer;
	margin: 10px;
}
.tile:hover > .tile-icon > i,
.tile:hover > .tile-number{
	color: rgba(43, 174, 168, 1);
}
.tile-title,
.tile-icon,
.tile-number{
	position: absolute;
}
.tile-title{
	height: 40px;
	line-height: 40px;
	font-size: 20px;
	background-color: rgb(43, 174, 168);
	color: #fff;
	top: 0;
	left: 0;
}
.tile-icon,
.tile-number{
	bottom: 0;
	height: 140px;
	width: 150px;
}
.tile-icon{
	left: 0;
}
.tile-icon > i{
	line-height: 140px;
	font-size: 117px;
}
.tile-icon > i,
.tile-number{
	color: rgba(43, 174, 168, .4);
	transition: all .3s ease-in-out;
}
.tile-number{
	right: 0;
	user-select: none;
	user-select: none;
	user-select: none;
}
.tile-number > p{
	font-size: 70px;
}
.tile-number > small{
	font-size: 17px;
}
/*TimeLine*/
.cd-container {
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
}
.cd-container::after {
  content: '';
  display: table;
  clear: both;
}
#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  margin-bottom: 2em;
}
#cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #d7e4ed;
}
.cd-timeline-block {
  position: relative;
  margin: 2em 0;
}
.cd-timeline-block::after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-block:first-child {
  margin-top: 0;
}
.cd-timeline-block:last-child {
  margin-bottom: 0;
}
.cd-timeline-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,.09);
}
.cd-timeline-img img {
  display: block;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
}
.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  border-radius: 0.25em;
  padding: 1em;
  background-color: #01579B;
  color: #fff;
}
.cd-timeline-content::after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-content .cd-date {
  display: inline-block;
}
.cd-timeline-content p {
  margin: 1em 0;
  line-height: 1.6;
}
.cd-timeline-content .cd-date {
  float: left;
  padding: .8em 0;
}
.cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #01579B;
}
@media (min-width: 1200px) {
    #cd-timeline {
        margin-top: 3em;
        margin-bottom: 3em;
    }
    #cd-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
    .cd-timeline-block {
        margin: 4em 0;
    }
    .cd-timeline-block:first-child {
        margin-top: 0;
    }
    .cd-timeline-block:last-child {
        margin-bottom: 0;
    }
    .cd-timeline-img {
        width: 60px;
        height: 60px;
        left: 50%;
        margin-left: -30px;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    .cd-timeline-img img{
        width: 60px;
        height: 60px;
    }
    .cd-timeline-content .cd-date {
        color: #01579B;
    }
    .cd-timeline-content {
        margin-left: 0;
        width: 45%;
    }
  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #01579B;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 16px;
    font-size: 1rem;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #01579B;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
}

/*======= VIDEO RSPONSIVES*/
.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
	width: 90%;
	display: block;
	margin: 0 auto;
}
.videoWrapper iframe,
.videoWrapper object,
.videoWrapper embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
/*======= MEDIA QUERIES*/
@media (max-width: 767px){
	.dashboard-sideBar{
		width: 100%;
		z-index: 99;
		background-image: none;
		background-color: transparent;
		border-right: none;
		opacity: 0;
		pointer-events: none;
		overflow: hidden;
	}
	.dashboard-sideBar-ct,
	.dashboard-sideBar-bg{
		position: absolute;
		top: 0;
		left: 0;
	}
	.dashboard-sideBar-ct{
		border-right: 1px solid rgba(255, 255, 255, .3);
		z-index: 3;
		max-width: 270px;
		width: 100%;
		transition: all .3s ease-in-out;
		transform: translateX(-270px);
	}
	.dashboard-sideBar-bg{
		height: 100%;
		background-color: rgba(0, 0, 0, .6);
		z-index: 2;
	}
	.dashboard-contentPage{
		padding-left: 0;
	}
	.show-sidebar{
		pointer-events: auto !important;
		opacity: 1 !important;
	}
	.show-sidebar > .dashboard-sideBar-ct{
		transform: translateX(0) !important;
	}
}
@media (min-width: 768px) and (max-width: 991px){
	.hide-sidebar{
		pointer-events: none;
		opacity: 0;
		border-right: none;
		transform: translateX(-270px);
	}
	.no-paddin-left{
		padding-left: 0;
	}
}
@media (min-width: 992px) and (max-width: 1199px){
	.hide-sidebar{
		pointer-events: none;
		opacity: 0;
		border-right: none;
		transform: translateX(-270px);
	}
	.no-paddin-left{
		padding-left: 0;
	}
}
@media (min-width: 1200px){
	.hide-sidebar{
		pointer-events: none;
		opacity: 0;
		border-right: none;
		transform: translateX(-270px);
	}
	.no-paddin-left{
		padding-left: 0;
	}
}
/* Comentarios del profesor: encabezado ubicado debajo de Documento adjunto */
.professor-comments-heading-bottom{margin-top:18px;margin-bottom:12px;align-items:center}
.professor-comments-heading-bottom .class-interaction-title{margin-bottom:4px;font-size:22px}
.professor-comments-heading-bottom p{margin:0;font-size:15px}

/* =========================================================
   ADMINISTRADORES - interfaz moderna v2
   ========================================================= */
.admin-modern-page { padding-bottom: 20px; }
.admin-modern-page .page-header { border:0; margin:8px 0 16px; padding:0; }
.admin-modern-page .page-header h1 { margin:0; font-size:28px; font-weight:700; letter-spacing:-.3px; color:#172033; }
.admin-modern-page .page-header h1 .zmdi { color:#1976d2; }

.admin-hero {
    display:flex; align-items:center; gap:16px; padding:20px 22px; margin:0 0 20px;
    border:1px solid #e6eaf0; border-radius:16px;
    background:linear-gradient(135deg,#fff 0%,#f6f9ff 100%);
    box-shadow:0 5px 20px rgba(16,24,40,.06);
}
.admin-hero-icon {
    flex:0 0 54px; width:54px; height:54px; display:flex; align-items:center;
    justify-content:center; border-radius:14px; background:#eaf2ff; color:#1769d2; font-size:27px;
}
.admin-hero-kicker { margin-bottom:3px; font-size:11px; font-weight:700; letter-spacing:1px; color:#667085; }
.admin-hero-title { color:#172033; font-size:20px; font-weight:700; line-height:1.25; }
.admin-hero-text { margin-top:4px; color:#667085; font-size:14px; line-height:1.5; }

.admin-modern-tabs { display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:0 0 24px; list-style:none; }
.admin-modern-tabs li { margin:0 !important; padding:0 !important; }
.admin-modern-tabs a.admin-action-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:116px;
    border-radius:11px !important; padding:11px 19px !important; font-weight:700; font-size:14px;
    text-decoration:none; border:1px solid transparent; box-shadow:0 4px 12px rgba(16,24,40,.08);
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.admin-modern-tabs a.admin-action-btn .zmdi { font-size:18px; }
.admin-modern-tabs a.admin-action-btn:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(16,24,40,.13); text-decoration:none; }
.admin-modern-tabs a.admin-action-btn.primary { background:linear-gradient(135deg,#1976d2,#1565c0) !important; color:#fff !important; }
.admin-modern-tabs a.admin-action-btn.secondary { background:#fff !important; color:#344054 !important; border-color:#d9dee7; }
.admin-modern-tabs a.admin-action-btn.secondary:hover { background:#f8fafc !important; color:#175cd3 !important; }

.admin-modern-card {
    border:1px solid #e8ebf0 !important; border-radius:17px !important; overflow:hidden;
    box-shadow:0 8px 30px rgba(16,24,40,.08) !important; background:#fff;
}
.admin-modern-card .panel-heading {
    display:flex; align-items:center; min-height:64px;
    background:linear-gradient(135deg,#1976d2,#1559a6) !important; border:0 !important; padding:16px 22px !important;
}
.admin-modern-card .panel-title { font-size:17px; font-weight:700; color:#fff; }
.admin-modern-card .panel-title .zmdi { margin-right:7px; }
.admin-modern-card .panel-body { padding:24px !important; }

.admin-modern-form fieldset { border:0; padding:0; margin:0 0 22px; }
.admin-modern-form legend {
    width:100%; border:0; padding:0 0 11px; margin:0 0 14px; color:#27364b;
    font-size:17px; font-weight:700; border-bottom:1px solid #edf0f4;
}
.admin-modern-form legend .zmdi { color:#1976d2; margin-right:7px; }
.admin-modern-form .form-group { margin-bottom:22px; }
.admin-modern-form .form-control {
    border-radius:10px; border:1px solid #d5dbe5; min-height:44px; padding:10px 13px;
    background:#fff; box-shadow:none; transition:border-color .18s,box-shadow .18s,background .18s;
}
.admin-modern-form .form-control:hover { border-color:#b9c2d0; }
.admin-modern-form .form-control:focus { border-color:#1976d2; background:#fbfdff; box-shadow:0 0 0 3px rgba(25,118,210,.12); }
.admin-modern-form .control-label { color:#667085; font-weight:600; }
.admin-modern-form .admin-save-btn {
    border-radius:11px !important; padding:12px 26px !important; font-size:14px; font-weight:700;
    box-shadow:0 5px 14px rgba(25,118,210,.22); transition:transform .18s,box-shadow .18s;
}
.admin-modern-form .admin-save-btn:hover { transform:translateY(-1px); box-shadow:0 8px 18px rgba(25,118,210,.27); }

.admin-modern-table-wrap { overflow-x:auto; }
.admin-modern-table { margin-bottom:0 !important; border-collapse:separate !important; border-spacing:0; min-width:820px; }
.admin-modern-table thead th {
    background:#f7f9fc; color:#667085; font-size:11px; text-transform:uppercase; letter-spacing:.65px;
    font-weight:700; padding:14px 12px !important; border-bottom:1px solid #e7eaf0 !important;
}
.admin-modern-table tbody td {
    padding:14px 12px !important; vertical-align:middle !important; border-top:1px solid #f0f2f5 !important;
    color:#344054; font-size:14px;
}
.admin-modern-table tbody tr { transition:background .15s ease; }
.admin-modern-table tbody tr:hover { background:#f8fbff; }
.admin-modern-table .admin-number { font-weight:700; color:#98a2b3; }
.admin-modern-table .admin-name { font-weight:700; color:#1d2939; }
.admin-person { display:inline-flex; align-items:center; gap:9px; }
.admin-avatar {
    width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center;
    border-radius:50%; background:#edf4ff; color:#1769d2; font-size:16px;
}
.admin-data-cell { color:#475467; }
.admin-dni-badge {
    display:inline-block; padding:6px 10px; border-radius:8px;
    background:#eef6ff; color:#1769d2; border:1px solid #d7e8ff;
    font-size:12px; font-weight:700; letter-spacing:.25px;
}
.admin-career-badge {
    display:inline-block; max-width:220px; padding:6px 10px; border-radius:8px;
    background:#f2f4f7; color:#475467; font-size:12px; font-weight:600;
}
.admin-modern-table .admin-actions {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    min-width:230px;
}
.admin-modern-table .admin-mini-btn {
    position:relative;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:44px;
    height:38px;
    padding:0 13px !important;
    margin:0 !important;
    border-radius:999px !important;
    border:1px solid #e4e7ec !important;
    background:#fff !important;
    box-shadow:0 1px 3px rgba(16,24,40,.05) !important;
    text-decoration:none !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:1 !important;
    transition:all .2s ease !important;
    overflow:hidden;
}
.admin-modern-table .admin-mini-btn:before {
    content:"";
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .2s ease;
    pointer-events:none;
}
.admin-modern-table .admin-mini-btn .zmdi {
    position:relative;
    z-index:1;
    margin:0 !important;
    font-size:17px !important;
    transition:transform .2s ease;
}
.admin-modern-table .admin-action-text {
    position:relative;
    z-index:1;
    display:none;
}
.admin-modern-table .admin-mini-btn:hover {
    transform:translateY(-2px);
    box-shadow:0 7px 16px rgba(16,24,40,.11) !important;
    text-decoration:none !important;
}
.admin-modern-table .admin-mini-btn:hover .zmdi {
    transform:scale(1.08);
}
.admin-modern-table .admin-mini-btn:active {
    transform:translateY(0);
    box-shadow:0 2px 5px rgba(16,24,40,.08) !important;
}

/* Editar — azul limpio */
.admin-modern-table .admin-edit {
    color:#2563eb !important;
    border-color:#cfe0ff !important;
    background:#f8fbff !important;
}
.admin-modern-table .admin-edit:before {
    background:linear-gradient(135deg,#eaf2ff,#dceaff);
}
.admin-modern-table .admin-edit:hover {
    border-color:#9fc0ff !important;
    background:#edf5ff !important;
}

/* Cuenta — verde */
.admin-modern-table .admin-account {
    color:#138a5b !important;
    border-color:#ccebdc !important;
    background:#f8fdf9 !important;
}
.admin-modern-table .admin-account:before {
    background:linear-gradient(135deg,#eafbf1,#def5e8);
}
.admin-modern-table .admin-account:hover {
    border-color:#9ed8ba !important;
    background:#edfaf2 !important;
}

/* Eliminar — rojo discreto */
.admin-modern-table .admin-delete {
    color:#d14343 !important;
    border-color:#f0d1d1 !important;
    background:#fffafa !important;
}
.admin-modern-table .admin-delete:before {
    background:linear-gradient(135deg,#fff1f1,#ffe7e7);
}
.admin-modern-table .admin-delete:hover {
    border-color:#e8b0b0 !important;
    background:#fff0f0 !important;
}
.admin-modern-table .admin-mini-btn:focus {
    outline:0 !important;
    box-shadow:0 0 0 3px rgba(25,118,210,.11),0 4px 10px rgba(16,24,40,.08) !important;
}

@media (min-width:768px) {
    .admin-modern-table .admin-action-text { display:inline; }
    .admin-modern-table .admin-mini-btn { min-width:0; padding:0 14px !important; }
}
@media (max-width:767px) {
    .admin-modern-page .page-header h1 { font-size:23px; }
    .admin-hero { align-items:flex-start; padding:17px; }
    .admin-hero-icon { flex-basis:46px; width:46px; height:46px; font-size:22px; }
    .admin-hero-title { font-size:18px; }
    .admin-modern-card .panel-body { padding:16px !important; }
    .admin-modern-tabs { gap:8px; }
    .admin-modern-tabs a.admin-action-btn { flex:1; min-width:0; }
}

/* Administradores: mismos botones nativos del módulo Alumno */
.admin-modern-table .admin-actions {
    display:table-cell;
    min-width:0;
    white-space:nowrap;
}
.admin-modern-table .admin-actions .btn.btn-success,
.admin-modern-table .admin-actions .btn.btn-danger {
    display:inline-block !important;
    position:static !important;
    min-width:0 !important;
    width:auto !important;
    height:auto !important;
    margin:2px 1px !important;
    padding:8px 10px !important;
    border-radius:2px !important;
    border:0 !important;
    box-shadow:none !important;
    font-size:12px !important;
    line-height:1.42857143 !important;
    font-weight:400 !important;
    transform:none !important;
    background-image:none !important;
    overflow:visible !important;
}
.admin-modern-table .admin-actions .btn.btn-success .zmdi,
.admin-modern-table .admin-actions .btn.btn-danger .zmdi {
    font-size:16px !important;
    transform:none !important;
}
.admin-modern-table .admin-actions .btn.btn-success:hover,
.admin-modern-table .admin-actions .btn.btn-danger:hover {
    transform:none !important;
    box-shadow:none !important;
    filter:none !important;
}

/* =========================================================
   TEMA GLOBAL DE BOTONES - TODOS LOS USUARIOS
   Profesor / Alumno / Administrador
   ========================================================= */
:root{
    --btn-primary-1:#1976d2;
    --btn-primary-2:#1565c0;
    --btn-primary-hover-1:#1e88e5;
    --btn-primary-hover-2:#0d47a1;
    --btn-danger-1:#e53935;
    --btn-danger-2:#c62828;
    --btn-success-1:#2e9d67;
    --btn-success-2:#237b50;
    --btn-warning-1:#f4a62a;
    --btn-warning-2:#dc8a10;
    --btn-neutral-1:#607d8b;
    --btn-neutral-2:#455a64;
    --btn-text:#fff;
    --btn-radius:10px;
}

/* Estructura común para botones nativos y personalizados */
body .btn,
body a[class*="btn"],
body button[class*="btn"],
body input[type="button"][class*="btn"],
body input[type="submit"][class*="btn"],
body input[type="reset"][class*="btn"],
body .btn-modern,
body .task-btn,
body .task-clear-button,
body .task-modal-close-button,
body .teacher-replace-btn,
body .universal-comment-btn,
body .teacher-comment-btn,
body .comment-attach-btn,
body .comment-delete-btn,
body .comment-delete-reply-btn,
body .comment-edit-reply-btn,
body .comment-reply-btn,
body .comment-reply-cancel-btn,
body .student-reply-btn,
body .class-download-btn,
body .comment-task-download-btn,
body .comment-task-view-btn,
body .task-choose-btn,
body .teacher-btn-view,
body .teacher-btn-edit,
body .teacher-close-courses-btn,
body .new-class-btn,
body .btn-view-class,
body .slider-btn,
body .admin-action-btn,
body .admin-delete-btn,
body .admin-edit-btn,
body .admin-view-btn,
body .admin-replace-btn,
body .admin-save-btn{
    border-radius:var(--btn-radius) !important;
    font-family:'RobotoCondensed',Arial,sans-serif !important;
    font-weight:700 !important;
    letter-spacing:.1px;
    min-height:40px;
    padding:9px 16px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid transparent !important;
    text-decoration:none !important;
    cursor:pointer;
    outline:none !important;
    transition:background .18s ease,color .18s ease,border-color .18s ease,
               box-shadow .18s ease,transform .18s ease,filter .18s ease !important;
    box-sizing:border-box;
    vertical-align:middle;
    -webkit-tap-highlight-color:transparent;
}

/* Botón estándar: azul del sistema */
body .btn:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-light):not(.btn-dark):not(.btn-link),
body a.btn-info,
body a.btn-primary,
body button.btn-info,
body button.btn-primary,
body input.btn-info,
body input.btn-primary,
body .btn-modern,
body .task-btn,
body .teacher-btn-view,
body .teacher-btn-edit,
body .teacher-comment-btn,
body .teacher-replace-btn,
body .universal-comment-btn,
body .comment-attach-btn,
body .comment-reply-btn,
body .student-reply-btn,
body .class-download-btn,
body .comment-task-view-btn,
body .task-choose-btn,
body .new-class-btn,
body .btn-view-class,
body .slider-btn,
body .admin-action-btn.primary,
body .admin-view-btn,
body .admin-replace-btn,
body .admin-save-btn{
    color:var(--btn-text) !important;
    background:linear-gradient(135deg,var(--btn-primary-hover-1),var(--btn-primary-2)) !important;
    border-color:var(--btn-primary-2) !important;
    box-shadow:0 5px 13px rgba(25,118,210,.20) !important;
}

/* Estados hover/focus comunes */
body .btn:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-light):not(.btn-dark):not(.btn-link):hover,
body .btn:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-light):not(.btn-dark):not(.btn-link):focus,
body a[class*="btn"]:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-light):not(.btn-dark):not(.btn-link):hover,
body button[class*="btn"]:not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-secondary):not(.btn-light):not(.btn-dark):not(.btn-link):hover,
body .btn-modern:hover,
body .task-btn:hover,
body .teacher-btn-view:hover,
body .teacher-btn-edit:hover,
body .teacher-comment-btn:hover,
body .teacher-replace-btn:hover,
body .universal-comment-btn:hover,
body .comment-attach-btn:hover,
body .comment-reply-btn:hover,
body .student-reply-btn:hover,
body .class-download-btn:hover,
body .comment-task-view-btn:hover,
body .task-choose-btn:hover,
body .new-class-btn:hover,
body .btn-view-class:hover,
body .slider-btn:hover,
body .admin-action-btn.primary:hover,
body .admin-view-btn:hover,
body .admin-replace-btn:hover,
body .admin-save-btn:hover{
    color:#fff !important;
    background:linear-gradient(135deg,var(--btn-primary-1),var(--btn-primary-hover-2)) !important;
    border-color:var(--btn-primary-hover-2) !important;
    transform:translateY(-2px);
    box-shadow:0 9px 20px rgba(25,118,210,.29) !important;
    filter:saturate(1.05);
}

body .btn:active,
body a[class*="btn"]:active,
body button[class*="btn"]:active,
body .btn-modern:active,
body .task-btn:active{
    transform:translateY(0) scale(.98) !important;
    box-shadow:0 3px 8px rgba(15,23,42,.16) !important;
}

body .btn:focus-visible,
body a[class*="btn"]:focus-visible,
body button[class*="btn"]:focus-visible,
body .btn-modern:focus-visible,
body .task-btn:focus-visible{
    box-shadow:0 0 0 3px rgba(25,118,210,.18),0 6px 14px rgba(15,23,42,.12) !important;
}

/* Tamaños Bootstrap conservados, aspecto unificado */
body .btn-xs{min-height:32px !important;padding:6px 10px !important;font-size:12px !important;border-radius:8px !important;}
body .btn-sm{min-height:36px !important;padding:8px 12px !important;font-size:13px !important;border-radius:9px !important;}
body .btn-lg{min-height:46px !important;padding:11px 20px !important;font-size:16px !important;border-radius:12px !important;}
body .btn-block{width:100%;}

/* Éxito */
body .btn-success,
body .admin-modern-table .admin-actions .btn.btn-success{
    color:#fff !important;
    background:linear-gradient(135deg,var(--btn-success-1),var(--btn-success-2)) !important;
    border-color:var(--btn-success-2) !important;
    box-shadow:0 5px 13px rgba(46,157,103,.20) !important;
}
body .btn-success:hover,
body .admin-modern-table .admin-actions .btn.btn-success:hover{
    color:#fff !important;
    background:linear-gradient(135deg,#38ad75,#1f744a) !important;
    border-color:#1f744a !important;
    transform:translateY(-2px) !important;
    box-shadow:0 9px 20px rgba(46,157,103,.29) !important;
}

/* Peligro / eliminar */
body .btn-danger,
body .admin-modern-table .admin-actions .btn.btn-danger,
body .comment-delete-btn,
body .comment-delete-reply-btn,
body .admin-delete-btn{
    color:#fff !important;
    background:linear-gradient(135deg,var(--btn-danger-1),var(--btn-danger-2)) !important;
    border-color:var(--btn-danger-2) !important;
    box-shadow:0 5px 13px rgba(229,57,53,.20) !important;
}
body .btn-danger:hover,
body .admin-modern-table .admin-actions .btn.btn-danger:hover,
body .comment-delete-btn:hover,
body .comment-delete-reply-btn:hover,
body .admin-delete-btn:hover{
    color:#fff !important;
    background:linear-gradient(135deg,#ef5350,#b71c1c) !important;
    border-color:#b71c1c !important;
    transform:translateY(-2px) !important;
    box-shadow:0 9px 20px rgba(229,57,53,.30) !important;
}

/* Advertencia */
body .btn-warning,
body button.btn-warning,
body a.btn-warning{
    color:#fff !important;
    background:linear-gradient(135deg,var(--btn-warning-1),var(--btn-warning-2)) !important;
    border-color:var(--btn-warning-2) !important;
    box-shadow:0 5px 13px rgba(244,166,42,.20) !important;
}
body .btn-warning:hover,
body button.btn-warning:hover,
body a.btn-warning:hover{
    color:#fff !important;
    background:linear-gradient(135deg,#f6b548,#c87808) !important;
    border-color:#c87808 !important;
    transform:translateY(-2px) !important;
    box-shadow:0 9px 20px rgba(244,166,42,.30) !important;
}

/* Secundarios claros: todos comparten el mismo lenguaje visual */
body .btn-secondary,
body .btn-light,
body .admin-action-btn.secondary,
body .btn-secondary-modern,
body .comment-reply-cancel-btn,
body .task-clear-button,
body .task-modal-close-button,
body .teacher-close-courses-btn{
    color:#344054 !important;
    background:linear-gradient(135deg,#ffffff,#eef3f8) !important;
    border-color:#d6dee8 !important;
    box-shadow:0 4px 11px rgba(16,24,40,.08) !important;
}
body .btn-secondary:hover,
body .btn-light:hover,
body .admin-action-btn.secondary:hover,
body .btn-secondary-modern:hover,
body .comment-reply-cancel-btn:hover,
body .task-clear-button:hover,
body .task-modal-close-button:hover,
body .teacher-close-courses-btn:hover{
    color:#175cd3 !important;
    background:linear-gradient(135deg,#f8fbff,#e4edf7) !important;
    border-color:#b7c8dc !important;
    transform:translateY(-2px) !important;
    box-shadow:0 8px 18px rgba(16,24,40,.13) !important;
}

/* Botones de icono: misma forma y reacción al mouse */
body button.comment-delete-btn,
body button.comment-delete-reply-btn,
body button.comment-edit-reply-btn,
body button.comment-reply-btn,
body button.task-modal-close-button,
body a.comment-task-view-btn,
body a.comment-task-download-btn{
    min-width:40px;
    min-height:40px;
    padding:9px 12px !important;
}

/* Descargar / ver documentos */
body .comment-task-download-btn,
body .class-download-btn{
    background:linear-gradient(135deg,#546e7a,#37474f) !important;
    border-color:#37474f !important;
    color:#fff !important;
}
body .comment-task-download-btn:hover,
body .class-download-btn:hover{
    background:linear-gradient(135deg,#607d8b,#263238) !important;
    border-color:#263238 !important;
    box-shadow:0 9px 20px rgba(55,71,79,.28) !important;
}

/* Neutraliza subrayados/estilos heredados de Material Design */
body .btn:before,
body .btn:after,
body a[class*="btn"]:before,
body a[class*="btn"]:after,
body button[class*="btn"]:before,
body button[class*="btn"]:after{
    border-radius:inherit;
}
body .btn:hover,
body .btn:focus,
body .btn:active,
body a[class*="btn"]:hover,
body a[class*="btn"]:focus,
body button[class*="btn"]:hover,
body button[class*="btn"]:focus{
    outline:none !important;
    text-decoration:none !important;
}

/* Botón deshabilitado */
body .btn:disabled,
body .btn.disabled,
body a[class*="btn"].disabled,
body button[class*="btn"]:disabled{
    opacity:.55 !important;
    cursor:not-allowed !important;
    transform:none !important;
    box-shadow:none !important;
    filter:grayscale(.15);
}

@media (max-width:600px){
    body .btn,
    body a[class*="btn"],
    body button[class*="btn"],
    body .btn-modern,
    body .task-btn{
        min-height:40px;
        padding:9px 13px !important;
    }
}

/* ===== MIS CLASES ADMIN: COLORES DEFINITIVOS DE ACCIONES ===== */
body.admin-interface .teacher-course-table .teacher-course-actions a.teacher-btn-view,
body.admin-interface .teacher-course-table .teacher-course-actions button.teacher-btn-view{
    background:#1976d2 !important;
    background-image:none !important;
    background-color:#1976d2 !important;
    border-color:#1565c0 !important;
    color:#fff !important;
    box-shadow:0 4px 10px rgba(25,118,210,.28) !important;
}
body.admin-interface .teacher-course-table .teacher-course-actions a.teacher-btn-view:hover,
body.admin-interface .teacher-course-table .teacher-course-actions button.teacher-btn-view:hover{
    background:#1565c0 !important;
    background-image:none !important;
    background-color:#1565c0 !important;
    border-color:#0d47a1 !important;
    color:#fff !important;
}
body.admin-interface .teacher-course-table .teacher-course-actions a.teacher-btn-edit,
body.admin-interface .teacher-course-table .teacher-course-actions button.teacher-btn-edit{
    background:#28a745 !important;
    background-image:none !important;
    background-color:#28a745 !important;
    border-color:#218838 !important;
    color:#fff !important;
    box-shadow:0 4px 10px rgba(40,167,69,.24) !important;
}
body.admin-interface .teacher-course-table .teacher-course-actions a.teacher-btn-edit:hover,
body.admin-interface .teacher-course-table .teacher-course-actions button.teacher-btn-edit:hover{
    background:#218838 !important;
    background-image:none !important;
    background-color:#218838 !important;
    border-color:#1e7e34 !important;
    color:#fff !important;
}
body.admin-interface .teacher-course-table .teacher-course-actions a.teacher-btn-delete,
body.admin-interface .teacher-course-table .teacher-course-actions button.teacher-btn-delete{
    background:#e53935 !important;
    background-image:none !important;
    background-color:#e53935 !important;
    border-color:#c62828 !important;
    color:#fff !important;
    box-shadow:0 4px 10px rgba(229,57,53,.24) !important;
}
body.admin-interface .teacher-course-table .teacher-course-actions a.teacher-btn-delete:hover,
body.admin-interface .teacher-course-table .teacher-course-actions button.teacher-btn-delete:hover{
    background:#c62828 !important;
    background-image:none !important;
    background-color:#c62828 !important;
    border-color:#b71c1c !important;
    color:#fff !important;
}

/* EDITAR: verde del sistema */
body.admin-interface .admin-edit-btn,body .admin-edit-btn{color:#fff !important;background:#2E7D32 !important;background-color:#2E7D32 !important;background-image:none !important;border-color:#1B5E20 !important;}
body.admin-interface .admin-edit-btn:hover,body .admin-edit-btn:hover{color:#fff !important;background:#256628 !important;background-color:#256628 !important;background-image:none !important;border-color:#1B5E20 !important;}

/* FIX GLOBAL: icono de adjuntar visible en botones azules de todas las vistas */
body .comment-attach-btn i.zmdi-attachment-alt,
body .file-label i.zmdi-attachment-alt,
body .btn-primary i.zmdi-attachment-alt,
body .btn-info i.zmdi-attachment-alt,
body .teacher-replace-btn i.zmdi-attachment-alt,
body .universal-comment-btn i.zmdi-attachment-alt,
body .student-reply-btn i.zmdi-attachment-alt,
body .comment-reply-btn i.zmdi-attachment-alt,
body .btn-modern i.zmdi-attachment-alt,
body .task-btn i.zmdi-attachment-alt,
body .admin-action-btn.primary i.zmdi-attachment-alt,
body .admin-replace-btn i.zmdi-attachment-alt {
    color: #fff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #fff !important;
    filter: none !important;
}
