.experiment-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;

	.rectangle-content {
		width: 80%;
		margin: 0 auto;
		margin-top: 45px;

		select {
			display: flex;
			padding: 8px 16px;
			justify-content: center;
			align-items: center;
			gap: 6px;
			border-radius: var(--general-border-radius);
			border: var(--general-border);
			background-color: white;
			height: 35px;

			@media (max-width: 900px) {
				padding: 4px 8px;
				font-size: 12px;
			}
		}
	
		.actions {
			display: flex;
			flex-direction: row;
			background-color: var(--main-background);
			border-radius: 6px 6px 0px 0px;
			align-items: center;
			justify-content: space-between;
			height: 58px;
	
			.user-action{
				display: flex;
				gap: 12px; 
				align-items: center;
				margin-left: auto;
				margin-right: 100px;

				@media (max-width: 1440px) {
					margin-right: 60px;

				}

				@media (max-width: 1270px) {
					margin-right: 40px;
				}
		
				@media (max-width: 1100px) {
					margin-right: 0;
				}
	
				.searchbar {
					background-color: white;
					border: var(--general-border);
					border-radius: var(--general-border-radius);
		
					form {
						display: flex;
						flex-direction: row;
		
						input {
							padding-left: 12px;
							padding-top: 4px;
							border: none;
							font-size: var(--text-button);
							border-radius: var(--general-border-radius);
							height: 35px;

							@media (max-width: 1440px) {
								font-size: 14px;
								padding-top: 0;
							}

							@media (max-width: 900px) {
								font-size: 12px;
								padding-top: 0;
								width: 70%;
							}
							
						}
		
						button {
							border: none;
							background-color: white;
							border-radius: var(--general-border-radius);
							margin-left: 2px;

							svg{
								@media (max-width: 1440px) {
									width: 20px;
									height: 20px;
								}

								@media (max-width: 900px) {
									width: 18px;
									height: 18px;
								}

							}

						}
					}
				}				
			}
	
			.new-button {
				margin-left: 180px; 
				margin-right: 12px;

				@media (max-width: 1440px) {
					margin-left: 80px; 
				}
	
				a {
					padding: 8px 56px;
					border-radius: var(--general-border-radius);
					background-color: var(--primary-button);
					color: white;
					font-size: var(--text-button);
					text-decoration: none;
	
					&:hover {
						background-color: var(--primary-button-hover);
					}

					@media (max-width: 1440px) {
						padding: 8px 42px;
						font-size: 14px;
					}
				}
			}
		}

		.experiments {
			display: flex;
			flex-direction: column;
			gap: 12px;
			margin-bottom: 32px;

			.experiment-wrapper {
				&:not(:first-child) .experiment {
					border-top: 1px solid black;
				}

				.experiment {
					display: flex;
					flex-direction: row;
					justify-content: space-between;
					text-decoration: none;
					color: var(--text-color);
					padding-top: 12px;
					padding-left: 20px;
				}

				.text-infos {
					display: flex;
					flex-direction: column;
					gap: 14px;

					h3 {
						font-size: 22px;

						@media (max-width: 1440px) {
							font-size: 20px;
						}
					}

					.more {
						display: flex;
						flex-direction: row;
						gap: 16px;

						p {
							font-size: var(--text-button);
	
							@media (max-width: 1440px) {
								font-size: 14px;
							}
						}
					}

				}

				.actions-infos {
					display: flex;
					flex-direction: row;
					align-items: center;
					gap: 16px;

					.status-finished {
						color: var(--progress-done-color);
						font-size: var(--text-button);

						@media (max-width: 1440px) {
							font-size: 14px;
						}
					}

					.status-evaluating {
						color: var(--progress-ongoing-color);
					}

					.status-error {
						color: #dd0000;
					}

					.status-waiting {
						color: #43abff;
					}
				}
			}

			.no-experiment {
				display: flex;
				align-items: center;
				justify-content: center;
				margin-top: 24px;
				font-size: var(--text-normal);
			}
		}
	}

	.new-user {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 56px;
		margin: 0 auto;
		margin-top: 72px;
		margin-bottom: 32px;

		p {
			font-size: 22px;
		}

		.btn-new {
			display: inline-flex;
			padding: 12px 88px;
			border-radius: var(--general-border-radius);
			background-color: var(--primary-button);
			box-shadow: var(--button-shadow);
			color: white;
			font-size: 18px;
			text-decoration: none;

			&:hover {
				background-color: var(--primary-button-hover);
			}
		}
	}
}

.favorite-btn {
    background: none; 
    border: none; 
    padding: 0; 
	cursor: pointer;
}

.favorite-star path {
    fill: none;
	stroke: black;
}

.favorite-star.favorited path {
    stroke: #e4c200; 
    fill: #e4c200;  
}

#filter-experiments option[disabled] {
    display: none; 
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.page-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-previous.disabled,
.page-next.disabled {
  color: #999;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

.experiment-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px;
}

.experiment-wrapper .experiment-checkbox {
    margin-right: 15px;
    margin-top: 10px;
    transform: scale(1.3);
    cursor: pointer;
}

.experiment-wrapper .experiment {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.select-all-header {
	margin-left: 4px;
}

.select-all-header input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.3);
    cursor: pointer;
}

.select-all-header label {
    cursor: pointer;
    user-select: none;
}

.bulk-actions {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #f3f3f3;
    padding: 20px;
	border: 1px solid #dee2e6;
	border-radius: 0 0 8px 8px;
}

.bulk-info {
    font-size: 16px;
}

.bulk-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-bulk {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.btn-bulk:first-child, 
.btn-bulk:nth-child(2) {
    background-color: #6c757d;
    color: white;
}

.btn-bulk:first-child:hover, 
.btn-bulk:nth-child(2):hover {
    background-color: #5a6268;
}

.btn-favorite {
    background-color: #ffc107;
    color: #212529;
}

.btn-favorite:hover {
    background-color: #e0a800;
}

.btn-download {
    background-color: #28a745;
    color: white;
}

.btn-download:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.experiment-checkbox {
    cursor: pointer;
    accent-color: #007bff;
}

input[type="checkbox"]:indeterminate {
    background-color: #007bff;
    border-color: #007bff;
    position: relative;
}

input[type="checkbox"]:indeterminate::after {
    content: '−';
    color: white;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.bulk-message {
    padding: 12px 20px;
    font-weight: 500;
}

.bulk-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bulk-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .bulk-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bulk-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-bulk {
        min-width: 120px;
    }
    
    .experiment-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experiment-wrapper .experiment-checkbox {
        margin-bottom: 10px;
        margin-top: 0;
    }
}