* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
    color: #333;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
}

.new-btn {
    display: none;
    background-color: #ffc400;
    color: #000;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.new-btn:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.05);
}

.experiments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.exp-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.exp-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.exp-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

.exp-card a{
    text-decoration: none;
}

.date{
    text-align: right;
    padding-right: 20px;
}

.view-btn {
    background-color: #ffc400;
    border: none;
    font-size: medium;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    transition: 0.3s ease;
}

.view-btn:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.05);
}

.spinner {
    display: none;
    border: 4px solid #ccc;
    border-top: 4px solid #ffc400;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 30px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Modal (copied from login.css for consistency) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1.2em;
}

.modal-content button {
    width: 100%;
    margin-top: 30px;
    border-radius: 15px;
    font-size: large;
    padding: 15px;
    background-color: #ffc400;
    color: #000000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }

  .exp-card h2 {
    font-size: 1.3em;
  }

  .exp-card p {
    font-size: 0.95em;
  }

  .new-btn, .view-btn {
    width: 100%;
  }
}
