.lab-container {
    padding: 40px;
}

.lab-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.lab-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.lab-block-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.2s ease-in-out;
}

.lab-block-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.lab-block-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.lab-block-desc {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.lab-block-btn {
    display: inline-block;
    margin-top: 10px;
    background: #0073aa;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.lab-block-btn:hover {
    background: #005e8a;
}

.lab-block-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.lab-no-blocks {
    color: #777;
    font-size: 16px;
}

.lab-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px;
    padding: 20px 0;
}

.lab-block-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.lab-block-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.lab-block-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f1f1f1;
    overflow: hidden;
}

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

.lab-block-body {
    padding: 15px;
}

.lab-form-container {
    max-width: 440px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.lab-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.lab-form input,
.lab-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.lab-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lab-form input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.lab-form input[type="submit"]:hover {
    background: #005e8a;
}

.lab-error {
    background: #ffecec;
    color: #b30000;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f5c2c7;
    margin-bottom: 12px;
}

.lab-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0;
}

.lab-logout-btn {
    display: inline-block;
    padding: 10px 14px;
    background: #d63638;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease-in-out;
}

.lab-logout-btn:hover {
    background: #b32d2f;
}

.lab-block-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2d5a3d;
}

.lab-block-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* Dashboard Styling */
.lab-dashboard-card {
    max-width: 600px;
    margin: 50px auto;
    background: linear-gradient(135deg, #4a7c59 0%, #5a8f6b 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.lab-dashboard-card h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.lab-dashboard-subtitle {
    margin: 0 0 30px 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.lab-dashboard-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.lab-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.lab-btn-primary {
    background: white;
    color: #4a7c59;
}

.lab-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.lab-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.lab-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Blocks page header */
.lab-blocks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #4a7c59 0%, #5a8f6b 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.lab-blocks-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

/* Auth Forms Styling */
.lab-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.lab-auth-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.lab-auth-container h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2d5a3d;
    text-align: center;
}

.lab-auth-container input,
.lab-auth-container textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out;
}

.lab-auth-container input:focus,
.lab-auth-container textarea:focus {
    outline: none;
    border-color: #4a7c59;
}

.lab-auth-container input[type="submit"] {
    background: linear-gradient(135deg, #4a7c59 0%, #5a8f6b 100%);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.lab-auth-container input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.3);
}

.lab-auth-container p {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.lab-auth-container a {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.lab-auth-container a:hover {
    color: #5a8f6b;
}

.lab-auth-container .lab-error {
    background: #ffecec;
    color: #b30000;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #f5c2c7;
    margin-bottom: 20px;
}

/* Admin Tabs Styling */
.lab-admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid #4a7c59;
    margin: 30px 0 0 0;
    flex-wrap: wrap;
}

.lab-admin-tabs a {
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    background: #f9f9f9;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border-radius: 0;
    margin: 0;
}

.lab-admin-tabs a:hover {
    background: #f0f0f0;
    color: #4a7c59;
}

.lab-admin-tabs a.active {
    color: white;
    background: #4a7c59;
    border-bottom-color: #4a7c59;
}

.lab-admin-content {
    background: white;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
