/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #142A3F;
    --primary-dark: #142A3F;
    --primary-light: #142A3F;
    --secondary: #142A3F;
    --accent: #d1fae5;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --success: #142A3F;
    --warning: #f59e0b;
    --danger: #dc2626;
    --purple: #142A3F1;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}

/* ====================== INDEX ========================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		Oxygen, Ubuntu, Cantarell, sans-serif;
	background: #142A3F;
	min-height: 100vh;
	padding: 2rem 0;
}

.container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 2rem;
}

.hero-section {
	text-align: center;
	margin-bottom: 4rem;
}

.hero-title {
	font-size: 3rem;
	font-weight: bold;
	color: white;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 3rem;
}

/* Video Section */
.video-section {
	background: white;
	border-radius: 2rem;
	padding: 3rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	margin-bottom: 3rem;
	text-align: center;
}

.video-title {
	font-size: 2rem;
	font-weight: bold;
	color: #1F2937;
	margin-bottom: 2rem;
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	max-width: 800px;
	margin: 0 auto;
	border-radius: 1rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 1rem;
}

.directions-container {
	background: white;
	border-radius: 2rem;
	padding: 3rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	margin-bottom: 3rem;
}

.direction-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.direction-card {
	background: linear-gradient(to bottom, #F9FAFB, #F3F4F6);
	border-radius: 1.25rem;
	padding: 2rem;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 3px solid transparent;
}

.direction-card:hover {
	transform: translateY(0px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.card-nutrition:hover {
	border-color: #10B981;
}

.card-psychology:hover {
	border-color: #8B5CF6;
}

.card-sport:hover {
	border-color: #F59E0B;
}

.card-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	overflow: hidden;
}

.card-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.icon-nutrition {
	background: #D1FAE5;
}

.icon-psychology {
	background: #EDE9FE;
}

.icon-sport {
	background: #FEF3C7;
}

.card-title {
	font-size: 1.5rem;
	font-weight: bold;
	color: #1F2937;
	margin-bottom: 0.75rem;
}

.card-description {
	font-size: 1rem;
	color: #6B7280;
	line-height: 1.6;
}

.mission-section {
	background: white;
	border-radius: 2rem;
	padding: 3rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	margin-bottom: 3rem;
	text-align: center;
}

.mission-title {
	font-size: 2rem;
	font-weight: bold;
	color: #1F2937;
	margin-bottom: 1.5rem;
}

.mission-text {
	font-size: 1.125rem;
	color: #4B5563;
	line-height: 1.8;
	max-width: 800px;
	margin: 0 auto 2rem;
}

.cta-button {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 1.25rem;
	font-weight: bold;
	padding: 1.25rem 3rem;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
	transform: translateY(0px);
	box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Testimonials Section */
.testimonials-section {
	background: white;
	border-radius: 2rem;
	padding: 3rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	margin-bottom: 3rem;
}

.testimonials-title {
	font-size: 2rem;
	font-weight: bold;
	color: #1F2937;
	text-align: center;
	margin-bottom: 3rem;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.testimonial-card {
	background: linear-gradient(to bottom, #F9FAFB, #FFFFFF);
	border-radius: 1.25rem;
	padding: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.testimonial-card:hover {
	transform: translateY(0px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.testimonial-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.5rem;
	font-weight: bold;
}

.testimonial-info {
	flex: 1;
}

.testimonial-name {
	font-size: 1.125rem;
	font-weight: bold;
	color: #1F2937;
	margin-bottom: 0.25rem;
}

.testimonial-role {
	font-size: 0.875rem;
	color: #6B7280;
}

.testimonial-stars {
	color: #F59E0B;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.testimonial-text {
	font-size: 1rem;
	color: #4B5563;
	line-height: 1.6;
	font-style: italic;
}

/* Footer */
.footer {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 2rem;
	padding: 3rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	margin-bottom: 2rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	font-size: 1.25rem;
	font-weight: bold;
	color: #1F2937;
	margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
	font-size: 1rem;
	color: #6B7280;
	line-height: 1.8;
	text-decoration: none;
}

.footer-section a:hover {
	color: #667eea;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.contact-icon {
	width: 40px;
	height: 40px;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.25rem;
}

.social-links {
	display: flex;
	gap: 3rem;
	margin-top: 1rem;
}

.social-link {
	width: 245px;
	height: 45px;
	border-radius: 0%;
	background: linear-gradient(135deg, #142A3F 0%, #142A3F 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-link:hover {
	transform: translateY(0px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 2px solid #E5E7EB;
	color: #6B7280;
}

@media ( max-width : 768px) {
	body {
		padding: 1rem 0;
	}
	.hero-title {
		font-size: 2rem;
	}
	.hero-subtitle {
		font-size: 1rem;
	}
	.directions-container, .mission-section, .testimonials-section,
		.video-section, .footer {
		padding: 2rem;
	}
	.direction-cards, .testimonials-grid {
		grid-template-columns: 1fr;
	}
	.footer-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}


















/* ==================== LAYOUT VARIANTS ==================== */
body.dashboard-page {
    background: linear-gradient(135deg, #d1fae5 0%, #ffffff 50%, #d1fae5 100%);
}

body.landing-page {
    background: linear-gradient(135deg, #142A3F 0%, #142A3F 100%);
    padding: 2rem 0;
}

body.login-page {
    background: linear-gradient(135deg, #142A3F 0%, #142A3F 30%, #142A3F 60%, #142A3F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: auto;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.navbar .text-white {
    display: none;
}

@media (min-width: 768px) {
    .navbar .text-white {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        backdrop-filter: blur(10px);
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(0px);
    box-shadow: 0 8px 20px rgba(20, 42, 63, 0.0);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
    border: 2px solid var(--gray);
}

.btn-secondary:hover {
    background: var(--white);
    transform: translateY(0px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-outline:hover {
    transform: translateY(0px);
    box-shadow: 0 8px 20px rgba(20, 42, 63, 0.0);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
}

.btn-outline-success {
    background: transparent;
    border: 2px solid var(--success);
    color: var(--success);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-outline-success:hover {
    background: var(--success);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.0);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, var(--danger) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0);
}

.btn-primary-custom {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
}

.btn-primary-custom:hover {
    background: #45a049;
}

.btn i {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: none;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(0px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: ripple 15s infinite;
}

.card-header i {
    position: relative;
    z-index: 1;
}

.card-header h3,
.card-header h4 {
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .card-header {
        padding: 2rem;
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 2rem;
    }
}

/* ==================== SECTION CARDS ==================== */
.section-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    height: 100%;
    transition: var(--transition);
}

.section-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateX(0px);
}

.section-title {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@media (min-width: 768px) {
    .section-card {
        padding: 2rem;
    }
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.stat-card:hover {
    transform: translateY(0px);
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.4);
}

.stat-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, var(--danger) 100%);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.stat-card.danger:hover {
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .stat-card {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

.form-check {
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    border: 2px solid var(--gray);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.875rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form textarea,
form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
    margin-bottom: 1rem;
    background: var(--white);
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    form {
        padding: 2rem;
    }
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid var(--success);
    color: #065f46;
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.alert i {
    font-size: 1.25rem;
}

.btn-close {
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
}

table tbody tr {
    background: var(--white);
    transition: var(--transition);
}

table tbody tr:hover {
    background: var(--accent);
    transform: scale(1.00);
}

table tbody tr:nth-child(even) {
    background: var(--gray-light);
}

table tbody tr:nth-child(even):hover {
    background: var(--accent);
}

@media (min-width: 768px) {
    table th,
    table td {
        padding: 1.25rem;
    }
    
    table {
        font-size: 1rem;
    }
}

/* ==================== QUESTIONNAIRE ==================== */
.questionnaire-section {
    border-left-color: var(--primary-light);
}

.questionnaire-title {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.questionnaire-description {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--white) 100%);
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.question-item:hover {
    transform: translateX(0px);
    box-shadow: var(--shadow);
}

.question-text {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.question-text .text-danger {
    color: var(--danger);
    margin-left: 0.25rem;
}

.questionario-wrapper {
    background: linear-gradient(135deg, #e0f2fe, #e0f2fe);
    padding: 3px;
    border-radius: 12px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

#questionario-content.collapsed {
	display: none;
}
.collapsed {
	display: none;
}

.btn-toggle {
    background-color: #1e40af;
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#questionario-content.collapsed {
    display: none;
}

.questionario-wrapper input,
.questionario-wrapper textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.questionario-wrapper input:focus,
.questionario-wrapper textarea:focus {
    border-color: #1e40af;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* ==================== RESPONSES ==================== */
.completed-badge {
    background: linear-gradient(135deg, var(--success) 0%, var(--primary-dark) 100%);
    color: var(--primary-dark);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.uncompleted-badge {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning) 100%);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.responses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.response-view {
    background: linear-gradient(135deg, var(--accent) 0%, var(--white) 100%);
    padding: 1.25rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.response-view:hover {
    transform: translateX(0px);
    box-shadow: var(--shadow);
}

.response-question {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.response-answer {
    display: block;
    color: var(--gray);
    font-size: 0.875rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 0.5rem;
    font-weight: 500;
}

.responses-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.response-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.response-item:last-child {
    border-bottom: none;
}

.no-responses {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.no-responses i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: float 3s infinite ease-in-out;
}

.no-responses p {
    margin-bottom: 15px;
}

/* ==================== COACH NOTES ==================== */
.coach-note {
    background: linear-gradient(135deg, var(--accent) 0%, #fef2f2 100%);
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.coach-note:hover {
    transform: translateX(0px);
    box-shadow: var(--shadow);
}

.coach-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.coach-note-author {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.coach-note-author i {
    margin-right: 5px;
}

.coach-note-date {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 600;
}

.coach-note-text {
    color: var(--dark);
    line-height: 1.6;
    font-size: 0.875rem;
}

.no-notes {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.no-notes i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: float 3s infinite ease-in-out;
}

.no-notes p {
    margin-bottom: 10px;
}

.no-notes small {
    color: #aaa;
}

/* ==================== BMI GAUGE ==================== */
.bmi-gauge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: linear-gradient(to bottom right, #EFF6FF, #E0E7FF);
}

.bmi-gauge-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    max-width: 32rem;
    width: 100%;
}

.bmi-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    color: #1F2937;
    margin-bottom: 2rem;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.gauge-svg {
    width: 100%;
    height: auto;
}

#gaugeNeedle {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bmi-display {
    background: #F9FAFB;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.bmi-label {
    color: #6B7280;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.bmi-value {
    font-size: 0.82rem;
    font-weight: bold;
    color: #1F2937;
    margin: 0;
}

.bmi-category {
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bmi-category p {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.category-underweight {
    background: #DBEAFE;
    color: #1E40AF;
}

.category-normal {
    background: #D1FAE5;
    color: #065F46;
}

.category-overweight {
    background: #FEF3C7;
    color: #92400E;
}

.category-obese {
    background: #FEE2E2;
    color: #991B1B;
}

/* ==================== TRIANGLE ==================== */
.triangolo-section {
    text-align: center;
}

.triangolo-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.triangle-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2.5rem;
}

.triangle-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

#triangleShape {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#vertexA,
#vertexB,
#vertexC {
    transition: all 0.6s ease;
}

#labelA,
#labelB,
#labelC {
    transition: all 0.6s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.triangle-legend {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 2rem;
	background: linear-gradient(to bottom, #F9FAFB, #F3F4F6);
	border-radius: 1.25rem;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem;
	background: white;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legend-item:hover {
	transform: translateX(0px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legend-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	flex-shrink: 0;
}

.legend-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}


.progress-bar-container {
	width: 100%;
	padding: 2rem;
}

.progress-card {
	background: white;
	border-radius: 1.5rem;
	padding: 2.5rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	max-width: 800px;
	margin: 0 auto;
}

.progress-title {
	font-size: 1.5rem;
	font-weight: bold;
	color: #1F2937;
	text-align: center;
	margin-bottom: 2rem;
}

.progress-bar-wrapper {
	margin-bottom: 2rem;
}

.progress-bar {
	display: flex;
	width: 100%;
	height: 60px;
	background: #F3F4F6;
	border-radius: 9999px;
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-segment {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	min-width: 0;
}

.segment-nutrition {
	background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.segment-psychology {
	background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.segment-sport {
	background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.segment-label {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.progress-segment.show-label .segment-label {
	opacity: 1;
}

/* Nascondi label se il segmento è troppo piccolo */
.progress-segment[style*="width: 0"] .segment-label, .progress-segment[data-small="true"] .segment-label
	{
	display: none;
}

.progress-legend {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.legend-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex-shrink: 0;
}

.dot-nutrition {
	background: #10B981;
}

.dot-psychology {
	background: #8B5CF6;
}

.dot-sport {
	background: #F59E0B;
}

.legend-text {
	font-size: 1rem;
	color: #6B7280;
}

.legend-text strong {
	color: #1F2937;
	font-size: 1.125rem;
}

@media ( max-width : 640px) {
	.progress-card {
		padding: 1.5rem;
	}
	.progress-bar {
		height: 50px;
	}
	.segment-label {
		font-size: 0.875rem;
	}
	.progress-legend {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
}

.progress-bar {
    display: flex !important;
    flex-direction: row !important;
}

.progress-segment {
    flex-shrink: 0 !important;
}

/* ==================== TRIANGOLO AUTOVALUTAZIONE ==================== */
.user-dashboard {
    background-color: #f8fafc;
    padding: 20px 0;
}

.section-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    height: 100%;
}

.section-title {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.section-title i {
    margin-right: 8px;
}

/* Alert messaggi */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== SEZIONE TRIANGOLO ==================== */
.triangolo-section {
    text-align: center;
}

.triangolo-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

canvas {
    border: 1px solid #ddd;
    cursor: move;
    display: block;
    margin: 0 auto 15px;
    max-width: 100%;
    border-radius: 8px;
}

.btn-primary-custom {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
}

.btn-primary-custom:hover {
    background: #45a049;
}

.ultima-scelta {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 13px;
    color: #666;
}

/* ==================== SEZIONE QUESTIONARIO ==================== */
.questionnaire-section h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.questionnaire-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.responses-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.response-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.response-item:last-child {
    border-bottom: none;
}

.response-question {
    font-weight: 500;
    color: #333;
    flex: 1;
    text-align: left;
}

.response-answer {
    color: #4CAF50;
    font-weight: 600;
    padding: 5px 15px;
    background: #e8f5e9;
    border-radius: 5px;
    white-space: nowrap;
}

.no-responses {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-responses i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-responses p {
    margin-bottom: 15px;
}

/* ==================== SEZIONE COACH NOTES ==================== */
.coach-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.coach-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.coach-note-author {
    font-weight: 600;
    color: #856404;
    font-size: 0.95rem;
}

.coach-note-author i {
    margin-right: 5px;
}

.coach-note-date {
    font-size: 12px;
    color: #856404;
}

.coach-note-text {
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-notes {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-notes i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-notes p {
    margin-bottom: 10px;
}

.no-notes small {
    color: #aaa;
}

/* ==================== TABELLA SCELTE ==================== */
.scelte-table {
    margin-top: 20px;
}

.scelte-table table {
    width: 100%;
    border-collapse: collapse;
}

.scelte-table th,
.scelte-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.scelte-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.scelte-table tbody tr:hover {
    background: #f8f9fa;
}

.no-scelte {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .section-card {
        margin-bottom: 20px;
    }
    
    .response-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .response-answer {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    canvas {
        max-width: 100%;
        height: auto;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

        .login-page {
            background: linear-gradient(135deg, #6610f2 0%, #a7f3d0 30%, #6610f2 60%, #6610f2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            position: relative;
            overflow: hidden;
        }
        
        /* Animated background circles */
        .login-page::before,
        .login-page::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            animation: float 20s infinite ease-in-out;
        }
        
        .login-page::before {
            width: 300px;
            height: 300px;
            background: white;
            top: -100px;
            left: -100px;
            animation-delay: 0s;
        }
        
        .login-page::after {
            width: 400px;
            height: 400px;
            background: white;
            bottom: -150px;
            right: -150px;
            animation-delay: 10s;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translate(0, 0) scale(1);
            }
            50% {
                transform: translate(50px, 50px) scale(1.1);
            }
        }
        
        .login-container {
            max-width: 450px;
            width: 100%;
            position: relative;
            z-index: 1;
        }
        
        .login-card {
            background: white;
            border-radius: 1.5rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            border: none;
            animation: slideUp 0.6s ease-out;
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .login-header {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .login-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: ripple 15s infinite;
        }
        
        @keyframes ripple {
            0% {
                transform: translate(0, 0) scale(1);
            }
            50% {
                transform: translate(20px, 20px) scale(1.1);
            }
            100% {
                transform: translate(0, 0) scale(1);
            }
        }
        
        .login-header h3 {
            color: white;
            font-weight: 800;
            font-size: 1.75rem;
            margin: 0;
            position: relative;
            z-index: 1;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .login-header i {
            font-size: 3rem;
            margin-bottom: 0.5rem;
            color: white;
            animation: lockBounce 2s infinite;
        }
        
        @keyframes lockBounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        .login-body {
            padding: 2rem;
        }
        
        .form-label {
            font-weight: 600;
            color: #047857;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .form-control {
            border: 2px solid #e5e7eb;
            border-radius: 0.75rem;
            padding: 0.875rem 1rem;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            border-color: #059669;
            box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
            transform: translateY(-2px);
        }
        
        .form-check-input:checked {
            background-color: #059669;
            border-color: #059669;
        }
        
        .btn-login {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: white;
            font-weight: 700;
            padding: 1rem;
            border-radius: 0.75rem;
            border: none;
            font-size: 1.125rem;
            box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .btn-login:hover {
            transform: translateY(0px);
            box-shadow: 0 12px 28px rgba(5, 150, 105, 0.4);
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        
        .btn-login:active {
            transform: translateY(-1px);
        }
        
        .btn-google {
            background: white;
            color: #1f2937;
            border: 2px solid #e5e7eb;
            font-weight: 600;
            padding: 0.875rem;
            border-radius: 0.75rem;
            width: 100%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }
        
        .btn-google:hover {
            border-color: #059669;
            background: #f9fafb;
            transform: translateY(0px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .btn-google img {
            width: 20px;
            height: 20px;
        }
        
        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 1.5rem 0;
        }
        
        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 2px solid #e5e7eb;
        }
        
        .divider span {
            padding: 0 1rem;
            color: #6b7280;
            font-weight: 600;
            font-size: 0.875rem;
        }
        
        .register-link {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid #f3f4f6;
        }
        
        .register-link a {
            color: #059669;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .register-link a:hover {
            color: #047857;
            text-decoration: underline;
        }
        
        /* Alerts */
        .alert {
            border-radius: 0.75rem;
            padding: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border: none;
            margin-bottom: 1.5rem;
        }
        
        .alert-danger {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #991b1b;
            border-left: 4px solid #dc2626;
        }
        
        .alert-success {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            color: #065f46;
            border-left: 4px solid #059669;
        }
        
        .alert i {
            font-size: 1.25rem;
        }
        
        .btn-close {
            opacity: 0.5;
        }
        
        .btn-close:hover {
            opacity: 1;
        }
        
        /* Mobile responsive */
        @media (max-width: 576px) {
            .login-header h3 {
                font-size: 1.5rem;
            }
            
            .login-header i {
                font-size: 2.5rem;
            }
            
            .login-body {
                padding: 1.5rem;
            }
        }
        
        
        .counter {
            text-align: center;
            margin-bottom: 2rem;
            padding: 1rem;
            background: #F3F4F6;
            border-radius: 1rem;
        }

        .counter-text {
            font-size: 0.875rem;
            color: #6B7280;
            margin-bottom: 0.25rem;
        }

        .counter-number {
            font-size: 1.5rem;
            font-weight: bold;
            color: #667eea;
        }

        .input-wrapper {
            position: relative;
            margin-bottom: 1.5rem;
        }

        .objective-input {
            width: 100%;
            padding: 1rem 1.5rem;
            font-size: 1rem;
            border: 2px solid #E5E7EB;
            border-radius: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .objective-input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 2px solid #E5E7EB;
            border-top: none;
            border-radius: 0 0 1rem 1rem;
            max-height: 250px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .autocomplete-dropdown.show {
            display: block;
        }

        .autocomplete-item {
            padding: 1rem 1.5rem;
            cursor: pointer;
            transition: background 0.2s ease;
            border-bottom: 1px solid #F3F4F6;
        }

        .autocomplete-item:last-child {
            border-bottom: none;
        }

        .autocomplete-item:hover {
            background: #F9FAFB;
        }

        .autocomplete-item-name {
            font-weight: 600;
            color: #1F2937;
            margin-bottom: 0.25rem;
        }

        .autocomplete-item-desc {
            font-size: 0.875rem;
            color: #6B7280;
        }

        .autocomplete-item-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }

.category-nutrizione {
    background: #D1FAE5;
    color: #065F46;
}

.category-psicologia {
    background: #EDE9FE;
    color: #5B21B6;
}

.category-sport {
    background: #FEF3C7;
    color: #92400E;
}

.category-morpho {
    background: #DBEAFE;
    color: #1E40AF;
}

.category-prototype {
    background: #F3E8FF;
    color: #6B21A8;
}

        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            min-height: 60px;
            padding: 1rem;
            background: #F9FAFB;
            border-radius: 1rem;
            margin-bottom: 1.5rem;
        }

        .tag {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            animation: tagAppear 0.3s ease;
        }

        @keyframes tagAppear {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .tag-remove {
            cursor: pointer;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transition: background 0.2s ease;
        }

        .tag-remove:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .empty-message {
            color: #9CA3AF;
            font-style: italic;
            text-align: center;
            padding: 1rem 0;
        }

        .error-message {
            background: #FEE2E2;
            color: #991B1B;
            padding: 1rem;
            border-radius: 0.75rem;
            margin-bottom: 1.5rem;
            font-size: 0.875rem;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        .submit-btn {
            width: 100%;
            padding: 1.25rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 1rem;
            font-size: 1.125rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover:not(:disabled) {
            transform: translateY(0px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }

        .submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        @media (max-width: 640px) {
            .container {
                padding: 2rem;
            }

            .header h1 {
                font-size: 1.5rem;
            }
        }
        
        .objectives-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
}

.objective-pill {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: default;
}

.objective-pill:hover {
    transform: scale(1.00);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.objective-pill-green {
    background: linear-gradient(135deg, #059669, #059669);
    color: #fff;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: default;
}

.objective-pill-green:hover {
    transform: scale(1.00);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

        .char-counter {
            font-size: 0.875rem;
            color: #6c757d;
        }
        .char-counter.warning {
            color: #ffc107;
        }
        .char-counter.danger {
            color: #dc3545;
        }
        .select2-container {
            width: 100% !important;
        }
        
/* Modal personalizzato per upload file */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid #f3f4f6;
    padding: 1rem 2rem;
}

/* ==================== COACH NOTE ATTACHMENT ==================== */
.coach-note-attachment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.attachment-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attachment-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-meta {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.attachment-size {
    font-weight: 500;
}

.attachment-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.125rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.attachment-download:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    color: white;
}

/* Responsive per mobile */
@media (max-width: 576px) {
    .attachment-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .attachment-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .attachment-download {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .attachment-name {
        font-size: 0.8125rem;
    }
}