/* Stili per la pagina di creazione progetti
-------------------------------------------------- */

/* Card Material Design */
.material-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.material-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.material-card-header {
    background: linear-gradient(135deg, #3a7bd5, #3a6073);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    position: relative;
}

.material-card-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.material-card-body {
    padding: 1.5rem;
}

/* Alert box personalizzati */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1.25rem;
}

.alert-info {
    background-color: rgba(58, 123, 213, 0.1);
    color: #2c5282;
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #3a7bd5;
    color: white;
    font-size: 1.25rem;
}

.alert-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c5282;
}

/* Card con sfondo più chiaro */
.card-bg-light {
    background-color: #f8fafc;
    border-radius: 10px;
}

/* Container upload immagini */
.image-upload-container {
    border: 2px dashed #c2d1e8;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #3a7bd5;
    background-color: rgba(58, 123, 213, 0.03);
}

.image-upload-icon {
    font-size: 3rem;
    color: #3a7bd5;
    margin-bottom: 1rem;
}

.image-upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
}

.image-upload-hint {
    color: #718096;
    font-size: 0.9rem;
}

/* Anteprima immagini */
.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    height: 180px;
    background-color: #f8fafc;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-actions {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    display: flex;
    gap: 8px;
}

.image-preview-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
}

.image-preview-action:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.image-preview-action.delete {
    color: #e53e3e;
}

.image-preview-action.cover {
    color: #ecc94b;
}

.image-preview-action.cover.active {
    background-color: #ecc94b;
    color: white;
}

.image-preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview:hover .image-preview-label {
    opacity: 1;
}

.cover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ecc94b;
    color: #744210;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Campi del form */
.form__field {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.form__input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5568;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form__input:focus {
    border-color: #3a7bd5;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.15);
}

/* Input con icona */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 2.65rem;
    left: 1rem;
    color: #718096;
}

.input-icon ~ .form__input {
    padding-left: 2.75rem;
}

/* Pulsanti */
.btn {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3a7bd5, #3a6073);
    border: none;
    box-shadow: 0 4px 10px rgba(58, 123, 213, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d62aa, #2a4a5a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 123, 213, 0.4);
}

.btn-secondary {
    background-color: #718096;
    border: none;
    box-shadow: 0 4px 10px rgba(113, 128, 150, 0.3);
}

.btn-secondary:hover {
    background-color: #5a6677;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(113, 128, 150, 0.4);
}

.btn-outline-primary {
    color: #3a7bd5;
    border-color: #3a7bd5;
}

.btn-outline-primary:hover {
    background-color: #3a7bd5;
    color: white;
}

/* Icona informazioni */
.project-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.9rem;
}

/* Form switch personalizzato */
.form-check-input:checked {
    background-color: #3a7bd5;
    border-color: #3a7bd5;
}

/* Responsive */
@media (max-width: 768px) {
    .material-card-body {
        padding: 1rem;
    }
    
    .input-icon ~ .form__input {
        padding-left: 2.5rem;
    }
    
    .image-upload-container {
        padding: 2rem 1rem;
    }
}
