/* Stili generali */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar personalizzata */
.navbar {
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Card stile */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Stili tabella */
.table-responsive {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    padding: 1rem;
}

/* Form stili */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

/* Button stili personalizzati */
.btn-primary {
    background-color: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Alert personalizzati */
.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Scheda allenamento stile */
.workout-plan {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.exercise-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.exercise-item:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
}

/* Profile styles */
.profile-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Progress tracking styles */
.progress-chart {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Notification styles */
.notification-badge {
    position: relative;
    top: -10px;
    right: 5px;
    padding: 3px 6px;
    border-radius: 50%;
    background: red;
    color: white;
}

/* Custom loading spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0d6efd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stili esistenti */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar personalizzata */
.navbar {
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Card stile */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Stili tabella */
.table-responsive {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    padding: 1rem;
}

/* Form stili */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

/* Button stili personalizzati */
.btn-primary {
    background-color: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Alert personalizzati */
.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Scheda allenamento stile */
.workout-plan {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.exercise-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.exercise-item:last-child {
    border-bottom: none;
}

/* Profile styles */
.profile-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Progress tracking styles */
.progress-chart {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Notification styles */
.notification-badge {
    position: relative;
    top: -10px;
    right: 5px;
    padding: 3px 6px;
    border-radius: 50%;
    background: red;
    color: white;
}

/* Custom loading spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0d6efd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nuovi stili da aggiungere */

/* Variables (utili per consistenza) */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Exercise Cards Specifici */
.exercise-card {
    transition: transform 0.2s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.exercise-card img {
    height: 200px;
    object-fit: cover;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-small {
    font-size: 0.875rem;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

/* Modal Customizations */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    border-radius: 10px;
    height: 38px;
    line-height: 38px;
}

/* Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .toast {
        width: 90%;
        left: 5%;
        right: 5%;
    }
}