/* GENERAL */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1100;
    background: rgba(255,255,255,0.6) url("images/loader.gif") center no-repeat;
    justify-content: center;
    align-items: center;
}
body.loading {
    overflow: hidden;
}
body.loading .overlay {
    display: flex !important;
}
.overlay span {
    font-size: 17px;
    font-weight: 700;
    margin-top: 110px;
}
.zoom-in-out {animation: zoomInOut 0.75s;}
@keyframes zoomInOut {
    0%, 100% {transform: scale(1);}
    50% {transform: scale(1.025);}
}

.badge {
    padding: 5px 10px;
    background-color: #b2cfdd;
    color: #000;
}

hr {
    border-top: 1px solid #ccc;
}

.jumbotron {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-shadow: 2px 2px 5px rgb(0 0 0 / 50%) !important;
}

.jumbotron p {
    font-size: inherit;
    font-weight: inherit;
}

.qualla-red {
	background-color: #EF4848 !important;
	border: 0px !important;
}
	
.qualla-btn-red {
	background-color: #EF4848 !important;
	border: 1px solid #EF4848 !important;
	min-width: 172px;
	height: 32px;
	color: #FFFFFF !important;
	border-radius: 5px;
	text-decoration: none !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
    font-size: medium !important;
}

.qualla-btn-red:hover,
.qualla-btn-red:focus {
	background-color: #FFFFFF !important;
	color: #EF4848 !important;
	border: 1px solid #EF4848 !important;
	text-decoration: none !important;
}
	
.qualla-logo {
	width: 140px;
    height: 140px;
    margin: 20px auto 10px;
    display: block;
    border-radius: 5%;
}
	
.qualla-logo-text {
	width: 160px;
    height: 70px;
    margin: 20px auto -5px;
    display: block;
    border-radius: 5%;
}
	
.qualla-logo-full {
	/*width: 320px;*/
    height: 280px;
    margin: 20px auto -35px;
    display: block;
    border-radius: 5%;
}

.qualla-logo-medium {
	/*width: 320px;*/
    height: 200px;
    margin: 20px auto -35px;
    display: block;
    border-radius: 5%;
}
	
.qualla-logo-navbar {
	width: auto;
    height: 50px;
    border-radius: 5%;
}
	
.qualla-login-panel {
	border-radius: 5%;
	border-color: #FFFFFF;
}
	
.qualla-login-fields {
	border-color: #EF4848;
	margin: 10px auto 10px;
}
	
.qualla-red-font {
	color: #EF4848 !important;
}

.qualla-school-name {
	margin-left: 0px !important;
}

.qualla-navbar {
	/*margin-top: 5px !important;*/
	margin:5px 20px 0px 10px;

}

option {
    padding: 5px;
}
	
/* ----------------------------------------------------------------------------------- */
/* NAVBAR */

html,
body {
    overflow-x: hidden; /* Prevent scroll on narrow devices */
    font-family: 'Poppins', "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
    padding-top: 10vh;
    padding-right: 0 !important;
}
/*footer {navbar
    padding: 30px 0;
}*/

/*
 * Custom styles
 */
.navbar-brand {
    font-size: 20px;
}

/* LRS
.navbar-container {
    padding: 20px 0 20px 0;
}
*/
.navbar-container {
    padding: 0;
}

.navbar.navbar-fixed-top.fixed-theme {
    background-color: #222;
    border-color: #080808;
    box-shadow: 0 0 5px rgba(0,0,0,.8);
}

/* LRS */
@media (min-width: 768px) {
    .navbar-fixed-top {
        border-color: #080808;
        box-shadow: 0 0 5px rgb(0 0 0 / 80%);
    }
}

/* LRS
.navbar-brand.fixed-theme {
    font-size: 18px;
}
*/
.navbar-brand.fixed-theme {
    font-size: 20px;
}

.navbar-container.fixed-theme {
    padding: 0;
}

.modal-header {
    background-color: #e5e5e5;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: 1px solid #ccc;
}

.navbar-brand.fixed-theme,
.navbar-container.fixed-theme,
.navbar.navbar-fixed-top.fixed-theme,
.navbar-brand,
.navbar-container{
    transition: 0.8s;
    -webkit-transition:  0.8s;
}

.qualla-navbar-color {
	background-color: #FFFFFF !important;
	}

