* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

nav {
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-block;
    background: #34495e;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.back-home-btn:hover {
    background: #1abc9c;
    transform: scale(1.05);
}

/* قسم القائمة المنسدلة */
.dropdown-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.dropdown-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.experiments-dropdown {
    padding: 12px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 1.1em;
    background: white;
    color: #2c3e50;
    min-width: 300px;
    cursor: pointer;
    transition: all 0.3s;
}

.experiments-dropdown:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.experiments-dropdown option {
    padding: 10px;
    font-size: 1em;
}

.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.search-input, .form-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    flex: 1;
    max-width: 400px;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.experiment-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.experiment-card:hover {
    transform: translateY(-10px);
}

.experiment-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.experiment-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.experiment-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.experiment-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

.status-active {
    background: #27ae60;
}

.status-inactive {
    background: #e74c3c;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.custom-experiment-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    color: #7f8c8d;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .experiments-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .dropdown-container {
        flex-direction: column;
    }
    
    .experiments-dropdown {
        min-width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .search-input, .form-input {
        width: 100%;
    }
}

/* أنيميشن */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.experiment-card, .dropdown-section {
    animation: fadeIn 0.6s ease-in;
}