.qualla-navbar-toggle-color {
	background-color: #a2a5aa !important;
	}
	
/* ----------------------------------------------------------------------------------- */
/* SETTINGS */
.qualla-contact-icons {
	color: #337AB7 !important;
	}

p1 {
	font-size: 16px;
}	

/* ----------------------------------------------------------------------------------- */
/* HOME: TABLE ROOMS */
.qualla-btns-home {
	color: #EF4848 !important;
	background-color: #FFFFFF !important;
	border-color: #6336354a !important;
	margin: auto;
    display: block;
    box-shadow: 1px 1px 0px 0px rgb(0 0 0 / 25%) !important;
}

.qualla-btns-home:hover {
    box-shadow: 1px 1px 2px 0px rgb(0 0 0 / 50%) !important;
    color: #f00 !important;
}

.qualla-textbox-auth{
    height: 200px !important;
    font-size: 12pt;
}

/* ----------------------------------------------------------------------------------- */
/* PARENTS: REGISTER EXTRACURRICULAR*/
	
.qualla-btns-register {
	color: #35b239 !important;
	background-color: #FFFFFF !important;
	border-color: #FFFFFF !important;
	margin: auto;
    display: block;
	}

/* ----------------------------------------------------------------------------------- */
/* ROOM: TABLE KIDS */
.qualla-btns-select-upload {
	width: 140px;
	padding: 2px 2px !important;
	/*border: 1px solid #ccc !important;*/
	border-color: #6336354a !important;
	}
	
.qualla-image-file-name {
	padding: 5px 7px !important;
	margin: auto;
	display: block;
	font-weight: 400;
	max-width: 140px;
    overflow: hidden;
	text-overflow: ellipsis;
}
	
.qualla-kid-image {
	width: 85px;
	height: 85px;
    display: block;
    margin: 0 auto;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid #6336354a;
	}

.qualla-kid-image-small {
	width: 35px;
	height: 35px;
	object-fit: cover;
	border-radius: 50%;
	}
	
/* ----------------------------------------------------------------------------------- */
/* KID VIEW */
.qualla-kid-image-big {
	width: 200px;
	height: 200px;
	display: block;
    margin: 0 auto;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid #6336354a;
	}

.qualla-tutor-picker-image {
    width: 85px;
    height: 85px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #6336354a;
}

.qualla-btn-info-tutor {
	color: #EF4848 !important;
	background-color: #FFFFFF !important;
	border-color: #6336354a !important;
	margin-left: 50px;
    box-shadow: 1px 1px 0px 0px rgb(0 0 0 / 25%) !important;
}

.qualla-btn-info-tutor:hover {
    box-shadow: 1px 1px 2px 0px rgb(0 0 0 / 50%) !important;
    color: #f00 !important;
}
	
.qualla-modal-info-tutor {
	font-size: 14px !important;
	font-weight: normal;
}

.btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus {
    outline: 1px auto #fd7676;
    outline-offset: -1px;
}
	
.qualla-table {
	margin-bottom: 0 !important;
}

.qualla-table > tbody > tr > td,
.qualla-table > tbody > tr > th,
.qualla-table > tfoot > tr > td,
.qualla-table > tfoot > tr > th,
.qualla-table > thead > tr > td,
.qualla-table > thead > tr > th {
    border: none;
}

i.fa.fa-square-o{
	color: #C8C8C8;    display: inline;
}

i.fa.fa-check-square-o{
	color: #EF4848;    display: inline;
}


/* ----------------------------------------------------------------------------------- */
/* CALENDAR */

/* Shadow when not selected */
label input[type="radio"] ~ i.fa.fa-circle-o{
    color: #C8C8C8;    display: inline;
}

/* Hide (dot) circle when not used */
label input[type="radio"] ~ i.fa.fa-dot-circle-o{
    display: none;
}

label input[type="radio"]:checked ~ i.fa.fa-circle-o{
    display: none;
}

/* When checked display with custom color*/
label input[type="radio"]:checked ~ i.fa.fa-dot-circle-o{
    color: #EF4848;    display: inline;
}

/* Show only circle, not square background */
div[data-toggle="buttons"] label:active, div[data-toggle="buttons"] label.active {
-webkit-box-shadow: none;
box-shadow: none;
}

/*
label:hover input[type="radio"] ~ i.fa {
color: #7AA3CC;
}

div[data-toggle="buttons"] label.active{
    color: #7AA3CC;
}


div[data-toggle="buttons"] label:hover {
color: #7AA3CC;
}
*/


/*FOOTER*/

.page-wrap {
  min-height: 100%;
  /* equal to footer height */
  margin-bottom: -250px; 
}
.page-wrap:after {
  content: "";
  display: block;
}
.site-footer, .page-wrap:after {
  height: 100%; 
}
.site-footer {
  margin-top: 221px;
}

#myFooter {
    background-color: #3a3f46;
    color: white;
}

#myFooter .row {
    margin-bottom: 60px;
}

#myFooter .info{
    text-align: justify; 
    color: #afb0b1;
}

#myFooter ul {
    list-style-type: none;
    padding-left: 0;
    line-height: 1.7;
}

#myFooter h5 {
    font-size: 18px;
    color: white;
    font-weight: bold;
    margin-top: 30px;
}

#myFooter .logo{
    margin-top: 10px;
}

#myFooter .second-bar .logo a{
    color:white;
    font-size: 28px;
    float: left;
    font-weight: bold;
    line-height: 68px;
    margin: 0;
    padding: 0;
}

#myFooter a {
    color: #d2d1d1;
    text-decoration: none;
}

#myFooter a:hover,
#myFooter a:focus {
    text-decoration: none;
    color: white;
}

#myFooter .second-bar {
    text-align: center;
    background-color: #33373e;
    text-align: center;
}

#myFooter .second-bar a {
    font-size: 22px;
    color: #9fa3a9;
    padding: 10px;
    transition: 0.2s;
    line-height: 68px;
}

#myFooter .second-bar a:hover {
    text-decoration: none;
}

#myFooter .social-icons {
    float:right;
}


#myFooter .facebook:hover {
    color: #0077e2;
}

#myFooter .google:hover {
    color: #ef1a1a;
}

#myFooter .twitter:hover {
    color: #00aced;
}

@media screen and (max-width: 767px) {
    #myFooter {
        text-align: center;
    }

    #myFooter .info{
        text-align: center;
    }
}


/* TRANSPORT */

.inline-radio {
    display: flex;
    align-items: center;
    gap: 20px;
}

.inline-radio label {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.inline-radio input[type="radio"] {
    margin-right: 5px;
}

.inline-radio .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.inline-radio .form-check-label {
    margin: 0;
}

.inline-radio ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.inline-radio li {
    margin: 0; /* Elimina el margin dels elements de la llista */
}

/* Fi Transport */

/* Add this to your existing CSS file */

/* Styles for active tab */
.qualla-tab-active {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border-color: #ddd !important;
}

/* Styles for inactive tab (default) */
.qualla-tab-inactive {
    color: #fff !important;
    background-color: #EF4848 !important;
    border-color: #ddd !important;
}

/* Hover effect for inactive tabs */
.nav-link.qualla-tab-inactive:hover {
    background-color: #f8f9fa  !important;
    color: #000 !important;
}

.card {
    background-color: #f5f5f5; /* Color de fons clar */
    border-radius: 8px; /* Cantonades arrodonides */
    padding: 20px;
    width: 170px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ombra suau */
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
}

.active-routes {
    font-size: 24px; /* Mida del text gran */
    font-weight: bold;
    color: #000; /* Color del text */
}

.students-in-route{
    font-size: 24px; /* Mida del text gran */
    font-weight: bold;
    color: #000; /* Color del text */
}

.description {
    font-size: 16px;
    color: #666; /* Color del text descripció */
    margin-top: 5px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px; /* Adjust padding as needed */
}


.card-container {
    display: flex;
    gap: 20px; /* Space between cards */
}

.export {
    font-weight: bold;
    cursor: pointer;
}

/* Contenidor principal per a les files */
.route-row-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Estil per a cada fila de ruta */
.route-row {
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Nombre de la ruta a l'esquerra */
.route-number {
    background-color: #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}

/* Informació de la ruta (nom) */
.route-info {
    flex: 1;
    margin-left: 15px;
    font-size: 16px;
    color: #333;
}

/* Comptador d'alumnes a la dreta */
.student-count {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    margin-left: auto;
    margin-right: 125px;
}

/* Icones d'edició i eliminació */
.route-actions {
    display: flex;
    gap: 10px;
    color: #777;
    font-size: 18px;
}

.route-actions .download-icon,
.route-actions  {
    cursor: pointer;
    text-decoration: none;
}

.export-button, .export-button a{
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
}

.selectProfesor {
    width: 100%; /* Amplada completa */
    height: auto; /* Ajustar l'alçada automàticament */
    background-color: #f9f9f9; /* Color de fons */
    border: 1px solid #ccc; /* Borde */
    border-radius: 5px; /* Borde arrodonit */
    padding: 5px; /* Espai interior */
    font-size: 14px; /* Tamany del text */
    color: #333; /* Color del text */
}

.selectProfesor option:checked {
    background-color: #cce5ff; /* Color de les opcions seleccionades */

}

/* Checkbox personalitzats */

.styled-checkbox-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #333;
    justify-content: flex-end; /* Alinea els elements a la dreta */
    margin-right: 0;
}

.styled-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}


.styled-checkbox-group input[type="checkbox"] {
    appearance: none; /* Elimina l'aspecte per defecte */
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background-color: #eee; /* Fons blanc */
    border: 2px solid #ccc; /* Borde gris inicial */
    border-radius: 4px; /* Cantonades lleugerament arrodonides */
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;

}

.styled-checkbox-group input[type="checkbox"]:checked {
    border-color: #2c8f26; /* Borde vermell quan està seleccionat */
    background-color: #eee; /* Fons blanc */
}

.styled-checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 6px;
    width: 9px;
    height: 16px;
    border: solid #2c8f26;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    transition: all 0.2s ease-in-out;
    border-radius: 1px;
}

.styled-checkbox-group input[type="checkbox"]:hover {
    border-color: #999; /* Borde gris fosc quan es passa el ratolí */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Ombra subtil */
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px; /* Espai entre checkboxs */
}

.checkbox-label span {
    margin-bottom: 5px; /* Afegeix espai entre el text i el checkbox */
    min-width: 60px;
}

.checkbox-label input {
    width: 20px; /* Ajusta la mida del checkbox si cal */
    height: 20px;
}

.checkbox-check-day-color{
 color:#6c757d!important;
}

 /* fi personalitzacio checkboxs */

 /* Mides basades en la conversió de rems de Bootstrap 4 (0.25rem=4px, etc.) */
.m-0  { margin: 0 !important; }
.m-1  { margin: 4px !important; }
.m-2  { margin: 8px !important; }
.m-3  { margin: 16px !important; }
.m-4  { margin: 24px !important; }
.m-5  { margin: 48px !important; }

/* Marge top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 48px !important; }

/* Marge bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 48px !important; }

/* Marge left (en Bootstrap 5 seria .ms-*, però aquí fem servir .ml-* per coherència amb BS3) */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-3 { margin-left: 16px !important; }
.ml-4 { margin-left: 24px !important; }
.ml-5 { margin-left: 48px !important; }

/* Marge right (equivalent a .me-* a BS5, però seguim .mr-* per a BS3) */
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-3 { margin-right: 16px !important; }
.mr-4 { margin-right: 24px !important; }
.mr-5 { margin-right: 48px !important; }

/* Millora perquè un checkbox després d'un label sempre quedi alineat de forma centrada amb el label */
label:has(+ input[type="checkbox"]) + input[type="checkbox"] {
    vertical-align: top;
}

/* Millora perquè un checkbox abans d'un label sempre quedi alineat de forma centrada amb el label */
input[type="checkbox"]:has(+ label) {
    vertical-align: top;
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 600px; /* increased width for longer translations */
}

/* Align form inputs in login forms */
.login-page form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.login-page form label {
    margin-bottom: 5px;
    font-weight: 500;
}

.login-page form input[type="text"],
.login-page form input[type="password"],
.login-page form input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Password toggle functionality */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    user-select: none;
}

.password-toggle:hover {
    color: #EF4848;
}

/* Error list styles for form validation */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.errorlist li {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
}

/* Help text styles */
.help-text {
    color: #666;
    font-size: 13px;
    margin: 15px 0;
    line-height: 1.4;
}

.help-text ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.help-text li {
    margin-bottom: 4px;
}

/* Root-level variables */
:root {
    /* Single source of truth for sidebar width */
    --sidebar-width: 240px;
    /* Height of fixed top navbar; used to offset sidebar content */
    --navbar-height: 52px;
}

/* Main welcome bar wrapper */
.main-welcome {
    background-color: #ffffff; /* default white on inner pages */
    margin: 0 20px; /* 20px margin left and right */
    padding-top: calc(var(--navbar-height) + 5px);
    width: calc(100% - 40px); /* 100% width minus 40px for left+right margins */
}

.home-welcome {
    background-color: #fee2e2;
    padding-top: 10px;
    /* margin-top: -10px; */
    height: auto;
}



@media (max-width: 767px) {
    .main-welcome { 
        margin: 0 20px;
        width: calc(100% - 40px);
    }
}

.hero-title {
    color: #111827;
}

.btn-purple {
    background-color: #8b5cf6;
    color: #fff !important;
}
.btn-purple:hover,
.btn-purple:focus {
    background-color: #7c3aed;
    color: #fff !important;
}

/* DASHBOARD STAT CARDS */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (min-width: 1400px) {
    .stat-cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .stat-cards-grid {
        width: 100%;
    }
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    min-width: 0;
    width: 100%;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.stat-delta {
    font-weight: 600;
    font-size: 14px;
}
.stat-up { color: #16a34a; }
.stat-down { color: #ef4444; }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: #111827;
}

.stat-sublabel {
    font-size: 12px;
    color: #6b7280;
    font-weight: 300;
}

/* Password fields two-column layout */
.password-fields-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.password-field-col {
    flex: 1;
    min-width: 0;
}

.password-field-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.password-field-col .password-field-container {
    margin-bottom: 5px;
}

.password-field-col input[type="password"] {
    width: 100%;
    box-sizing: border-box;
}

/* Password errors section - full width */
.password-errors-section {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
    .password-fields-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* COURSE DISTRIBUTION STRIP */
.course-strip {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    width: 100%;
}

.course-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.course-strip-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.course-strip-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.course-strip-actions {
    color: #6b7280;
}

.course-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.course-strip-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.course-chip {
    color: #ffffff;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.course-label {
    font-weight: 600;
    margin-top: 8px;
}

.course-sublabel {
    color: #6b7280;
    font-size: 12px;
}

/* Main dashboard grid */
.main-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .main-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Avatar dropdown styles */
.avatar-dropdown-container {
    margin-top: 8px;
}

.avatar-dropdown-container .avatar-toggle {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    cursor: pointer;
}

.avatar-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.avatar-dropdown-content {
    padding: 8px 0;
}

.dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item strong {
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.dropdown-item a {
    color: #666;
    text-decoration: none;
}

.dropdown-item a:hover {
    color: #007bff;
}

/* Language dropdown styles */
.language-dropdown-item {
    padding: 8px 16px !important;
}

.language-dropdown {
    position: relative;
    width: 100%;
}

.language-dropdown-btn {
    width: 100%;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease;
}

.language-dropdown-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.language-dropdown-btn i {
    transition: transform 0.2s ease;
}

.language-dropdown-btn.active i {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1001;
}

.language-options.show {
    max-height: 200px;
}

.language-option-form {
    margin: 0;
}

.language-option {
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #007bff;
    color: white;
}

.language-option.active:hover {
    background: #0056b3;
}

/* Logout button styles */
.logout-item {
    background-color: #f8f9fa;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: #EF4848 !important;
    color: white !important;
    border: 1px solid #EF4848 !important;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.logout-btn:hover {
    background: #FFFFFF !important;
    color: #EF4848 !important;
    border: 1px solid #EF4848 !important;
    text-decoration: none !important;
}

/* Avatar inside navbar: circular mask */
.navbar-avatar {
    width: calc(var(--navbar-height) - 12px);
    height: calc(var(--navbar-height) - 12px);
    max-height: var(--navbar-height);
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.15s ease-in-out;
}

.navbar-nav > li > a:hover .navbar-avatar {
    transform: scale(1.15);
}

/* Avatar with initial fallback */
.navbar-avatar-initial {
    background: linear-gradient(135deg, #f3f3f5 0%, #EF4848 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.btn-block {
    font-size:13px!important;
}